shall I get the value returned from some indicator without iCustom()?

 

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 ?

 
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.
 
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!
 
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
Reason: