OPEN-SOURCE SCRIPT

Mean reversion

6 080
Simple mean reversion strategy.

Strategy aims to find three bullish or bearish candle pattern which ends with strong move. Position will be open until we get close above previous highs.

Strategy uses also simple moving average to filter short positions.

This strategy works well with QQQ and daily time frame but it seems to do fairly well intraday also.

User can modify moving average length and how strong is the move of the last candle.

This strategy is inspired a strategy by hackertrader. The original idea by QuantpT.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.