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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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....