OPEN-SOURCE SCRIPT

Custom Date Buy/Sell Strategy

5 813
This strategy allows you to back test longing or shorting during a period of time between two dates.

Make sure you are in the daily time frame while viewing the performance and trade history to ensure you have the most historical data as possible from Trading View.

Finally, due to the way Trading View enters trades at the end of a candle, you must subtract one day from your starting and your end dates.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.