defstut / Publications
Forum
FileOpen return INVALID_HANDLE in OnTimer() only
When i run FileOpen from within int OnInit(), then the file opens perfectly. When i do the same from Ontimer() then it fails with INVALID_HANDLE ? this is the function which is called each day from Ontimer(without success) or OnInit (with success) void RunExpert( void ){ current_weeknumber =
How can i call a function when the chart or MT5 closes ?
I use MT5 to develop a EA. In MT5 there can be a number of charts active which will all run their each EA. I would like to write the last state of the EA into a separate file for each symbol (chart). What I can’t figure out how to catch a close chart event or close MT5 ? If one of them occur they