ROC Indicator Still Long, But Nearing Cross

To be long, we want the blue line to be above the red line. Over the long term, using this simple indicator to signal when to be long SPY has beat buy-n-hold and reduced drawdowns by approximately 2/3rds.

Adding short signals to the indicator improves results but the effectiveness of shorting is a relatively new development.

To read more on this indicator, go here.

Previous Posts by Woodshedder

11 Responses to ROC Indicator Still Long, But Nearing Cross

Damian says:

Hmmmm…my ROC(252) = 6.24 vs. yours…weird.

Berniecornfeld says:

Funny you should say that …I have 4.91 for my ROC(252) http://stockcharts.com/h-sc/ui?s=SPY&p=D&yr=2&mn=0&dy=0&id=p85802967847

Woodshedder says:

Hmmm. Not sure why all the differences. I think this has come up before, but I do not remember how it was resolved. I’m all ears if anyone has any ideas.

Keep in mind I’m using the close, so it is calculated close to close.

Bozo on a bus says:

Here are updated ROC values from my spreadsheet using Yahoo data and the formula in my comment below: ROC(5) = -1.27265. ROC(252) = 2.74618. Exactly the same as Wood’s. There may be a slight difference in ROC(252) depending on whether you use adjusted or raw close data.

You would think commercial sites would at least get simple formulas correct.

Bozo on a bus says:

I ran into this same issue (and I believe commented on it). Not every site uses the same definition of ROC, but Yahoo ROC data is simply wrong. Even Investopedia has two different formulas.

Use this formula (hope I got it correct) in a spreadsheet with Yahoo’s data: ROC = 100 * (Closing Price Today – Closing Price “n” Periods Ago) / Closing Price “n” Periods Ago, and you should get Wood’s numbers.

Berniecornfeld says:

Thanks. I was trying to be lazy and just check via a quick link to StockCharts…sigh..something else to add to the Excel macro


Major US US Futures Europe Asia Commodities 2yr Euro Yields 10yr Euro Yields Oil
  • DOW 15,318.20 0.91%
  • NASDAQ 3,482.18 0.87%
  • S&P 500 1,651.81 0.78%
  • VIX 16.61 -1.13%
  • SPX 500 (CFD) 1,649.20 -0.16%
  • DOW (CFD) 15,302.00 -0.11%
  • NASDAQ 100 2,993.10 -0.10%
  • EURUSD 1.339 -0.04%
  • UK 6,374.21 0.69%
  • GERMANY 8,229.51 0.17%
  • FRANCE 3,860.55 -0.08%
  • SPAIN 8,180.20 0.54%
  • H. KONG 20,962.00 -1.24%
  • JAPAN 13,191.50 1.42%
  • KOREA 1,887.84 -0.67%
  • SHANGHAI 2,130.65 -1.33%
  • NAT GAS 4.16 0.17%
  • GOLD 1,364.60 -0.15%
  • SILVER 21.92 1.10%
  • COPPER 3.16 0.21%
  • FRANCE 2YR 0.19 -10.90%
  • GERMAN 2YR 0.18 27.74%
  • ITALIAN 2YR 2.18 27.59%
  • SPAIN 2YR 2.81 8.21%
  • FRANCE 10YR 2.13 1.96%
  • GERMAN 10YR 1.57 3.22%
  • ITALIAN 10YR 4.29 0.52%
  • SPAIN 10YR 4.55 -0.68%
  • WTI 98.34 -0.10%
  • BRENT 105.99 -0.03%
  • WTI/BRENT 7.65
  • 321 CR SPR 21.96 10.04%