how to store a value outside the code??

 

Is that possible to store a value outside the code?? (And inside the code, the value can be modified.)

thanks

 
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