Hi,
Can somebody please code this indicator in MT4?
_SECTION_BEGIN("STOCHRSI");
// REM RSI indicator
Term=param("Input length",21,1,100,1);
rise=Max(0,Close-Ref(Close,-1));
fall=Max(0,Ref(Close,-1)-Close);
mmrise=EMA(rise,2*Term);
mmfall=Wilders(fall,2*Term);
RS=mmrise/mmfall;
mioRSI=100-100/(1+RS);
// REM Stocastic indicator
upper=HHV(High,Term);
lower=LLV(Low,Term);
oscillator=(Close-lower)/(upper-lower)*100;
lineaK=MA(oscillator, Term);
// REM StochRSI
stkrsi=((mioRSI*lineaK)/100)*1.43;
// return oscilla AS "StochRSI"
Plot(stkrsi,"StochRSI",coloryellow,styleLine);
_SECTION_END();
Thank you in advance!
Can somebody please code this indicator in MT4?
_SECTION_BEGIN("STOCHRSI");
// REM RSI indicator
Term=param("Input length",21,1,100,1);
rise=Max(0,Close-Ref(Close,-1));
fall=Max(0,Ref(Close,-1)-Close);
mmrise=EMA(rise,2*Term);
mmfall=Wilders(fall,2*Term);
RS=mmrise/mmfall;
mioRSI=100-100/(1+RS);
// REM Stocastic indicator
upper=HHV(High,Term);
lower=LLV(Low,Term);
oscillator=(Close-lower)/(upper-lower)*100;
lineaK=MA(oscillator, Term);
// REM StochRSI
stkrsi=((mioRSI*lineaK)/100)*1.43;
// return oscilla AS "StochRSI"
Plot(stkrsi,"StochRSI",coloryellow,styleLine);
_SECTION_END();
Thank you in advance!