PROTECTED SOURCE SCRIPT
BEP Level by Jitendra

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:
- Previous period close
- Today’s open
- 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
request.security(symbol, tf, close[1])
Current Period Open
request.security(symbol, tf, open)
Live Premium
request.security(symbol, timeframe.period, close)
Data Flow Summary
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
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.