Download MetaTrader 5
To add comments, please log in or register
Deposit to your account via Visa QIWI Wallet
Marcelo Coutinho
1103
Marcelo Coutinho 2014.05.14 16:10 

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
4439
Ingvar Engelbrecht 2014.05.14 17:32  
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
29413
Alain Verleyen 2014.05.14 18:15  
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
1103
Marcelo Coutinho 2014.05.14 18:38  
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
29413
Alain Verleyen 2014.05.14 18:52  
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
1103
Marcelo Coutinho 2014.05.14 19:21  
angevoyageur:

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

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