Γιάννης Χριστόπουλος:
Hi. I am trying to change the external bool value from true to false,but every time i restart the terminal it changes back to true.Is there a way to do it?
(1) When the application exits, the value of "reset" is saved.
(2) At the next startup, the saved value is read and the value of "reset" is changed.
int OnInit() { if (GlobalVariableCheck("KeepReset")) { reset = (bool)GlobalVariableGet("KeepReset"); } else { GlobalVariableSet("KeepReset", (double)reset); } return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { GlobalVariableSet("KeepReset", (double)reset); }
Nagisa Unada:
Thank you very much Nagisa
(1) When the application exits, the value of "reset" is saved.
(2) At the next startup, the saved value is read and the value of "reset" is changed.

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 am trying to change the external bool value from true to false,but every time i restart the terminal it changes back to true.Is there a way to do it?