An input variable is a constant variable.
and of course not exist a mode for give a input variable and remaning variable?
Just assign its value to a non-input variable on the OnInit function and manipulate it as you want:
int vOnOffChiusuraAuto; int OnInit() { vOnOffChiusuraAuto = OnOffChiusuraAuto; vOnOffChiusuraAuto += 1; //etc... return INIT_SUCCEEDED; }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi i have declare in top of script this code
but why when i try to chage return me 'OnOffChiusuraAuto' - constant cannot be modified SPREAD_ROBOT.mq5 297 9
but is variable not constant o_O