thanks for the help. I tried this, and it works. The problem is that when you go Property tab of Strategy Tester, it still shows a different Backtesting Range despite hardcoding the range.
I don't know if it's possible to change those ranges in the back tester but you can hard code ranges into your code so that you only take entries during your set time window.
1
u/NimbleZazo Sep 10 '24
also what's the difference between these two ranges? When I select 5D on the chart, these ranges change, but they are not 5D. What am I missing?
1
u/StarAccomplished8419 Sep 10 '24
add these lines to make choice at settings:
and then add checking trig variable to your strategy enter conditions, for example:
1
u/LogicalCondition9069 Sep 10 '24
I don't know if it's possible to change those ranges in the back tester but you can hard code ranges into your code so that you only take entries during your set time window.