Bearish Harami at Day start Candle

Dear Seniors,

I am new to AFL coding, So please ignore my novice knowledge.
I am trying to code an AFL to findout a bearish/Bullish Harami at the days start, where in the day has opened with a gap.
Below Example, the Day opened with a small gap from previous day close.
the first candle and second candle were Green and Red (Bearish Harami).

Kindly assist. This has to be at the days start.

Thanks a ton in advance.


Broker Special Offers

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Are you a day trader?