Experts: Detecting the start of a new bar or candle

 

Detecting the start of a new bar or candle:

Detecting the start of a new bar or candle in an Expert Advisor's OnTick() event handler.

Author: Fernando Carreiro

 
congratulations fernando! great code, your contributions have helped me a lot to better understand the codes and the logic behind the codes in mql5 and mql4, you're great!!!
 
Francisco Gomes Da Silva #: Congratulations fernando! great code, your contributions have already helped me a lot to better understand the codes and the logic behind the codes in mql5 and mql4, you are a beast!!!
Thanks for the compliment and you're welcome!