Detecting the start of a new bar or candle – EA MetaTrader 5
For an Expert Advisor (EA), when a new tick quote arrives, the MetaTrader terminal calls the default OnTick() event handling function. However, there is no default event handling function for when a new bar (candle) starts or opens. To detect this, one needs to monitor the opening time of the currently most recent bar. Once … Read more