Weekly timeframe on Tradingview show OHLC candles from Monday to Friday. NSE has index expiry dates on Thursday instead of Friday though. This script allows to plot OHLC candles with open on every Friday of the week and close on every Thursday of the week.
This script is published closed-source and you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.