How to Profit from the Bearish Harami Candlestick Pattern

How to Profit from the Bearish Harami Candlestick Pattern


Below is a simple AFL script to detect the Bearish Harami in Amibroker:

// Bearish Harami AFL Code for Amibroker

_SECTION_BEGIN(“Bearish Harami”);

 

FirstBullish = Ref(Close, -1) > Ref(Open, -1);

SecondBearish = Close

SmallCandle = (High – Low)

Contained = Open Ref(Open, -1);

 

BearishHarami = FirstBullish AND SecondBearish AND SmallCandle AND Contained;

 

PlotShapes(IIf(BearishHarami, shapeStar, shapeNone), colorRed, 0, High);

 

_SECTION_END();

This script finds Bearish Harami patterns and marks them with a red star.





Source link

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *