BacktestRookies

EMA, SMA Mean Reversion

Invite Only: But everyone will be accepted

Invite-only in order to understand demand and interest in this type of strategy. All requests are welcome and will be accepted.

Full Source is available

A blog post containing full source code and commentary of the strategy is available on the backtest-rookies website. To comply with house rules, I cannot post a direct link here. (Hint add ".com" to backtest-rookies)

Overview

The strategy uses two moving averages to represent the historical mean and a slightly smoothed version of the current price action. It will place long or short trades when the fast EMA moves far away from the historical mean (the slow SMA).

Features
  • Set Backtest Date ranges
  • Enter when EMA is x% away from the mean
  • Independent inputs for the long and short side
  • Only enter when the EMA has started to reverse. (Input)
  • Optional Stop loss
  • Limit trades to a single direction to "Buy the dip" or "Sell the top"

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact BacktestRookies for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

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.

Want to use this script on a chart?

Warning: please read before requesting access.