Not logged in

Forums

Viewing 2 posts - 1 through 2 (of 2 total)
  • #200818 |
    Customer
    153 Posts

    Hi,

    I am looking to create an EA for a counter, that logs a close of a particular candle at a specific time but due to the daylight savings, it gets a little complicated.

    Eg.

    The counter will open at 1:15am (MT4 server time) and I would like to track the close of candle @ 8:15am.

    During the DST, the counter opens 2:15am and I would like to track the close of candle @ 9:15am.

    How can I do that on EA wizard?

    Thanks.

     

    #200842
    Administrator
    509 Posts

    Hello,

    if you need check for a current hour you can compare with “countHour + Offset”. This offset variable will be set to 0 / 1 based on whether DST is ON or OFF

    if (Hour = CountHour + Offset) ….

    Do you need an example on this?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.