Download MetaTrader 5
To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
Roberto Dasso
96
Roberto Dasso 2014.10.09 02:39 

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

Keith Watford
Moderator
7899
Keith Watford 2014.10.09 02:56  

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()

Roberto Dasso
96
Roberto Dasso 2014.10.09 16:25  

Thanks


Will work on that.

/
To add comments, please log in or register