Download MetaTrader 5
To add comments, please log in or register
Having difficulties in understanding the Trading Signals service? Read the article!
wadi2014
116
wadi2014 2014.05.05 03:59 

Hello

external variable like bool if i selected manually to one of 2 cases and from program inside i want to reset it as if i remove the EA and attach it again on chart

external bool Run=true;

int start()
  {
 if(!Run)
  {
  Run=true;
  }
   return(0);
  }

That is example if i click on Run on EA and select false, after achieving the condition i want the Run takes the true again without click on the run variable in EA. but in this case i must remove EA from chart and attach it again.

I hope you understand my question.

whroeder1
13610
whroeder1 2014.05.05 11:41  
fx2013: after achieving the condition i want the Run takes the true again
external bool Run=true;
int start()
  {
  if(condition) Run=true;
  if(!Run)      return(0);
  :
  }
wadi2014
116
wadi2014 2014.05.05 16:44  
WHRoeder:


You did not get my point.

My point is: when i select Run= false from input EA then,

if(!Run)
  {
 ..
 ..
 ..
 Run=true;
  }

so, the condition has been achieved and after that Run will be changed again to true, but i want run take true again in the input form of the EA. i mean when i changed Run with false in EA it will keep it save until i select true, but i want to change it from program without change it manually.

i hope you understood me

whroeder1
13610
whroeder1 2014.05.05 17:24  
fx2013: but i want run take true again in the input form of the EA.
Not possible.
/
To add comments, please log in or register