I am based in Shanghai (GMT+8) and trying to get a system to buy/sellshort on the US market when it is open.
However, currenttime > 213000 and currenttime < 033000 then… doesn’t work.
Is there a way to get that right without changing the time on my computer?
Thanks!
Why “doesn’t work”? Your orders are not launched? What is the problem exactly? 🙂
Yes, no orders are launched. <235999 works (orders are launched), but if I set a time after midnight, nothing happens.
I bit embarrassing, but the easiest way was to change the timezone under platform options…
WingParticipant
Veteran
The time cannot be between 210000 and 030000. At 000000 there is a new day and time is reset. It is either below 235959, or is it more than 000000. You need to use OR, not AND, so it checks if time < 030000 OR time>210000.