hi,iam looking for an afl to identify harami(bullish/bearish),i want to add it to the below AFL ,can someone help me with the same.
Plot(C,"",colorLightGrey,styleCandle);
r=CdDoji( threshold = 0.05 );
s=CdHammer( rangefactor= 0.5);
t=CdBearishEngulfing( bodyfactor = 0.4, rangefactor = 0.5);
u=CdBullishEngulfing( bodyfactor = 0.4, rangefactor = 0.5);
PlotShapes(r*shapeSmallCircle,colorRed,Layer=0,yposition=H,Offset=12);
PlotShapes(s*shapeCircle,colorYellow,Layer=0,yposition=H,Offset=12);
PlotShapes(t*shapeHollowSmallCircle,colorLime,Layer=0,yposition=H,Offset=12);
PlotShapes(u*shapeHollowCircle,colorBlue,Layer=0,yposition=H,Offset=12);
for(i=0;i<BarCount-1;i++)
{
if(r==True)PlotText("Doji", i, H, colorRed, bkcolor = colorDefault);
if(s==True)PlotText("Hammer", i, H, colorYellow, bkcolor = colorDefault);
if(t==True)PlotText("BearishEngulf", i, H, colorLime, bkcolor = colorDefault);
if(u==True)PlotText("BullishEngulf", i, H, colorBlue, bkcolor = colorDefault);
}