problem with 4h candle close when gold market is closed at night
-
My EA is specifically for gold/xauusd and it uses the 4h candle close and pending orders, sometimes it triggers signals at 01:00 (on IC markets the 4h candles are 09:00-13:00, 13:00-1700, 17:00-21:00, 21:00-01:00 and so on)
the problem is that gold on IC markets is closed between 00:00-01:00 and doesn't re-open until a few minutes after 01:00, as my EA uses "Once per bar" it misses out on this signal and waits for the next 05:00-09:00 bar
how do i make it check for the 0100-0500 bar a few minutes after gold has reopened?
my current solution is to use a broker with a different timezone so that the gold market closes and opens within a 4h bar but i'd like to keep using IC markets if possible
below is the basic flow of how the EA works if that helps
-
Technically that is not correct. The 'once per bar' block detects a new bar forming at the fist tick arriving at the platform for that candle. It doesn't matter if that tick is arriving at 01:00 or at 01:10. As soon as a new bar if formed, the block will detect it.
-
Yes thats what i thought but for some reason the orders just wont place specifically at that candle when the gold market is reopening
what if i add a time filter after the buy/sell condition so it goes to the next block only after 01:05?
https://fxdreema.com/shared/rXp9v8XTc
