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"

僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請與BacktestRookies聯繫以獲取更多資訊,或按照以下作者的說明進行操作。

在您100%信任腳本作者並了解腳本的工作原理之前,TradingView不建議您購買腳本並使用它。在很多情況下,您可以在我們的社群腳本庫中免費找到一個不錯的開源替代品。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。