How to apply EMA to an RSI indicator

 

Hi Sir

I am wondering if there is a way to code a MA indicator applied to another indicator, in this case I want to apply it to the results of an RSI indicator.

At the MT4 platform, you can add a Moving Average to any indicator, just open the MA indicator and select the option - Apply to: Previos Indicator´s Data

But on MQL4 iMA function you cannot choose that option.

Is there any way you can build  a Moving Average indicator based on the results of another indicator?

I guess you could build an array with the indicator's results and then apply the MA to the resulting array, is that correct?

Will someone please show how to do it?

thanks

JHF

 

I guess you could build an array with the indicator's results and then apply the MA to the resulting array, is that correct?

Yes 

Use iMAOnArray()

 

Thanks


Will work on that.

Reason: