Timeframe change

 

Hi!

Which is the code as to make the EA to understand if there is or not a timeframe change? For example if we use H1 frames, which is the key point to denote the creation of the new timeframe?

Thank you

Reason: