If i use a static variable in my EA and i remove the EA from the chart, does the value in my static variable delete ? or the value still there?
Yerim Rayann Gon Diarra:
If i use a static variable in my EA and i remove the EA from the chart, does the value in my static variable delete ? or the value still there?
If i use a static variable in my EA and i remove the EA from the chart, does the value in my static variable delete ? or the value still there?
The variable looses its value.
The associated memory is within the EA, as you unload the EA, its associated memory will be released.
If you want to keep the value, you need to use Global Terminal Vriables.

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