LTP at double top / double bottom formation

When double top / double bottom is formed, the last traded price (LTP) is different from the price when double top / double bottom is formed. How to get the LTP at the moment the double top / double bottom is formed ?

you can check double top and double bottom with the help of pattern recognition in zerodha pi, open the chart and go to artificial intelligence -> pattern recognition and select the required patterns from drop down menu