Download MetaTrader 5

Update value in EA input panel after some condition

To add comments, please log in or register
Publish your article to let the traders see it in MetaTrader 5!
Suraj Neupane
179
Suraj Neupane 2016.04.27 22:23 
I'm aware that extern value can be changed unlike input value of an EA. is there any way to update change value in EA's input panel?  
Alain Verleyen
Moderator
30735
Alain Verleyen 2016.04.27 22:27  
Suraj Neupane:
I'm aware that extern value can be changed unlike input value of an EA. is there any way to update change value in EA's input panel?  
No.
Jose Miguel Soriano
4963
Jose Miguel Soriano 2016.04.28 10:41  
Suraj Neupane:
I'm aware that extern value can be changed unlike input value of an EA. is there any way to update change value in EA's input panel?  
You can not change the value of an external parameter for reasons of compilation.
It's possible use a internal variable with the value of external parameter, and to modify the internal variable.
input int MACDrap                       = 12;                 //MACD fast period
input int MACDrapFact                   = 2;                  //MACD fast modification factor
...///...

int MACDrapInt= MACDrap;

...///...

void OnTick()
{
   MACDrapInt= MACDrap*MACDrapFact;
   ...///...

}
To add comments, please log in or register