| / | Forum |
|
cagny
2009.01.22 00:23
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 |
|
How to Cut an EA Code for an Easier Life and Fewer Errors A simple concept described in the article allows those developing automated trading systems in MQL4 to simplify existing trading systems, as well as reduce time needed for development of new systems due to shorter codes. |
|
jmca
2009.01.22 00:50
I'm not sure what you mean by time unit, but check this out: http://docs.mql4.com/dateandtime http://docs.mql4.com/convert/TimeToStrhttp://docs.mql4.com/convert/StrToTime |
|
cagny
2009.01.22 23:47
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 |
|
jmca
2009.01.22 23:56
http://docs.mql4.com/windows/Period
|