Global Variables
1 replies
Paul
10 years ago #111322
Hello,
I want to be able to write Global Variables that I can recall in the event of a reboot or restarting the EA.
How do I do this using the Custom Action function?
Thanks,
Paul
Mark Fric
10 years ago #122009
Hi,
if you define a Strategy Parameter variable, it will keep its default value (the one you set) even after restart.
Otherwise, I don’t think it it possible to use global variables in MetaTrader, everything is reseted to default values after reboot.
You’d have to use some file to store and recover the variable.
Mark
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)