OPEN-SOURCE SCRIPT
已更新 NIFTY + SENSEX Expiry Dashboard

NIFTY + SENSEX Premium Expiry Dashboard
This indicator is designed to help traders quickly track the upcoming NIFTY and SENSEX expiry dates directly on the chart through a compact premium dashboard.
It displays both weekly and monthly expiries for:
NIFTY
SENSEX
For each expiry, the dashboard shows:
Raw Expiry
Final Expiry
Holiday Name
Days Left
How it works
The script calculates the normal expiry date first, then checks whether that day falls on a holiday or weekend. If yes, it automatically shifts the expiry to the previous trading day and displays that as the Final Expiry.
This makes it useful for traders who want to avoid manually checking expiry calendars and holiday adjustments.
Dashboard includes
NIFTY Weekly Expiry
NIFTY Monthly Expiry
SENSEX Weekly Expiry
SENSEX Monthly Expiry
Holiday-based expiry adjustment
Days remaining to final expiry
Clean on-chart table layout
Useful for
Index option traders
Weekly expiry traders
Monthly expiry tracking
NIFTY and SENSEX planning
Traders who want expiry visibility directly on TradingView chart
Important note
TradingView Pine Script cannot fetch live exchange holiday calendars automatically, so the holiday list is maintained manually inside the script input. Users should update the holiday list whenever the exchange holiday calendar changes.
Features
Compact premium dashboard
Easy-to-read expiry table
Holiday-aware final expiry calculation
On-chart display
Adjustable dashboard position
This indicator is built for traders who want a simple and practical way to monitor NIFTY and SENSEX expiry schedules without leaving the chart.
Here is a slightly more premium version for publishing if you want stronger wording:
NIFTY + SENSEX Premium Expiry Dashboard
A clean and practical dashboard indicator for tracking upcoming NIFTY and SENSEX weekly and monthly expiries directly on TradingView.
The dashboard shows:
Raw Expiry
Final Expiry
Holiday Name
Days Left
The script automatically checks whether the scheduled expiry falls on a holiday or weekend and shifts it to the previous valid trading day, helping traders stay aligned with actual expiry schedules.
This indicator is especially useful for:
Weekly option traders
Monthly expiry traders
Index traders
Dashboard-based chart users
Traders who want fast expiry reference on-screen
Included rows:
NIFTY Weekly
NIFTY Monthly
SENSEX Weekly
SENSEX Monthly
Key benefit:
Instead of manually checking exchange calendars, traders can view expiry information instantly on the chart in one compact table.
Note:
Holiday data is manually maintained in the script input because Pine Script does not support live holiday calendar fetching.
This indicator is designed to help traders quickly track the upcoming NIFTY and SENSEX expiry dates directly on the chart through a compact premium dashboard.
It displays both weekly and monthly expiries for:
NIFTY
SENSEX
For each expiry, the dashboard shows:
Raw Expiry
Final Expiry
Holiday Name
Days Left
How it works
The script calculates the normal expiry date first, then checks whether that day falls on a holiday or weekend. If yes, it automatically shifts the expiry to the previous trading day and displays that as the Final Expiry.
This makes it useful for traders who want to avoid manually checking expiry calendars and holiday adjustments.
Dashboard includes
NIFTY Weekly Expiry
NIFTY Monthly Expiry
SENSEX Weekly Expiry
SENSEX Monthly Expiry
Holiday-based expiry adjustment
Days remaining to final expiry
Clean on-chart table layout
Useful for
Index option traders
Weekly expiry traders
Monthly expiry tracking
NIFTY and SENSEX planning
Traders who want expiry visibility directly on TradingView chart
Important note
TradingView Pine Script cannot fetch live exchange holiday calendars automatically, so the holiday list is maintained manually inside the script input. Users should update the holiday list whenever the exchange holiday calendar changes.
Features
Compact premium dashboard
Easy-to-read expiry table
Holiday-aware final expiry calculation
On-chart display
Adjustable dashboard position
This indicator is built for traders who want a simple and practical way to monitor NIFTY and SENSEX expiry schedules without leaving the chart.
Here is a slightly more premium version for publishing if you want stronger wording:
NIFTY + SENSEX Premium Expiry Dashboard
A clean and practical dashboard indicator for tracking upcoming NIFTY and SENSEX weekly and monthly expiries directly on TradingView.
The dashboard shows:
Raw Expiry
Final Expiry
Holiday Name
Days Left
The script automatically checks whether the scheduled expiry falls on a holiday or weekend and shifts it to the previous valid trading day, helping traders stay aligned with actual expiry schedules.
This indicator is especially useful for:
Weekly option traders
Monthly expiry traders
Index traders
Dashboard-based chart users
Traders who want fast expiry reference on-screen
Included rows:
NIFTY Weekly
NIFTY Monthly
SENSEX Weekly
SENSEX Monthly
Key benefit:
Instead of manually checking exchange calendars, traders can view expiry information instantly on the chart in one compact table.
Note:
Holiday data is manually maintained in the script input because Pine Script does not support live holiday calendar fetching.
版本注释
holiday string splitting runs many timesthe same holiday scan is repeated for each expiry row
Pine executes across all chart bars, so the loop cost adds up
Use this lightweight optimized version. It avoids repeated string parsing and should run much faster.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。