Renaming EA, and re-attaching to chart

 

Hello,

Please could someone advise me?


I have an EA running on a chart, it has a magic number: "100"

I rename the EA in Data Folder > MQL5 > Experts folder while the EA is still running (no code is changed)

I refresh the Navigator window and the name change shows up

I drag the EA with the new name onto the chart where the same EA with the old name is running

MT5 asks me if I want to replace old-name EA with new-name EA, I say yes

New-name EA is now running on the chart where old-name EA was


Question: Will new-name EA take control of the open trades that old-name EA opened, and exit the trade in the same way old-name EA would have done?  Will magic number "100" ensure that MT5 properly associates open trades with respective EA's?


Thank you

 
E.A.Sheppard:

It depends on how the EA was coded but most likely it will.

 
Keith Watford:

It depends on how the EA was coded but most likely it will.

Thanks