AFL for Bearish and Bullish day detection
This AFL can be used for detecting Bearish and Bullish days
Script:
down_BarM = Close > Ref((High+Low)/2,-1);
up_BarM = Close < Ref((High+Low)/2,-1);
Plot(BarsSince(down_BarM),”Price Down Based On Midpoint”,colorRed,styleHistogram,width=3);
Plot(BarsSince(up_BarM),”Price Up Based On Midpoint”,colorLime,styleHistogram,width=3);