I'm not sure what you mean by time unit, but check this out:
https://docs.mql4.com/dateandtime
https://docs.mql4.com/convert/TimeToStrhttps://docs.mql4.com/convert/StrToTime
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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