BacktestRookies

Default Strategy Inputs (Forex / Crypto)

The code in this post contains a set of default strategy inputs I use in new projects / backtests in Tradingview.

Full code commentary is available on the Backtest-Rookies website. To comply with house rules, I cannot post the direct link here.

Features

  • Trade Direction: So that you can limit the strategy for long only, short only or trade in both directions. It is important to note that when you select “Long Only”, you will still see Short signals on the chart. However, they are only used to close a position rather than reverse it. This is the default behaviour for strategies. The same applies to “Short Only”.
  • Date Ranges: So that you can isolate backtesting to specific periods of interest such as bull or bear markets.
  • Sessions: So you can easily get an idea of the expected results during your own session. You may also notice that performance of the strategy varies depending on which session it is deployed in.
  • Some example stop losses: It is not an exhaustive list but it should be enough to provide some inspiration for different types of stops that you can experiment with.

Happy Scripting. I hope the community finds it useful.

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?