Hello, I have an EA and a Indicator, running at the same time, Why do not take the Global variable the 2 value in the Expert. Both programs are under #property strict with the Expert within a loop OnTick, and the Indicator into OnCalculate.Expertdouble GV_Ind;Print(" Global Variable GV_Ind= ",GlobalVariableGet(GV_Ind));Indicatordouble GV_Ind=1;GlobalVariableSet(GV_Ind,2);
Thak you very much.
string name // Global variable name
string name, // Global variable name
double& double_var // This variable will contain the value of the global variable
Yes, there are two GV_Ind, one the GV_Ind variable (0 value) of program and the GlobalVariableGet(GV_Ind) (2 value).
Ok, doesn't matter at all.
You missed the point completely. You get or set a global variable and they have a name. The double GV_Ind is not a name.