GLOBALVARIABLESET VS STATIC?

 

What's the difference ?

I guess G lasts 4 weeks if not visited, while S lasts forever.

Both are stored on harddisk.

G can be deleted with MQL, what about S ?

 
joshatt:

What's the difference ?

You probably should read/review the book regarding global, local, and static variables. See Types of Variables and GlobalVariables.

I guess G lasts 4 weeks if not visited, while S lasts forever.

Both are stored on harddisk.

G can be deleted with MQL, what about S ?

No, no, and yes. Read the book (links above) and the documentation.
 

The Global variable as in GlobalVariableSet

will still be available if the terminal is closed and restarted

Reason: