How To: Change Inputs to your EA without restarting it...

 
Hi,
I was wondering how to change the inputs to your Expert Advisor without completely restarting the Expert Advisor. For example:

extern min_to_stop= 30;

Lets say I have a variable(min_to_stop) that counts down time and stops trading for the EA. If have had the EA running for 20 minutes. Lets say I want to increase that time to 60 from the time I started the EA. So i double click the smiley face to change the min_to_stop variable to 60. However at this time all of the variables that i have kept track so far have cleared and now are initialized to the value they were set to in the init() function. is there away to not reset the variables and be able to change an extern variable?

thanks in advance....
 
Can, put the code in EA to read the desired data from external file or "GlobalVariables" ( ie.: /experts/files/desiredFile.name ).
 
I've ran into the same problem before. Use static variable instead :

//E.g.
static int min_to_stop= 30;
Then you'd be able to modify it during run-time