HEEELLLLPPPPP Expert Advisor Memory?

 

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! 

 
It depends on whether the EA has been coded to retrieve the values or not.
 
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
Reason: