TradingView
UnknownUnicorn19826629
21 sie 2021 12:34

Date Range Demonstration 

XRP / TetherUSBinance

Opis

This is a simple strategy that demonstrates how to easily incorporate a date range into a strategy. This allows you to limit your backtesting to a specific range of dates, which is vital if you want to compare different time frames.

To use:
  • Copy the code block between the '////' lines into your strategy.
  • Add the variable 'inDateRange' to your entry and/or exit strategy conditions.

Informacje o Wersji

Added presets for previous 30, 90, and 180 days plus year to date.
Komentarze
crypteisfuture
Thank you!
ddctv
Hi thanks so much for sharing this! So helpful - and somethingI wish TV would include by default in all strategies...

Question if you don't mind: What would be the easiest way to remove the time of day element and just use dates? Thanks so much!
Więcej