TradingView
tanayroy
5 août 2021 06:46

Weekly Options Expiry Candle 

Nifty 50 IndexNSE

Description

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.

Notes de version

Commentaires
allarajesh
How to use this please?
tanayroy
@allarajesh, this is a weekly expiry candle. Unlike calendar week candle(Which starts on Monday), this candle starts on Friday and ends on Thursday. You can see the price action of an expiry week.
manis12345
Hi,
Can you please add weekly VWAP which start from Friday to Thursday, which will be more easy on price action.
tanayroy
@manis12345, use the new version tradingview.com/script/D4PvJWUe-Weekly-Options-Expiry-Candle-V-2/
Idea to include VWAP is good. I'll work on it.
Vishalkaushal
Weekly bar size information will be very helpful with it
pritimaystocks
Very helpful script. 👍👍
vamcy
Hi. It's great. Few things are missing. Probably you can add these as well.
1.) Show the current week candle on any day.
2.) Show the values of price on the indicator when its hovered.
tanayroy
@vamcy, good suggestion, will add in next version.
tanayroy
Plus