Currenttime after midnight?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10369 quote
    dajvop
    Participant
    Master

    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 quote
    Nicolas
    Keymaster
    Master

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

    #10389 quote
    dajvop
    Participant
    Master

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

    #12363 quote
    dajvop
    Participant
    Master

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

    #12392 quote
    Wing
    Participant
    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.

    Nicolas thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Currenttime after midnight?


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
dajvop @dajvop Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Wing
9 years, 5 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 07/10/2016
Status: Active
Attachments: No files
Logo Logo
Loading...