Once a week or so my Global Variables get lost. They work fine then all of a sudden on the chart in my comments where I display them they go to GV = 0 and if I open the Global Variables drop down menu in MT4 under Tools no global variables are shown at all..... Anyone seen this before??
- Global Variables deleted when Expert Advisor trade on Offline chart!?
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- Global variables dont load in strategy tester
phy:
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 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.
Hi Phy...Yes that's why I don't understand why they disappear occasionally... they get read every tick.... occasionally wrote 10 to 15 times a day.... and zeroed only when I have zero orders open.
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