Skip to main content

Bearish flip for Amibroker (AFL)

nazmoonnoor over 4 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    amibroker, exploration

This works as a scanner to find candles that formed as bearish flips. Also can plot arrow to show which candle has formed bearish flip on the price chart.

Indicator / Formula

Copy & Paste Friendly

condition1 = C > Ref(C, -1) AND C > Ref(C, -2) AND C > Ref(C, -3) AND C > Ref(C, -4);
condition2 = Ref(C, -1) < Ref(C, -2) AND Ref(C, -1) < Ref(C, -3) AND Ref(C, -1) < Ref(C, -4) AND Ref(C, -1) < Ref(C, -5);
condition3 = O >= Ref(C, -1);

bearishFlip = condition1 AND condition2 AND condition3;

PlotShapes(IIf(bearishFlip==1,shapeUpArrow , shapeNone), colorDarkGreen, 0, Low, Offset=-15);

Filter = bearishFlip;

AddTextColumn( SectorID( 1 ), "Sector" );
AddColumn(C, "Close",1.2);
AddColumn(ROC(C,1), "Change %",1.2);

SetSortColumns( 3 );

0 comments

Leave Comment

Please login here to leave a comment.