in mql5 why if i declare variable is not possible change ?
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; }
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