How to use global data in mql4 and mql5?

 

Hi i want my global data in too many chart as once. For example if i have variable name "test" in my custom indicator and in chart one test data equals "5" i want get this data from my indicator or EA from another chart, change  and use them. I find this two link for mql4 and 5 "https://docs.mql4.com/globals" "https://www.mql5.com/en/docs/globals".

according to this 2 link we can pass the parameter between indicator and EA from different chart. also we can pass the parameter between 2 or more indicator or EA. But I can not use this method and do not understand. please explain this 2 link for me. how can define and use this type of global variable?

Global Variables of the Terminal - MQL4 Reference
Global Variables of the Terminal - MQL4 Reference
  • docs.mql4.com
Global Variables of the Terminal - MQL4 Reference
 
You can see these variables when you press F3 in the terminal.

The functions and the docs you have linked, describe how to create, manipulate and manage these variables from code.

It is not hard to use them.

Just read the docs. And maybe try them out.


Reason: