Save the used parameters and the internal state to a file on OnDeinit. The name of the file could be one parameter.
OnInit check for existance of such a file and load its content into the internal state if the parameters are identical.
I assume that you check for an open position in a symbol independent of your internal state.
So you could in addition handle manual closing and opening of postions.
Save the used parameters and the internal state to a file on OnDeinit. The name of the file could be one parameter.
OnInit check for existance of such a file and load its content into the internal state if the parameters are identical.
I assume that you check for an open position in a symbol independent of your internal state.
So you could in addition handle manual closing and opening of postions.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
every time my computer hangs strategies instead of resuming open positions just start all over again.
Is it possible to make them resume work or to program EA in such way so it would resume the activity instead of reseting it every single time.
This is most annoying thing for me in both metatrader... unbelievable that even restart (not hanging) does not keep the EA work.
I quit providing the signals for now i think as it works like c**p, without some dedicated linux computer that doesnt hang or turn off for 2 years.
Is there any way to program an EA to avoid issues with terminal restart?