"On Fly" EA modification

 

Hi there!

Is there any way to change on variable of an EA from "outside" without interrupting its execution?

Example: If I have var1=true and want to change to var1=false, is there any way to do this while EA is being executed?

Regards,

MRC

 
YouTrade:

Hi there!

Is there any way to change on variable of an EA from "outside" without interrupting its execution?

Example: If I have var1=true and want to change to var1=false, is there any way to do this while EA is being executed?

Regards,

MRC

   Why can you not change it by an input parameter?
 
YouTrade:

Hi there!

Is there any way to change on variable of an EA from "outside" without interrupting its execution?

Of course there are several ways.
ingvar_e:
   Why can you not change it by an input parameter?
Without interrupting its execution.
 
angevoyageur:
Of course there are several ways.Without interrupting its execution.
Great ! Can y please guide me the best way to do this ?
 
YouTrade:
Great ! Can y please guide me the best way to do this ?

https://www.mql5.com/en/articles/572

Change Expert Advisor Parameters From the User Panel "On the Fly"
Change Expert Advisor Parameters From the User Panel "On the Fly"
  • 2013.02.12
  • Anatoli Kazharski
  • www.mql5.com
This article provides a small example demonstrating the implementation of an Expert Advisor whose parameters can be controlled from the user panel. When changing the parameters "on the fly", the Expert Advisor writes the values obtained from the info panel to a file to further read them from the file and display accordingly on the panel. This article may be relevant to those who trade manually or in semi-automatic mode.
 
angevoyageur:

https://www.mql5.com/en/articles/572

Thank you !!!
Reason: