_SECTION_BEGIN("OBV BO_BD 5");
n = Param("Period",5,5,500,5);
y = Param("Ribbon Y",45,0,500,5);
Ob = OBV();
Hi = HHV(Ob,n);
Lo = LLV(Ob,n);
B1 = Cross(Ob,Ref(Hi,-1));
S1 = Cross(Ref(Lo,-1),Ob);
B1 = ExRem(B1,S1);
S1 = ExRem(S1,B1);
UP1 = Flip(B1,S1);
DN1 = Flip(S1,B1);
PlotOHLC(y,Y+5,y,y,"",IIf(UP1,colorBlue,colorRed),styleOwnScale|styleNoLabel|styleCloud,0,500);
_SECTION_END();