Hello, I would like to go long only at certain times eg 8am – 3 pm. Optional 5-9 clock.
It does not work in the backtest. The orders are opened only in the time from 8 am to about 10 am.
What could it be? Here my example:
- This topic was modified 4 months, 3 weeks ago by Uwe6000.
Hello, once again…
the condition needs to be modified slightly. Check the file attached
Hello, something is wrong…
you need to use parentheses as Conmariin showed higher.
((Hour >= 8 AND Hour <= 15)
OR (Hour >= 16 AND Hour <= 22))
So you enclose “ANDs” together. If you need me to edit the project for you please send to firstname.lastname@example.org or upload ZIP file
You must be logged in to reply to this topic.