Image to clear what output is neededhad tried multiple logic to get exact bar number from opening of market where stock price was highest/lowest, Please suggest a better whole code.
e.g. attached image, where i want value 11 as output for day low bar via pine/tradingview script. it's today 23Jan23 chart for Nifty50 Index.