View attachment 22076
View attachment 22077
Setup 1 is what i like most.Setup 2 is really good for scalping.Setup 3 is useful if you need a strong entry trigger for your main trading system.Now use it as you wish.Add to it or subtract from it.Backtest it. Work out trade management rules.Do your homework.If you like it use it otherwise move onto something else.I made my contribution to this thread to show my gratitude towards VKji and other
great teachers at this forum.
Here is the code once again (this time with day high low indi included.)
////////////////////////////////Day's High Low indi//////////////////////////////////////////////
BarsInDay = BarsSince(Day() != Ref(Day(), -1)); Plot(BarsInDay==0, "", colorWhite, styleHistogram | styleOwnScale | styleLine | styleNoLabel,0,0,0,-5);
Hva=HHV(H,BarsInDay+1);
Lva=LLV(L,BarsInDay+1);
maxva=Max(HHV(O,BarsInDay+1),HHV(C,BarsInDay+1));
minva=Min(LLV(O,BarsInDay+1),LLV(C,BarsInDay+1));
Hb=BarsSince(H==Hva);Lb=BarsSince(L==Lva);
Color=IIf(Hb<Lb,colorGreen,IIf(Hb>Lb,colorRed,colordarkblue));
PlotShapes(shapehollowSmallCircle,Color,0,Hva,1);
PlotShapes(shapehollowSmallCircle,Color,0,Lva,1);
PlotShapes(shapehollowSmallCircle,Color,0,maxva,1);
PlotShapes(shapehollowSmallCircle,Color,0,minva,1);
GfxSetBkColor( colorWhite );
if(LastValue(Hb)<LastValue(Lb))//majormove is up
{GfxSetBkColor( colorGreen );GfxTextOut("DAYBias UP ",10,30); }
else
if(LastValue(Hb)>LastValue(Lb))//majormove is down
{GfxSetBkColor( colorRed );GfxTextOut("DAYBias DOWN ",10,30); }
else
{GfxSetBkColor( colorblue );GfxTextOut("Wait For FirstBarBreak",10,30); }
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////LVC indi////////////////////////////////////////////////////////////////
ulv=Ref(V,-2)>Ref(V,-1) AND Ref(V,-1)<Ref(V,0) AND Ref(C,-1)>Ref(O,-1) AND Ref(C,0)>Ref(O,-1);
dlv=Ref(V,-2)>Ref(V,-1) AND Ref(V,-1)<Ref(V,0) AND Ref(C,-1)<Ref(O,-1) AND Ref(C,0)<Ref(O,-1);
fulv=ExRem(ulv,dlv);
fdlv=ExRem(dlv,ulv);
ulvl=ValueWhen(ulv,Ref(L,-1));
dlvl=ValueWhen(dlv,Ref(H,-1));
fulvl=ValueWhen(fulv,Ref(L,-1));
fdlvl=ValueWhen(fdlv,Ref(H,-1));
PlotShapes(shapeSmallCircle*ulv,colorGreen,0,Ref(L,-1),0,-1);
PlotShapes(shapeSmallCircle*dlv,colorRed,0,Ref(H,-1),0,-1);
PlotShapes(shapehollowCircle*fulv,colorGreen,0,Ref(L,-1),0,-1);
PlotShapes(shapehollowCircle*fdlv,colorRed,0,Ref(H,-1),0,-1);
//////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////Divergence Indi///////////////////////////////////////////////////
showvdiv=ParamToggle("Show OBV Leading", "No|Yes",defaultval=1 );
showpdiv=ParamToggle("Show OBV Lagging", "No|Yes",defaultval=1 );
barsused=Param("Period",5,3,200,1);
vdiv=(OBV()>Ref(HHV(OBV(),barsused),-1) AND c<Ref(HHV(c,barsused),-1)) OR (OBV()<Ref(LLV(OBV(),barsused),-1) AND c>Ref(LLV(c,barsused),-1)) ;
pdiv=(OBV()<Ref(HHV(OBV(),barsused),-1) AND c>Ref(HHV(c,barsused),-1)) OR (OBV()>Ref(LLV(OBV(),barsused),-1) AND c<Ref(LLV(c,barsused),-1)) ;
if(showvdiv)
{PlotShapes(shapesmallUpTriangle*vdiv,IIf((OBV()>Ref(HHV(OBV(),barsused),-1) AND c<Ref(HHV(c,barsused),-1)),colorgreen,colorRed),0,l,-12,0);}
if(showpdiv)
{PlotShapes(shapesmalldowntriangle*pdiv,IIf((OBV()<Ref(HHV(OBV(),barsused),-1) AND c>Ref(HHV(c,barsused),-1)),colorgreen,colorRed),0,h,-12,0);}
/////////////////////////////////////////////////////////////////////////////////////////