Currenttime after midnight?

Forums ProRealTime English forum ProRealTime platform support Currenttime after midnight?

  • This topic has 4 replies, 3 voices, and was last updated 8 years ago by avatarWing.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #10369

    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!

    #10387

    Why “doesn’t work”? Your orders are not launched? What is the problem exactly? 🙂

    #10389

    Yes, no orders are launched. <235999 works (orders are launched), but if I set a time after midnight, nothing happens.

     

    #12363

    I bit embarrassing, but the easiest way was to change the timezone under platform options…

    #12392

    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.

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login