OPEN-SOURCE SCRIPT

TV signal for DCA backtest

已更新
This script allows you to backtest Trading View's "Technical Ratings" (Buy, Strong buy, Sell, Strong Sell) using Gavin's backtest script.

To use it add the backtest script to the chart together with this script and then from the back test settings connect the external indicator. You should select "TV Signal" as the source.

Backtesting works best on the 5m chart, but you can still change this script from its settings to higher timeframes.

Encoding
  • Buy is 1
  • Strong Buy is 2
  • Sell is -1
  • Strong Sell is -2


In the backtest script you can decide which rating you want to use for open deal and which one for close deal.

For example, if you were backtesting a long bot you could enter a long position when TV signal is Buy (1) and close the deal when TV signal is Sell (-1).

You have the full flexibility to decide which technical rating to use for your backtesting.

Enjoy!
版本注释
Info table removed as its not needed for backtesting
版本注释
adding continuous mode perfect for opening multiple consecutive trades while the technical rating remains the same value
版本注释
removing unneeded code
版本注释
- removing unneeded code
- continuos mode plots improved
- chart updated
backtestbacktestingMoving AveragesOscillatorsratingstechnicaltechnicalrating

开源脚本

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

想在图表上使用此脚本?


Join our membership to gain access to the private scripts.
thetradingparrot.com
更多:

免责声明