I am looking to identify the anchor bar that has at least 2 lower lows or lower closes and similarly, 2 higher highs or higher closes.
I need to store these details and then use them to identify whether there is a breakout. The bars need not be consecutive.
Also, I need to add labels to these anchor bars as well.
Is there a way to identify these and also to attach the labels. Thanks in advance.
Comment