Download MetaTrader 5

How to make EA continue working after it has been updated

To add comments, please log in or register
Nutchapon Namsutto
372
Nutchapon Namsutto  

Dear All,

I got some problem with my EA. Now it is in development phase. I run it parallelly with coding and updated version. But after the EA is running and opening some orders, after I updated my code and refresh it. It seems my EA can not continue working with existing orders. Anyone knows how to solve this problem?

Please help me.

Michael Maggi
1670
Michael Maggi  

Without knowing anything about your update it is hard to have an opinion.  But if your EA has lost track of the current orders it seems a simple matter to close and reopen the orders with your new EA.

Chock dee.

Nutchapon Namsutto
372
Nutchapon Namsutto  
Michael Maggi:

Without knowing anything about your update it is hard to have an opinion.  But if your EA has lost track of the current orders it seems a simple matter to close and reopen the orders with your new EA.

Chock dee.


Thank you very much for suggestion. Kob Khun Krub.
whroeder1
15913
whroeder1  
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+flush or files) of ticket numbers required.
Bheka Mchunu
203
Bheka Mchunu  
Nutchapon Namsutto:

Dear All,

I got some problem with my EA. Now it is in development phase. I run it parallelly with coding and updated version. But after the EA is running and opening some orders, after I updated my code and refresh it. It seems my EA can not continue working with existing orders. Anyone knows how to solve this problem?

Please help me.


Are you using MAGICMA ?

Is it the same between the two EA?

To add comments, please log in or register