Mean-Reversion Volatility Filters Part Two: Since 2011

On my previous post, Mean-Reversion Volatility Filters, I used a dynamic volatility filter to filter out trades within  a short-term mean reversion system. I came to the conclusion that low vol was conducive for short term mean reversion performance. However, it’s commonly discussed how the market has shifted dynamics some time after the 2007-2008 financial crisis. In this post I revisit the tests ran in my previous post, testing from 1/1/2011 – 4/28/2013 rather than 1/1/1995 – 4/28/2013. The charts displayed below are 10-trade moving average of % profit from 1/1/1995-4/28/2013.

Results

IBS

Rules (Base-Case):

  • Buy if 3-Day IBS < 40
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.53%

IBS Base Case 10-Trade MA

Rules (High Vol):

  • Buy if 3-Day IBS < 40 AND HV(5) > HV(20)
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.68%

IBS High Vol 10-Trade MA

Rules (Low Vol):

  • Buy if 3-Day IBS < 40 and HV(5) < HV(20)
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.38%

IBS Low Vol 10-Trade MA

RSI

Rules (Base-Case):

  • Buy if 2-Day RSI< 50
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.21%

RSI Base Case 10-Trade MA

Rules(High Vol):

  • Buy if  2-Day RSI< 50 and HV(5) > HV(20)
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.40%

RSI High Vol 10-Trade MA

Rules(Low Vol):

  • Buy if  2-Day RSI< 50 and HV(5) < HV(20)
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.10%

RSI Low Vol 10-Trade MA

Conclusion

Without looking at the charts, it may seem like post 2011, this volatility filter, like many strategies, has completely changed. However after looking at the charts of a rolling 10-trade moving average of % profit. the results become more inconclusive. It seems much more likely that the short term test results are due to unrepresentative and small sample size, rather than a change in volatility filter performance.

 

Mean-Reversion Volatility Filters

Due to the result’s of this MarketSci post, which imply that short-term mean reversion performs better during low volatility versus high volatility, I decided to revisit volatility filters. In Mean-Reversion within Regimes, I previously concluded that high volatility, not low volatility was more conducive to mean-reversion strategies. To test for low volatility/high volatility I decided to use a different filter. Last time I used a static test (60-Day Historical Volatility > 0.01 = High Volatility, <0.01 = Low Volatility). This time I will use a more dynamic filter, which compares short-term volatility to mid-term volatility.

Results

  • Testing on SPY from 1/1/1995- 4/28/2013

IBS

Rules (Base-Case):

  • Buy if 3-Day IBS < 40
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.56%

Rules (High Vol):

  • Buy if 3-Day IBS < 40 AND HV(5) > HV(20) 
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.39%

Rules (Low Vol):

  • Buy if 3-Day IBS < 40 and HV(5) < HV(20)
  • Sell if 3-Day IBS > 40
  • Avg. Trade: 0.68%

RSI

Rules (Base-Case):

  • Buy if 2-Day RSI< 50
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.32%

Rules(High Vol):

  • Buy if  2-Day RSI< 50 and HV(5) < HV(20)
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.27%

Rules(Low Vol);

  • Buy if  2-Day RSI< 50 and HV(5) < HV(20)
  • Sell if 2-Day RSI > 50
  • Avg. Trade: 0.37%

Conclusion

It seems from this, in combination with my previous conclusion from Mean-Reversion within Regimes, that the specific filter used for volatility has a large influence on profitability. One thing I realized is that there may be different exposures for low vol vs high vol (meaning that a high volatility filter may allow for more trades, resulting in a higher CAGR) which could result in the discrepancy in results (that is why I used Avg. Trade rather than CAGR this time), but even after re-running the different tests under the same conditions, high vol had a higher Avg. Trade vs low vol.

A New Approach to Trading

Recently I changed the way I approach trading system development. Reading A Different Approach to Money Management is what gave me the original idea to alter my approach to trading, but my research is what pushed me over the edge.

Old Way

I approached trading system development with the goal of trying to develop a system with maximum exposure. I didn’t think of running two systems at the same time on the same pool of money (without splitting up the money) if the systems had little/no conflicting signals. Since most of the systems I tested on SPY either had either:

  • high exposure but low returns
  • high returns (after factoring for exposure) but low exposure

I was left with trying to develop a new system, or trying to trade the system over a large group of stocks (I used the Nasdaq-100 as my stock universe). While I was able to ramp up my exposure to around 70% with any system I tested, I often had to trade 5 or more stocks just to have a reasonable draw-down, which meant that commissions ate a large percent of my trading profits, considering my systems were short term in nature and I have limited capital.

Pros:

  • Only one system to manage
  • I don’t have to check for as many signals

