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
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน