Global Variables – These are key-value pairs stored by the platform (outside of any one EA) that persist even when scripts stop. EAs and scripts use them for sharing data or cross-session communication. (An EA can write a GV using GlobalVariableSet()
and read with GlobalVariableGet()
). This is a MetaTrader feature (not to be confused with programming global vars).