onewithzachy: If you want to retain value
of variables - when changing extern input or changing TF or changing
symbol - then you can save them in deinit.
On changing TF/symbol, deinit and init will be called. Global and static variables are not reset.
But on BSOD, or power glitch, reboots, etc, deinit will not be called and GVs by GlobalVariableSet() will not be written to disk.
Persistent storage requires you to write a disk file when anything saved has changed, each time (each tick)
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.
If you want to retain value of variables - when changing extern input or changing TF or changing symbol - then you can save them in deinit.
On changing TF/symbol, deinit and init will be called. Global and static variables are not reset.
But on BSOD, or power glitch, reboots, etc, deinit will not be called and GVs by GlobalVariableSet() will not be written to disk.
Persistent storage requires you to write a disk file when anything saved has changed, each time (each tick)
On changing TF/symbol, deinit and init will be called. Global and static variables are not reset.
But on BSOD, or power glitch, reboots, etc, deinit will not be called and GVs by GlobalVariableSet() will not be written to disk.
Persistent storage requires you to write a disk file when anything saved has changed, each time (each tick)