E.A. and Time Unit

 

Does anybody know a function MQL4, that allows an EA to identify the time unit in which it is working, after it has been launched (In order to display it, on a message alert for instance) ?

Thanks

Gérald

 
 

Thank you JMCA for your help, but as a french trader, perhaps i did not use the right term.

What i call the "Time Unit" is M1, M5, H1, H4, ... and when i attach an EA to a chart i'd like to be sure i attached it to the right chart by looking at a message of the EA : "Working in M5" or "Working on H1", ...

If you see what I mean

Thanks again

 
https://docs.mql4.com/windows/Period
Reason: