Please Help: How Do I Access External Variables from a custom indicator to be used in my code?

 

Please Could Anybody help me explain how I could access the moving average values of the external variables MA1 & MA2. I need to compare the 2 values in code. Please find attached the screen shot of the indicator as well as the code for the indicator.

 

Do you mean you want the values of the MAs like this;


MA1=iMA(NULL,0,MA1Period,0,MODE_SMMA,0,0);

MA2=iMA(NULL,0,MA2Period,0,MODE_SMMA,0,0);

Reason: