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"

Script apenas com convite

O acesso a este script é restrito aos usuários autorizados pelo autor e pode requerir pagamento. Você pode adicioná-lo a seus favoritos, mas só poderá utilizá-lo após solicitar permissão e obtê-la do autor. Contate BacktestRookies para mais informações, ou siga as instruções do autor abaixo.

TradingView não sugere pagar por um script e usá-lo até que você confie 100% em seu autor e entenda como o script funciona. Em muitos casos você pode encontrar uma boa alternativa de código aberto gratuitamente nos Scripts da Comunidade.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?

Aviso: por favor leia antes de solicitar acesso