Hello everybody ..
Please can somebody clarify the activity of variables (other than local variables) after Oninit function happens, such after modifying input parameters. Is there a way to keep the values stored in "standard" variables even after Oninit is called.
Thanks for your help
Your questions are not clear but…
Thanks for reply. Yes of course when you recompile all variables are reset to their initialization.
But otherwise, any intervention on the parametre dialogue (modification of parameters or not), the values of global variables should not be affected.
Right?
Thanks for reply. Yes of course when you recompile all variables are reset to their initialization.
But otherwise, any intervention on the parametre dialogue (modification of parameters or not), the values of global variables should not be affected.
Right?
If you had tried it you would already have your answer.
Inputs are static parameters and cannot be altered inside the EA/Indicator.
So the EA/Indicator restarts if parameters are altered, how else would a user selection get picked up.
If you had tried it you would already have your answer.
Inputs are static parameters and cannot be altered inside the EA/Indicator.
So the EA/Indicator restarts if parameters are altered, how else would a user selection get picked up.
Hi Paul, thanks for your help.
Yes, I have already tried it, but sometimes there are some subtilities you dont get in begining, that's why I ask the comunity to have a full confirmation. Sorry if I take too much of your time and attention..
Besides, I am still confused with the different variables, specially with the "static" definition vs just define a standard global variable (like double x; for example)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everybody ..
Please can somebody clarify the activity of variables (other than local variables) after Oninit function happens, such after modifying input parameters. Is there a way to keep the values stored in "standard" variables even after Oninit is called.
Thanks for your help