Cons:

  • Not diversified – higher risk
  • High commissions due to being forced to trade many stocks to increase exposure
  • Can be curve fit easily since I try to develop one super-system
  • Higher model risk – there is only one model, which can fail at any given time

New Way

Now, I try to develop multiple systems that have high average profit% per trade with little/no regard for exposure. Even if the system trades only once every two or three months, I can combine many of these systems to trade at a frequency I would be trading at with my old way, but still maintain a highly profitable trading system with lower risk (assuming the systems do not have perfect correlation). While it’s too soon to draw any conclusions from live performance, the historical backtest shows dramatically improved results.

Pros

  • Higher returns
  • Lower risk
  • Lower commissions since I only have to trade one stock (I trade SPY)
  • Less risk of curve-fit – I will not be forced to include multiple filters to decrease risk/increase returns
  • Lower model risk – chances of multiple models of failing is lower than one model failing

Cons

  • Much more of a headache to manage when entering in trades EOD

Trading Every Other Trading Day

Something odd that I found:

Test 1:

  • Buy SPY at close every other trading day
  • Sell the next day at close
  • 1/29/1993 – 3/25/2013

1-29-1993 - 3-25-2013 Trading Every Other Day

The 1990′s bull market, and the 2003-2007 market cycle are almost completely missing from the equity curve.

Test 2:

  • Buy SPY at close every other trading day
  • Sell the next day at close
  • 2/1/1993 – 3/25/2013

2-1-1993 - 3-25-2013 Trading Every Other Day

The popping of the tech bubble and the bull market since 2009 are almost completely missing from the equity curve.

Conclusion:

It’s incredibly strange how trading every other trading day can wipe out the gains/losses of any one cycle (1993-2003, 2003-2007, 2007-2013). What does this mean? Absolutely no idea.

Short Term Trend-Following within Mean-Reversion Trading

A while ago CSS Analytics had a post titled Improving Trend-Following Strategies with Counter-Trend Entries, which discusses using a mean-reversion indicator to filter out trades from a trend-following system. It got me thinking about using trend-following philosophy with mean-reversion trading systems. Mean-reversion is based off of buying dips; however, many times oscillators and other mean-reversion indicators are too quick when calling a market dip, and end up losing money the next day or so of an entered trade. To counter-act this tendency, why not use the old trend-following adage to only buy if the trend is up?

To test this, I used my favorite mean-reversion system:

  • Buy if DV2 < 50
  • Sell if DV2 > 50
  • No Shorting

with two variations. Before I go into the two variations, I will post the results of this simple mean-reversion system traded on SPY from 1/1/2000 – 1/1/2013 for comparison. All results are  frictionless:

Simple DV2 1-1-2000 - 1-1-2013

Variation One

  • Buy if DV2 < 50 AND Today’s DV2 is ABOVE Yesterday’s DV2
  • Sell if DV2 > 50
  • No Shorting

Trend Following Entry DV2 1-1-2000 - 1-1-2013

Variation Two

  • Buy if DV2 < 50 AND Today’s Close is ABOVE Yesterday’s Close
  • Sell if DV2  > 50
  • No Shorting

Trend Following Entry with Close DV2 1-1-2000 - 1-1-2013

Variation One is vastly superior to the simple DV2 strategy when one factors for exposure and maximum drawdown. Variation Two has slightly lower returns when adjusted for exposure, but the maximum drawdown is reduced by 1/3. Using trend-following techniques to filter out bad trades can vastly increase risk-adjusted returns in mean-reversion trading systems.

Mean Reversion Trading in Moderation

Simple mean-reversion trading strategies in US equities have performed poorly since 2010/2011. Mean reversion is not dead, it never will be, but it may expressed differently than previously. Mean reversion prior to 2010, existed mainly in the form of extremes. The more extreme a pullback, the higher chance for a huge reversal. To test this, I ran 10 different frictionless  tests on SPY (from Yahoo! Finance) from 1/1/2000 – 1/1/2010.

Rules:

  • Buy if the 250-day DV2 is greater than a threshold AND if it is less than the threshold + 10 (this means I will only buy if the DV2 is within a certain 10 point range).
  • Sell the next day.
  •  It is worth noting here that I have an option on in AmiBroker that prevents me from entering buy orders the same day that I enter sell orders, which will lower the overall exposure of these systems.

Here are the results:

1-1-2000 - 1-1-2010 Moderate Mean Reversion

We can clearly see that the returns are largely derived from the 1-11 bucket, meaning that extreme mean reversion was the source of returns. In the past 3 years, mean reversion exists in more moderate forms. Extreme pullbacks no longer indicate large reversals, but moderate pullbacks are more indicative of future gains. To test this, I ran the same test from 1/1/2010 – 1/1/2013:

1-1-2010 - 1-1-2013 Moderate Mean Reversion

