Hi Happy
Thanks for this code.
just see the below thing
it takes us to oscillator
it is not correct. some error may be there
the oscp(r1,r2) is not working here.
no idea why.
My idea is present rsi and obv as like price oscillator or like MACD
NOT OK YET
regards
ford
Thanks for this code.
just see the below thing
it takes us to oscillator
it is not correct. some error may be there
the oscp(r1,r2) is not working here.
no idea why.
My idea is present rsi and obv as like price oscillator or like MACD
NOT OK YET
regards
ford
HTML:
SetChartOptions(0,0,chartGrid30|chartGrid70);
P = Param( "Periods",15, 1, 200, 1);
HiOBV = HHV(OBV(),P*10);
LoOBV = LLV(OBV(),P*10);
StochOBV = ((OBV() - LoOBV)/(HiOBV - LoOBV))*100;
R = RSI(P);
//Plot(R,"RSI",colorBlue,styleThick);
//Plot(StochOBV ,"OBV",colorRed,styleThick);
_SECTION_END();
r1=StochOBV ;
r2 =RSI(P) ;
//r1=MA(StochOBV,10) ;
//r2 =MA(RSI(P),10) ;
RATIO = (r2-r1)/r2 ;
BARCOLOR =IIf(r1>r2,colorBrightGreen,colorRed);
Plot(RATIO,"RATIO",BARCOLOR,styleHistogram);
//Plot( OscP( r1,r2), _DEFAULT_NAME(), BARCOLOR, styleHistogram );//not ok
//Plot( abs(OscP( r1,r2)), _DEFAULT_NAME(), BARCOLOR, styleHistogram );//as per subroto
_SECTION_END();