global variable

 
Alexander Martinez:

Try:

Use input if the value of the variable will not change while the program is running.

Use extern if the value of the variable can change while the program is running.

OP is referring to Metatrader (terminal) Global Variables, not program global variables.

 
amir salami:
 how can we define the global variable that can be identified for all mt4 In our computer ?

I would use the filesystem functions to have that value saved on the computer file system, in a common place for all MT4 instances...

;)

Reason: