TheTradingParrot

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
오픈 소스 스크립트

진정한 TradingView의 정신에 따라, 이 스크립트의 작성자는 스크립트를 오픈소스로 게시했기에 거래자들이 이해하고 확인할 수 있습니다. 작가님께 건배! 스크립트를 무료로 사용할 수 있지만, 게시물에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?
Join our Patreon to gain access to the private scripts.

https://www.patreon.com/thetradingparrot

코멘트

Hello, I want to use your following strategy. Can you test it for me
+1 응답
Bug: If you use continuous signal, the script is never plotting strong sell (i.e -2) although strong sell is triggered in the non-continous settings.
응답
jitzz guyfru
@guyfru, Hi, what do you mean? Could you kindly elaborate?
응답