The returns for the past three years are from the 31-41, 41-51, and 51-61 bucket. The 1-11 bucket went from a 6% CAGR to a -2% CAGR.

Here are the rules for another test I ran. This should be the result of the above rules if I allowed entries to be entered the same day as exits.

Rules:

  • Buy if the 250-day DV2 is greater than a threshold AND if it is less than the threshold + 10 (this means I will only buy if the DV2 is within a certain 10 point range).
  • Sell if the 250-day DV2 is less than a threshold OR if it is more than the threshold + 10

Results for 1/1/2000 – 1/1/2010:

Full Exposure Moderate Mean Reversion 1-1-2000 - 1-1-2010

Results for the same test for 1/1/2010 – 1/1/2013:

Full Exposure Moderate Mean Reversion 1-1-2010 - 1-1-2013

This is only a preliminary test over SPY, but it does lead to avenues for further research.

Scaling In (Part Three): IBS & RSI

On my previous two posts regarding pyramiding (first post, second post), I tested three different entry methodologies using a DV2 across multiple securities. To obtain further results of the entry methodology within mean-reversion trading systems, I will test it on a simple IBS system and 2-day RSI system.

IBS

SPY

Default (Buy 100% of equity when IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 42.51%
  • CAGR: 10.33%
  • MDD: 25.28%

Purchase at first Dip (Buy 100% of equity the first day the close is less than the close of the day IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 16.57%
  • CAGR: 7.38%
  • MDD: 15.63%

Scale In(Buy 50% of equity when IBS < 45, Buy 50% of equity more the first day the close is less than the close of the day IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 28.59%
  • CAGR: 8.77%
  • MDD: 19.49%

Nasdaq-100

Default(Buy 6% of equity when IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 77.56%
  • CAGR: 24.06%
  • MDD: 41.65%

Purchase at a Dip(Buy 18% of equity the first day the close is less than the close of the day IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 68.46%
  • CAGR: 41.04% (Better than DV2)
  • MDD: 32.76%

Scale In(Buy 3% of equity when IBS < 45, Buy 3% of equity more on each subsequent day the close is less than the close of the first day IBS < 45, Sell 100% of position when IBS > 50):

  • Exposure: 71.42%
  • CAGR: 29.46%
  • MDD: 40.33%

Individual Nasdaq-100

Lastly, I tested a system individually on each Nasdaq-100 stock.

Default(Buy 100% of equity when IBS < 45, Sell 100% of position when IBS > 50):

  • Average of Exposure: 44.96%
  • Standard Deviation of Exposure: 2.87%
  • Average of CAGR: 14.58%
  • Standard Deviation of CAGR: 16.04%
  • Average of MDD: 29.14%
  • Standard Deviation of MDD: 16.11%

Purchase at first Dip(Buy 100% of equity the first day the close is less than the close of the day IBS < 45, Sell 100% of position when IBS > 50):

  • Average of Exposure: 17.04%
  • Standard Deviation of Exposure: 2.55%
  • Average of CAGR: 3.94%
  • Standard Deviation of CAGR: 9.06%
  • Average of MDD: 21.57%
  • Standard Deviation of MDD: 14.23%

Scale In(Buy 50% of equity when IBS < 45, Buy 50% of equity more the first day the close is less than the close of the first day IBS < 45, Sell 100% when IBS > 50):

  • Average of Exposure: 30.82%
  • Standard Deviation of Exposure: 3.77%
  • Average of CAGR: 9.38%
  • Standard Deviation of CAGR: 11.37%
  • Average of MDD: 23.76%6.96/25.2
  • Standard Deviation of MDD: 14.97%

RSI

SPY

Default(Buy 100% of equity when RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 44.40%
  • CAGR: 9.20%
  • MDD: 25.90%

Purchase at first Dip(Buy 100% of equity the first day the close is less than the close of the day RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 25.27%
  • CAGR: 6.96%
  • MDD: 19.80%

Scale In(Buy 50% of equity when RSI < 50, Buy 50% of equity more the first day the close is less than the close of the day RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 34.87%
  • CAGR: 8.19%
  • MDD: 20.34%

Nasdaq-100

Default(Buy 2% of equity when RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 68.08%
  • CAGR: 19.74%
  • MDD: 41.65%

Purchase at a Dip(Buy 6% of equity the first day the close is less than the close of the day RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 71.59%
  • CAGR: 32.28%
  • MDD: 31.40%

Scale In(Buy 3% of equity when RSI < 50, Buy 3% of equity more on each subsequent day the close is less than the close of the first day RSI < 50, Sell 100% of position when RSI > 50):

  • Exposure: 69.75%
  • CAGR: 29.68%
  • MDD: 34.54%

Individual Nasdaq-100

Default(Buy 100% of equity when RSI < 50, Sell 100% of position when RSI > 50):

  • Average of Exposure: 44.73%
  • Standard Deviation of Exposure: 5.85%
  • Average of CAGR: 9.03%
  • Standard Deviation of CAGR: 11.96%
  • Average of MDD: 60.83%
  • Standard Deviation of MDD: 21.23%

Purchase at first Dip(Buy 100% of equity the first day the close is less than the close of the day RSI < 50, Sell 100% of position when RSI > 50):

  • Average of Exposure: 26.98%
  • Standard Deviation of Exposure: 3.39%
  • Average of CAGR: 9.03%
  • Standard Deviation of CAGR: 10.24%
  • Average of MDD: 50.77%
  • Standard Deviation of MDD: 20.91%

Scale In(Buy 45% of equity when RSI < 50, Buy 45% of equity more the first day the close is less than the close of the first day RSI < 50, Sell 100% when RSI > 50):

  • Average of Exposure: 37.99%
  • Standard Deviation of Exposure: 2.19%
  • Average of CAGR: 10.27%
  • Standard Deviation of CAGR: 11.25%
  • Average of MDD: 55.67%
  • Standard Deviation of MDD: 21.57%

Conclusion

At a quick glance, it’s clear that purchasing at the first dip for mean reversion trading systems seems to offer the best risk/reward ratio. At times, the differences are marginal, but after factoring for exposure, purchasing at first dip exceeds scaling in in (5/6) tests and the default trading system in (5/6) tests, on an absolute and risk-adjusted basis.

Scaling In (Part Two)

On Scaling In: Confusion (Part One) regarding pyramiding, I discussed the possibility of the Avg. Profit/Loss% performance metric being a subpar measure of system performance. To get a better understanding of system performance of buying on pullbacks, scaling, and default mean reversion trading systems, I decided to use two other performance metrics (three if you consider exposure a performance metric).

SPY

Default(Buy 100% of equity when DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 49.61%
  • CAGR: 13.03%
  • MDD: 27.82%

Purchase at first Dip(Buy 100% of equity the first day the close is less than the close of the day DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 25.52%
  • CAGR: 9.36%
  • MDD: 19.80%

Scale In(Buy 50% of equity when DV2 < 50, Buy 50% of equity more the first day the close is less than the close of the day DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 37.64%
  • CAGR: 11.50%
  • MDD: 21.94%

Nasdaq-100

Default(Buy 2% of equity when DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 69.75%
  • CAGR: 33.44%
  • MDD: 27.70%

Purchase at a Dip(Buy 6% of equity the first day the close is less than the close of the day DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 68.07%
  • CAGR: 37.03%
  • MDD: 29.98%

Scale In(Buy 1% of equity when DV2 < 50, Buy 1% of equity more on each subsequent day the close is less than the close of the first day DV2 < 50, Sell 100% of position when DV2 > 50):

  • Exposure: 68.43%
  • CAGR: 38.03%
  • MDD: 27.22%

Individual Nasdaq-100

Default(Buy 100% of equity when DV2 < 50, Sell 100% of position when DV2 > 50):

  • Average of Exposure: 44.58%
  • Standard Deviation of Exposure: 6.43%
  • Average of CAGR: 15.76%
  • Standard Deviation of CAGR: 10.68%
  • Average of MDD: 54.95%
  • Standard Deviation of MDD: 19.95%

Purchase at first Dip(Buy 100% of equity the first day the close is less than the close of the day DV2 < 50, Sell 100% of position when DV2 > 50):

  • Average of Exposure: 24.22%
  • Standard Deviation of Exposure: 2.69%
  • Average of CAGR: 9.81%
  • Standard Deviation of CAGR: 8.22%
  • Average of MDD: 46.23
  • Standard Deviation of MDD: 18.34

Scale In(Buy 50% of equity when DV2 < 50, Buy 50% of equity more the first day the close is less than the close of the first day DV2 < 50, Sell 100% when DV2 > 50):

  • Average of Exposure: 36.82%
  • Standard Deviation of Exposure: 2.18%
  • Average of CAGR: 14.42%
  • Standard Deviation of CAGR: 9.66%
  • Average of MDD: 49.77%
  • Standard Deviation of MDD: 19.06%

Conclusion

The differences between each method seems negligible. Personally, I plan to use the purchase at first dip method. Even though the scaling in method and the first dip method have similar CAGRs after factoring for exposure (the first dip method has marginally higher CAGRs for 2/3 tests), the scaling in method will have higher commissions and slippage costs. The first dip method also had a lower MDD on 2/3 of the tests, but that has little to do with my decision. In Scaling In (Part Three) I reach similar conclusions, testing these entry methodologies across two other simple mean-reversion trading systems.