PROTECTED SOURCE SCRIPT

BEP Level by Jitendra

46

BEP Level Indicator "Break-Even Zone"

Overview Summary of This Indicator

Options Break-Even (BEP) indicator that calculates and plots Call & Put BEP levels using real option premiums.
It helps option sellers identify the true no-profit / no-loss price zone directly on the chart.

This indicator is ideal for NIFTY, BANKNIFTY, SENSEX, BANKEX, and NSE stocks.

Dynamically builds ATM option symbols (CE & PE)
Fetches option premiums from NSE / BSE
Calculates Call BEP & Put BEP
Displays forward-only or historical BEP levels
Highlights the BEP trading zone
Triggers alerts when price enters the BEP zone



Key Features

  • Accurate Options BEP Calculation
  • Uses real CE & PE option premiums
  • Supports Daily / Weekly / Monthly BEP
  • Manual ATM Strike & Expiry control
  • BEP Zone visualization
  • Forward-only clean BEP levels
  • Historical BEP tracking (optional)
  • Alert when price enters BEP zone
  • Designed for option sellers & range traders


How BEP Is Calculated

Call BEP = ATM Strike + Call Premium

Put BEP = ATM Strike − Put Premium


Between Call BEP & Put BEP

  • Price inside zone → Option sellers break even
  • Price outside zone → One side starts losing



Premium source can be selected as:

  1. Previous period close
  2. Today’s open
  3. Live premium



Supported Instruments
Fill Right Option Expiry Dates in Setting
  • NIFTY
  • BANKNIFTY
  • SENSEX (BSX)
  • BANKEX (BKX)
  • NSE Stocks


Display Modes

Only Next BEP

  • Shows forward-projected BEP levels only
  • Best for live trading
  • Clean & clutter-free view

снимок


Next + Historical

Displays past BEP levels
Optional shaded BEP zone
Useful for analysis & back testing


снимок

ATM & EXPIRY SETTING

снимок

Premium Data Retrieval (Core Logic)

Previous Period Close
Pine Script®
request.security(symbol, tf, close[1])


Current Period Open
Pine Script®
request.security(symbol, tf, open)


Live Premium
Pine Script®
request.security(symbol, timeframe.period, close)


Data Flow Summary
Pine Script®
Chart Symbol ↓ Instrument Detection ↓ Prefix + Expiry + Strike ↓ Option Symbol (CE / PE) ↓ request.security() ↓ Premium Selection ↓ BEP Calculation


Data Safety & Performance Considerations

  • Uses dynamic_requests=true to allow runtime symbol creation
  • No loops → avoids request limit issues
  • Premiums are fetched only for:

One Call option
One Put option


  • Optimized for real-time usage



Thanks
TradingView Community


Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.