Download MetaTrader 5

"On Fly" EA modification

To add comments, please log in or register
Marcelo Coutinho
1159
Marcelo Coutinho  

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

Ingvar Engelbrecht
4504
Ingvar Engelbrecht  
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?
Alain Verleyen
Moderator
31600
Alain Verleyen  
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.
Marcelo Coutinho
1159
Marcelo Coutinho  
angevoyageur:
Of course there are several ways.Without interrupting its execution.
Great ! Can y please guide me the best way to do this ?
Alain Verleyen
Moderator
31600
Alain Verleyen  
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.
Marcelo Coutinho
1159
Marcelo Coutinho  
angevoyageur:

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

Thank you !!!
To add comments, please log in or register