How to set "Apply to: Previous Indicator's Data" in an iMA call?

 

I like to have a SMA, 10 period, 0 Shift based on "Previous Indicator's Data" of RSI, 10 period, Close.

Unfortunately, I see this option in the manual/chart MA selectbox only.
It is not listed in iMA "Applied price enumeration".

Is code available?
Thanks at forhand for your help.

 
HansSpain:

I like to have a SMA, 10 period, 0 Shift based on "Previous Indicator's Data" of RSI, 10 period, Close.

Unfortunately, I see this option in the manual/chart MA selectbox only.
It is not listed in iMA "Applied price enumeration".

Is code available?
Thanks at forhand for your help.

Use iMAOnArray() with the buffer that holds your RSI data
 
RaptorUK:
Use iMAOnArray() with the buffer that holds your RSI data

Thank you!