Weekly OHLC with Thursday closing

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.
Protected script
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.

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?