TradingView
UnknownUnicorn19826629
٢١ آب أغسطس ٢٠٢١ ١٢:٣٤

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!
المزيد