Does global variable gets deleted when mt5 restarts?
doshur:
Does global variable gets deleted when mt5 restarts?
Does global variable gets deleted when mt5 restarts?
No Global Variables of the Terminal are not deleted when MT5 restarts. Check your code.
Global variables are kept in the client terminal within 4 weeks since the last access, then they will be deleted automatically. An access to a global variable is not only setting of a new value, but reading of the global variable value, as well.
Global variables can be lost when your MT5 stops abnormally.
Use GlobalVariablesFlush() to protect them.
Wahoo:
Global variables can be lost when your MT5 stops abnormally.
Use GlobalVariablesFlush() to protect them.
Yes, my mt5 stops because the server restarts abnormally.
Thanks for the info

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
my vps got restarted due to some server issue
my trade got closed today when the market opens and i suspected it is due to the global variable got deleted
I'm not able to do a check on the list as I code my EA to delete the GV when trade exit.
anyone experience this?