Using indicators in a new indicator???

 

I am trying to write an indicator that uses information from the ADX indicator and am trying to pull data from the ADX indicator the same way I do in my EA's, as follows:


ADX_Signal[i] = iADX(NULL, 0, 14, PRICE_CLOSE, MODE_MAIN, i);    // ADX Signal Line


However, this doesn't seem to work when used in an indicator.  Am I not allowed to use this when writing an indicator?

 
Nothing wrong there, problem is elsewhere.
 
whroeder1:
Nothing wrong there, problem is elsewhere.

OK thanks, I'll keep looking.

 
jt27:

However, this doesn't seem to work when used in an indicator.  Am I not allowed to use this when writing an indicator?

You did not mention how "this doesn't work" exactly.
Reason: