December 1, 2014

SPX breaks record of closing above five day moving average

How strong is this market? The SP-500 index had closed above its five day moving average for 29 days and on Friday it finally closed below it. The last day it closed under the five day moving average was on October 16, 2014. This is the longest streak since 1963 (that is as far back as my data goes). The old record was 26 days in 1986. The previous best streak in the last decade was 19, which has been crushed. The index has not had a short-term pullback in the last month which is tough for a short-term mean reversion trader.

The question that always follows is what happens when the streak is broken. We will see what happens if one enters at the close the day the streak is broken and then exit 5 days, 1 month, 3 months and 6 months later.

Why am I using the five day moving average? From years of research, this has been a good indicator use to measure short term mean reversion.

The baseline

First we need to know what the market does normally. Here we look at buying every day and then using one of the exits.

Results from 1963

141201A

Results from 2005

141201B

An interesting side note is that all the returns in the last decade are down.

Streaks of close above 5 day moving average

These are the average returns for streaks greater than or equal to 10 days.

Results from 1963

141201C

Results from 2005

141201D

All the streaks of 10 or more since 2005

141201E

Observations

On average the end of the streak does not signal future weakness but strength in all timeframes. What really stands out is that future volatility is greatly reduced. Anyone calling for a large correction in the next 3-6 months has the odds stacked against them.

Backtesting platform used: AmiBroker. Data provider:Norgate Data (referral link)

Good Quant trading,

Get the spreadsheet

Fill in the form to receive a link to the spreadsheet with all the data used to generate these tables. Streaks from 1963 are included.

 

Click Here to Leave a Comment Below

The Whole Street’s Daily Wrap for 12/1/2014 | The Whole Street - December 2, 2014 Reply

[…] SPX breaks record of closing above five day moving average [Alvarez Quant Trading] How strong is this market? The SP-500 index had closed above its five day moving average for 29 days and on Friday it finally closed below it. The last day it closed under the five day moving average was on Oct… […]

Marco - December 3, 2014 Reply

I prefer mean reverting trades, but this trend following one seems to be strong enough to be done.
http://nightlypatterns.wordpress.com

Leave a Reply: