MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Basics  Variables  Defining extern variables

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available

The extern memory class defines an extern variable. The extern specifier is declared before a data type.

Example:

extern double InputParameter1 = 1.0;
extern color  InputParameter2 = red;
int init() { ... }

Extern variables determine inputs of the program, they are accessible from a program properties window. Arrays cannot represent themselves as extern variables.