Download MetaTrader 5
To add comments, please log in or register
Download MetaTrader 5 and start trading today!
Fa Cao
1143
Fa Cao 2014.02.10 04:22 

I mean when I code in some indicator like below:

#property  indicator_chart_window
#property  indicator_buffers 1
#property  indicator_color1  Red

  extern int X,    
.....

  int init()
  { 
..........
    
    return(0);
  }

  int start()
  {
...........
    return(X);
  }

 

Shall I get value of "X" in EA ?

Ovo Cz
2951
Ovo Cz 2014.02.10 05:14  
vx0532:

I mean when I code in some indicator like below:

Shall I get value of "X" in EA ?

Sure, you may write it to a file, save to a global variable, or to a DLL with shared memory access.
Fa Cao
1143
Fa Cao 2014.02.10 07:34  
Ovo:
Sure, you may write it to a file, save to a global variable, or to a DLL with shared memory access.
Shall I get more details about "writing it to a file and saving to a global variable" ?
Thank you!
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.02.10 10:18  
vx0532:
Shall I get more details about "writing it to a file and saving to a global variable" ?
Thank you!
Have you searched the Documentation ?

File Functions

GlobalVariables
/
To add comments, please log in or register