Can an EA detect a New Bar?

Everything related to MT4

Can an EA detect a New Bar?

Postby LunaPark29 » Thu Jul 05, 2012 3:40 am

Here's another question...

Can an EA, from among all the incoming price "ticks," detect when a new bar is "born," and thus be able to (for example) bypass executing its main logic... except at the OPEN of a NEW BAR? This would be in the interests of speeding up execution of the EA.

I'm sure this question has been asked and answered before, so please bear with me.

If the answer is Yes, that it CAN detect a new bar, then please explain how this condition might be coded in MQL4.

Thanks much!

Posts: 2
Joined: Thu Jul 05, 2012 3:14 am

Return to MetaTrader 4