Apply output of a custom indicator as input to RSI

I have written a custom indicator, I wish to use this EA as input to RSI instead of price close. Any idea how this can be done?

Shashank Kumar: Any idea how this can be done?

Copy the RSI code to RSI_CI. Replace where it reads the Close with iCustom.