ninjatrader/strategies/advances-and-declines
2024-11-15 06:37:09 -08:00
..
backtest-results Add QQQ 2:1 declines / advances backtest results 2024-11-15 06:37:09 -08:00
AdvanceDeclineRatioBot.cs
README.md Add QQQ 2:1 declines / advances backtest results 2024-11-15 06:37:09 -08:00

Advances and Declines

The idea for these strategies comes from chapter 5 (Market Breadth) of How Markets Really Work (2012) by Larry Connors.

As with most of the strategies from this book, they are meant to illustrate certain characteristics of the market rather than be traded directly.

Advances refers to the number of stocks going up in the index (e.g., S&P 500) whereas Declines are the stocks going down.

Rules

Advances

  1. The asset (e.g., SPY) must be above its 200-day moving average.
  2. If the ratio of advances to declines is at least 2 : 1, enter a long trade.
  3. Exit the trade after 5 trading days (~1 week).

Declines

  1. The asset (e.g., SPY) must be above its 200-day moving average.
  2. If the ratio of declines to advances is at least 2 : 1, enter a long trade.
  3. Exit the trade after 5 trading days (~1 week).

Parameters

Advances: The portion of the ratio associated with advances. (Default: 1.0)

Declines: The portion of the ratio associated with declines. (Default: 2.0)

Long-Term Trend Period: The period of the long-term trend as measured using a simple moving average. (Default: 200)

Days to Exit: The number of days to wait before exiting any trade. (Default: 5)

Whichever of Advances or Declines is greater is what is used as the numerator in the ratio.

The default settings specify a declines / advances ratio of 2 : 1.

Backtest Results

SPY

2:1 Advances : Declines

SPY Advances Analysis

SPY Advances Summary

2:1 Declines : Advances

SPY Declines Analysis

SPY Declines Summary

QQQ

2:1 Advances : Declines

QQQ Advances Analysis

QQQ Advances Summary

2:1 Declines : Advances

QQQ Declines Analysis

QQQ Declines Summary