READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Time EA & DST

1 replies

TJ#

Customer, bbp_participant, community, 143 replies.

Visit profile

9 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

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

9 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)