TradingView
UnknownUnicorn19826629
2021年8月21日下午12點34分

Date Range Demonstration 

XRP / TetherUSBinance

描述

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.

發布通知

Added presets for previous 30, 90, and 180 days plus year to date.
評論
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!
更多