Pain:
Is that possible to store a value outside the code?? (And inside the code, the value can be modified.)
thanks
Easy Coding
if(!GlobalVariableCheck("Value")) GlobalVariableSet("Value",0);
GlobalVariableSet("Value",1);
EA's must be able to recover from problems, and Global Variables are not safe. If the terminal or windows crashes, power failure, etc, Globals will NOT be written to disk.
On EA start you must recreate you values via a orderSelect loop and the chart, or you need persistent storage

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
Is that possible to store a value outside the code?? (And inside the code, the value can be modified.)
thanks