How to make EA continue working after it has been updated

 

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.

 

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.

 
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.
 
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.
 
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?

Reason: