How do I prevent a Global variable being reset to zero when a user setting is changed???

 
Hi. The title says it all. With Indicators, all Global variables are reset when a user-setting is changed? Strangely, this does not happen with EAs - is it a bug? The only solution I have is to save the value to a file which is a bit extreme......
 
You can use global variables "MQL4: Global variables"
 
You can use global variables "MQL4: Global variables"


Damn, I never thought of that!!! Again, thanks for all your help.