First of all thank you for implementing custom scripts in Dhan Chart.
I found an issue, whenever I try to get the previous day close of a particular NIFTY option it is provide previous day last candle close instead of the day close. I even checked in the existing indicator (Dext Prev Day OHLC) it is also showing incorrect PDC value. Attached both Dext Chart and TradingView Chart. Kindly fix this issue. Note: PDC for NIFTY50 Index is working fine.
TradingView Custom Indicator:

Dext Prev Day OHLC Indicator:
