OPEN-SOURCE SCRIPT

NIFTY, SENSEX AND BANKNIFTY Options Expiry Marker

35
NSE Options Expiry Background Marker
Category: Date/Time Indicators
Timeframe: Daily
Markets: NSE (India) / Any Exchange



Description
Automatically highlights weekly and monthly options expiry days for NIFTY, BANKNIFTY, and SENSEX using color-coded background shading. Works across entire chart history with customizable transparency levels.

Key Features

  1. ✅ Background Highlighting - Non-intrusive color shading on expiry days
  2. ✅ Multi-Index Support - NIFTY, BANKNIFTY, and SENSEX simultaneously
  3. ✅ Weekly & Monthly Expiry - Different transparency levels for easy distinction
  4. ✅ Customizable Expiry Days - Set any weekday (Mon-Fri) as expiry day
  5. ✅ Adjustable Transparency - Separate controls for weekly and monthly expiries
  6. ✅ Full Historical Data - Works on all visible bars across years
  7. ✅ Smart Monthly Detection - Automatically identifies last occurrence in month
  8. ✅ Color Coded - Blue (NIFTY), Red (BANKNIFTY), Green (SENSEX)



Use Cases

  1. Options trading strategy planning
  2. Identify expiry day volatility patterns
  3. Visual reference for monthly vs weekly cycles
  4. Backtest strategies around expiry days
  5. Track multiple index expiries on single chart


Technical Details
  1. Uses India timezone (GMT+5:30) for accurate date calculations
  2. Handles leap years automatically
  3. Smart algorithm identifies last weekday occurrence per month
  4. Works seamlessly on any chart timeframe (optimized for Daily)
  5. No performance impact - simple background coloring

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.