OPEN-SOURCE SCRIPT
Updated

Weekly Options Expiry Candle

8461
This script shows weekly expiry candle on daily chart. In weekly expiry, week starts on Friday and end on next Thursday.
How the candle is constructed:
Open= Open price of Friday, if Friday is a holiday, next available open price
High= Highest high price of Friday, Monday, Tuesday, Wednesday, Thursday
Low= Lowest low price of Friday, Monday, Tuesday, Wednesday, Thursday
Close=Close price of Thursday, if Thursday is a holiday, previously available close price
I am very new to Pine script, so waiting for your comments and review.
Release Notes
New Version Available:
Weekly Options Expiry Candle V.2

Disclaimer

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.