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.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.