Home › Forums › Ready-to-use Robots › EA restart best practice
- This topic has 5 replies, 2 voices, and was last updated 2 years, 7 months ago by Anonymous.
-
AuthorPosts
-
-
April 22, 2022 at 10:41 #115612AnonymousInactive
Hello,
when a robot stops for any reasons (windows update, crash, connection lost, ….) and there is opened positions, what is the best practice ?
– close all positions before restart robot
– let everything as it is and the robot will recognize his trade and manage it correctly
If it’s the second option, if the close event of the trade occurred during metatrader was down, will the robot see it and close the trade immediately, or will the trade continue until next close event ?
Thanks in advance
David
-
April 23, 2022 at 11:01 #115659AnonymousInactive
Hi David, best practice would be to find a more reliable computer to trade on or vps. Crashes should be very rare and you should turn off automatic updates and do them manually on the weekend when the market is closed.
This is not an issue I ever have but in this instance what you could do is run the metatrader backtester and see if the trade would still be open or closed and take appropriate action to remain in accordance with how the EA would have traded if no interruption occurred.
If there is a trade open with the magic number of an EA that has auto trading enabled then the EA will manage that trade according to its rules. Im sure you can easily confirm that with a quick test also.
-
April 25, 2022 at 14:50 #115698AnonymousInactive
Hi Samuel,
thanks for your response. Last week everything went right. This time I’ve disabled updates :-) but I was wondering what is the best thing to do in such situations. For example, today when I checked my robots, all my mt4 were like disconnected and I had to login again. Same issue on two distinct servers. Fortunately, I had no open trades this time.
Thank you for the backtest idea to check open trades if it happens in the future, never thought of that. -
April 30, 2022 at 10:50 #115881AnonymousInactive
Hey David,
The EAs recognize the opened trade via the magic numbers, and they will continue managing the trades (with exit conditions). However, if the pause was long, it might be the case that the exit happened, and the EA will not close it because it is not at the moment.
If you have a good internet connection, it might be an issue from the broker’s server.
Try with another broker and see if it will happen simultaneously for both (if it happens, it is from your side).
-
May 1, 2022 at 16:08 #115922AnonymousInactive
Hi Petko,
Thanks for the reply.
The disconnections only happened on Sunday evening when the week starts again. This time, I’ll reconnect my account before the restart to be sure that it doesn’t happen again.
I had the same issue with two different brokers, so I guess it’s a vps issue…
-
May 4, 2022 at 7:02 #116020AnonymousInactive
Play with the settings of the VPS and turn off all updates, sleeping mode, etc
-
-
AuthorPosts
- You must be logged in to reply to this topic.