OPEN-SOURCE SCRIPT
Mis à jour

CE & PE Signals and Dashboard

41 291
This indicator plots both the Call (CE) and Put (PE) option premiums side by side on a single panel, making it easy to monitor both legs of a Nifty options trade simultaneously.
Features:

Dual candlestick panel — CE and PE plotted together with adjustable gap offset
Session-anchored VWAP for both CE and PE using option volume
EMA overlay on both CE and PE
Key levels — Previous Day High/Low/Close, Opening Range High/Mid/Low, First Candle Close, Target levels (T1/T2)
Fibonacci 50% and POC (Point of Control) calculated from session open
Full line and label customization — color, width, style for every level

Dashboard (bottom-left overlay):

Live Long CE / Long PE signal status — triggers when premium closes above both VWAP and POC, confirmed by Spot ORB breakout/breakdown
CE and PE VWAP values with above/below status
POC and Fib 50% reference levels
Dynamic Next Levels — if CE is above POC, shows PE ORB levels as next targets and vice versa
Active trade tracker showing Entry premium, Target premium, and SL spot level

Trade Signal Logic:

Long CE — CE close above CE VWAP + POC + Spot closes above ORB High
Long PE — PE close above PE VWAP + POC + Spot closes below ORB Low
Target — +20 points on option premium
SL — Spot candle closes below ORB Low (CE) or above ORB High (PE)

Alerts fire on entry, target hit, and SL hit with full details.
Notes de version
Hear is the trader's requested update
1. Unused levels are removed
2. Now we can set the target in both percentage and points by selection tap
3. BEP- Break Even point added as graph
4. Dashboard updated
5. EMA's removed
6. little simplified
Notes de version
In this update
1. BEP value recalculated with previous day close's average price
2. Unused 50% Fib marked removed
3. ATR based target option enabled
Notes de version
IN this update
1. As our community member request option selling strategy included
2. Intraday option selling straddle added with stoploss and target. Dashboard view also added.
3. some Dashboard modification done.
4. if one trade is in progress other trade signal will not be initiated. and one trade on one side only.
Notes de version
Now
1. Minimalic view enamble
2. PE+CE /2 Straddle graph added
Notes de version
Minimalistic view optimized
Notes de version
Hear
1.Some missed labels added
2. Option buying position not closed in intraday. now opened position will be closed on same day
Notes de version
In this update
1. first signal will gererate after 9.24 only
2. If PE signal initiated CE signal will not come before CE exit and
only one signal per side not more than 2 signals per day(CE 1 no = PE 1no)
3. second signal will come after 10.50 am only
Notes de version
Hear is a Major update
1. HR breakout levels of option buying and selling is included ( hear we don't included in signals. in upcoming updates)
Notes de version
AS told entry based on Half range levels is included with SL and Target
Notes de version
Some pugs are fixed
Notes de version
Sell SL updated as point (no need to wait for candle close)
Notes de version
CE & PE TV levels updated
Notes de version
PE sell adjustment added
Notes de version
Sell Adjustment pug fixed
Notes de version
historical levels of TV is ploted
Notes de version
Alert function options enabled as
1. Buy signal alert only
2. Sell signal alert only
3. Both alerts

Sell signal adjustment misalignment problem rectified.
Sell time buy signal crossing issue rectified.

Thanks
Notes de version
Option Buying Triggers tuned

Suggestions
1. Use 15 min for clear trend identification
2. 5 min frame also ok but my suggestion 15 min

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.