Time EA & DST

1 replies

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

6 years ago #200818

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.

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #200842

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?

0

Viewing 1 replies (of 1 total)