Please help adding a second RSI with different period to the extrapolator

 

Hi,


I would be thankful if someone can add a second RSI with a different period to this extrapolator with the deviations.

I would also like to know about the line 105 of the code

for(int i=MathMin(pastBars+LastBar-1,Bars-1); i>=LastBar; i--) av+=in[i]; av/=pastBars; av/=pastBars;


if the value av/=pastBars is rqeuired to be repeated twice or is a mistake?


Regards

Files:
cpo_1.4.mq4  8 kb
Reason: