How can I know or detect when Time Frame (or Bar) has begun ?

 

Can anyone tell me how can I know when a MT4 begins calculating data and switches to a timeframe ?

I want to reset my tick counter every time MetaTrader switches to the next bar or time frame?

thanks

 

Hi Sync

Had this many times before look here


https://forum.mql4.com/9118


If you had searched you would have found many posts about detecting open of candle.

Reason: