Download MetaTrader 5
To add comments, please log in or register
Learn operation principles of Trading Signals for MetaTrader.
Lorraine Pierce
1081
Lorraine Pierce 2016.02.16 20: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! 

Keith Watford
Moderator
7990
Keith Watford 2016.02.16 21:03  
It depends on whether the EA has been coded to retrieve the values or not.
whroeder1
13641
whroeder1 2016.02.16 21: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
/
To add comments, please log in or register