Hello MT4 coders, I have 2 questions if you can answer please.
1. Suppose that my EA opens a trade and at some point I closes the half trade. How I make the EA to remember that a specific trade is already has been closed half?It should also remember if I restart mt4.!
2. Suppose I attach an EA on a chart and exit the MT4. If I re-open MT4 the EA starts working automatically as I attached it on chart on previous. So I want a function to call only once when ever MT4 is re-opened? init() function is only called when we first time attach EA/indicator to chart.
Any help?
Thanks
1. Suppose that my EA opens a trade and at some point I closes the half trade. How I make the EA to remember that a specific trade is already has been closed half?It should also remember if I restart mt4.!
2. Suppose I attach an EA on a chart and exit the MT4. If I re-open MT4 the EA starts working automatically as I attached it on chart on previous. So I want a function to call only once when ever MT4 is re-opened? init() function is only called when we first time attach EA/indicator to chart.
Any help?
Thanks