Skip to main content

Bull Power vs Bear Power for Amibroker (AFL)

actuaryinmaking about 15 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 3)
  • Tags:
    oscillator, amibroker

Bull Power vs Bear Power

Screenshots

Indicator / Formula

Copy & Paste Friendly
UpTick = C > Ref(C, -1);
DnTick = C < Ref(C, -1);

SelBI = SelectedValue(BarIndex()) ;
TotUpTick = 0;
for(i = SelBI; i < BarCount; i++)
{
TotUpTick = TotUpTick + UpTick[i];
}
ConsecCZ10UP = BarsSince(C <= Ref(C,-1));
ConsecCZ10Dn = BarsSince(C >= Ref(C,-1));
updncz10=(Conseccz10up-Conseccz10dn);
Plot(1,"",colorBlueGrey,styleLine|styleNoLabel|styleNoTitle);
Plot(0,"",ColorRGB(150,150,150),styleDashed|styleLine|styleNoLabel|styleNoTitle);
Plot(-1,"",colorBlueGrey,styleLine|styleNoLabel|styleNoTitle);

Plot(updncz10,"UptickDntick",IIf(updncz10>0,colorBlue,colorRed),styleHistogram|styleThick);
PlotOHLC(1,1,-1,-1,"",ColorRGB(20,20,25),styleCloud|styleNoLabel|styleNoTitle,Null,Null,0,-5);

0 comments

Leave Comment

Please login here to leave a comment.