TheTradingParrot

TV signal for DCA backtest

TheTradingParrot Cập nhật   
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!
Phát hành các Ghi chú:
Info table removed as its not needed for backtesting
Phát hành các Ghi chú:
adding continuous mode perfect for opening multiple consecutive trades while the technical rating remains the same value
Phát hành các Ghi chú:
removing unneeded code
Phát hành các Ghi chú:
- removing unneeded code
- continuos mode plots improved
- chart updated

Join our membership to gain access to the private scripts.
www.thetradingparrot.com
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?