RSS Conversion into MQL4

 

Hi All,

I am wondering if someone could help out, there is an RSS indicator inside NinjaTrader that plots the SMA on the RSI on the difference between two EMA's. the calculation is below:

====================================================

spread.Set(EMA(EMA1)[0] - EMA(EMA2)[0]); // buffer that stores the difference between fast and slow EMA

rs.Set(RSI(spread, Length, 0)[0]); //Buffer to store calculation of the RSI on the above buffer.

Value.Set(SMA(rs, 5)[0]); //final buffer to store the SMA of the 5 on the RSI buffer.

=======================================================

So my question is if someone has RSS indicator for the MetaTrader or if they could tell me how i could pass the calculated buffer to the for example iRSI function, as it seems that those assume only price as inputs.

Help would be greatly appreciated.

 

Sory

I just have discovered xOnArray which helps me do what i need to do

Thanks you for reading and willing to help

Regards

 

May be it is not same but just in case (2 indicators posted inside this small thread):

https://www.mql5.com/en/forum/general

 

Thanks,

It is different when i compare the results between MT and Ninja, but it is a good sample of what i need to do. When i debug the thingy it seems that RSI calculations are different.

Well anyhow, thank you again, this is a good sample at least.

Regards

Reason: