HEEELLLLPPPPP Expert Advisor Memory?

Back to topics list To post a new topic, please log in or register
avatar
5
LorraineP 2016.02.16 21:23
 

Hi All,

I'm not new to trading, but I'm new to using expert advisors. The one I have lets me change all kinds of settings, SL, TP, TS, risk, etc....

My question is this: say my EA places a trade and I lose power or lose internet connection. When it's restored, does the EA remember the SL or TP or TS?

And is this the same with ANY and ALL EAs?

 

Thanks! 

avatar
Moderator
3406
GumRai 2016.02.16 22:03 #
 
It depends on whether the EA has been coded to retrieve the values or not.
avatar
12985
WHRoeder 2016.02.16 22:06 #
 
LorraineP: When it's restored, does the EA remember the SL or TP or TS? And is this the same with ANY and ALL EAs?
  1. If the EA sets a SL/TP on the server then no remember is necessary.
  2. EA's must be coded to recover. If the power fails, OS crashes, terminal or chart is accidentally closed, on the next tick, any static/global ticket variables will have been lost. You will have an open order but don't know it, so the EA will never try to close it, trail SL, etc. How are you going to recover? Use a OrderSelect loop to recover, or persistent storage (GV/file) of ticket numbers required. It depends on how the EA is coded
Back to topics list  

To add comments, please log in or register