OPEN-SOURCE SCRIPT

Mean reversion

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.
Daily ChartseducationalLONGmeanreversionshort

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer