How to Make Indicator of Indicator

 

Hello,


I'm trying to make an indicator of an indicator.


For example with iRSI( string symbol, int timeframe, int period, int applied_price, int shift), instead of using "applied_price" how can I apply the RSI to the values of another indicator?


Similarly with iCustom, I'm wondering how I can apply the values of one indicator and apply them to another indicator, for example an HMA of a Stochastic,


Thanks

 
In the case of the RSI use the code under custom indicators in file RSI.mq4 and change it to work on the array of the values you want to use instead of Close price. Same goes for a custom indicator.
 

Thanks for your help, my problem is as a new coder I'm having trouble doing what you describe.


I've read the Arrays tutorial in the MQL4 docs here:

https://book.mql4.com/variables/arrays

but I don't know what to do.


Thanks

 

Take a look at this example TWORM here

https://forum.mql4.com/24653

I was having problems with the arrays but you can see in the code it makes an array of high/low differences and chucks them through an EMA.

 
www. getyourea.com
Reason: