PROTECTED SOURCE SCRIPT
Telah dikemas kini

๐Ÿง  STWP Dashboard (Bull Call Spread / Bear Put Spread)

168
________________________________________
๐Ÿง  STWP Options Strategy Dashboard (Bull Call Spread/ Bear Put Spread)
Author: simpletradewithpatience
Markets: NSE (India)
Best timeframe: 1-second chart
Built with: Pine Script v5
________________________________________
๐Ÿ“Œ Overview
A real-time options strategy dashboard tailored for NSE traders, designed for two-leg spreads:
โœ… Bull Call Spread โ†’ Buy Lower Strike CE, Sell Higher Strike CE
โœ… Bear Put Spread โ†’ Buy Higher Strike PE, Sell Lower Strike PE
This tool gives you a real-time, color-coded visual interface with:
Entry premiums & breakeven levels
Live LTPs & PnL
ROI & Risk: Reward
Smart Exit logic
Alerts for expiry, Greeks, and PnL events
Itโ€™s fully manual, for educational and tracking use only โ€” not for automated trading.
________________________________________
๐Ÿ“Œ Key Features
โœ… Track Bull Call & Bear Put Spreads
โœ… Live LTP tracking via symbol input
โœ… Real-time PnL, breakeven, max profit/loss
โœ… ROI & Risk:Reward calculation
โœ… Smart Exit logic with trade verdicts
โœ… Invalidation logic with Reversal Exit
โœ… Manual input of Greeks (Delta, Gamma, Theta, IV%)
โœ… Greek-based alerts for Gamma Risk, IV Crush, Theta Decay
โœ… Days to Expiry (DTE) tracking
โœ… Fully customizable alert system
โœ… Clean, emoji-labelled dashboard UI
โœ… Built for Indian NSE options only
โœ… Requires 1-second chart for correct data
________________________________________
๐Ÿ“Œ Option Symbol Inputs (LTP Tracking)
โœ… Long Leg Symbol (Buy): Lower strike CE (Bull Call) or higher strike PE (Bear Put)
โœ… Short Leg Symbol (Sell): Higher strike CE (Bull Call) or lower strike PE (Bear Put)
โœ… Symbol Tips: Use TradingView's dropdown to select NSE option symbols like NSE:RELIANCE25JUL3000CE
โš ๏ธ Providing valid option symbols is crucial โ€” it powers all live tracking and calculations.
________________________________________
๐Ÿ“Œ Trade Setup Parameters
Spot Price at Entry
Long & Short Strike Prices
Buy Price (Long Leg)
Sell Price (Short Leg)
Lot Size & Number of Lots
Loss Bearable Amount (โ‚น) โ†’ Used by Smart Exit logic to issue early warnings
________________________________________
๐Ÿ“Œ Expiry Date Input
Expiry Year, Month, and Day
๐ŸŽฏ Used to calculate Days to Expiry (DTE) and enable:
โฑ๏ธ Expiry alerts like โ€œLess than 2 Daysโ€, โ€œTheta Riskโ€, and more
๐Ÿ“‰ Smart Exit logic adjusts based on time decay
________________________________________
๐Ÿ“Œ Greeks (Optional)
๐Ÿ”น Default Mode: Donโ€™t Enter Greeks
๐Ÿ”น Optional Mode: Enter Greeks for both legs (Delta, Gamma, Theta, IV%)
๐Ÿ” Enabling Greeks unlocks:
Net Delta, Gamma, Theta, IV
Greek-based warnings (e.g. Gamma Risk, Theta Risk)
A dashboard Greek Verdict:
โ€ƒ๐ŸŸข Conservativeโ€ƒ๐ŸŸก Moderate Riskโ€ƒ๐Ÿ”ด Aggressive Risk
________________________________________
๐Ÿ“Œ Dashboard Display
๐ŸŽฏ Strategy Type (Bull or Bear Spread)
๐Ÿ“ˆ Entry Premiums & Live LTPs
๐Ÿ’น Breakeven, Max Profit/Loss, Net Premium
๐Ÿ“Š ROI % & Risk:Reward (with verdict)
๐Ÿ“‰ Real-time PnL using tick-by-tick data
๐Ÿšฆ Smart Exit verdict: Hold, Exit Soon, or Book Profit
๐Ÿ” Reversal Exit Price (spread invalidation logic)
๐Ÿ“† Days to Expiry (DTE)
๐Ÿ“ Greek Data (if enabled) with Net & Average values
โš ๏ธ Greek Risk Verdict for managing directional risk
________________________________________
๐Ÿ“Œ Alert System (Built-in Alerts)
๐ŸŽฏ Target Profit Hit
โŒ Max Loss Reached
๐Ÿ›‘ Loss Bearable Limit Breached
๐Ÿ“ Hold Signal
๐Ÿ“‰ Book Loss / Exit Soon
โณ Expiry Nearing
โš ๏ธ Spread Invalidation Alert (via Reversal Price breach)
๐Ÿ’ฅ High Gamma Risk (if Gamma > ยฑ0.05)
๐Ÿ“‰ High IV Alert (if IV > 35%)
๐Ÿšจ Combined Master Alert โ€“ fires if any key condition is triggered
________________________________________
๐Ÿ“Œ Smart Exit System
โš™๏ธ Context-aware, dynamic trade assistant
โœ… Analyses real-time market, PnL, expiry risk, reversal risk
โœ… Gives exit suggestions based on:
Time decay
Price invalidation
Breach of defined loss/profit thresholds
โœ… Keeps you objective โ€” no emotional exits
________________________________________
๐Ÿ“Œ Reversal Exit Logic
๐Ÿ” Detects directional failure in spread structure
Bull Call Spread: Invalidation = Spot falls 25% of net premium below long strike
Bear Put Spread: Invalidation = Spot rises 25% of net premium above short strike
๐Ÿ“‰ Alerts you to exit even before loss appears
๐ŸŽฏ Designed for directional traders using spread logic
๐Ÿ’ก Acts as a breakdown or breakout filter
________________________________________
โš ๏ธ Important Notes
โœ… Built for NSE Options โ€“ not for global exchanges
โœ… Only for Bull Call & Bear Put spreads
โœ… Use on 1-second chart only
โŒ Will not work properly on higher timeframes
โœ… Manual tool only โ€“ doesnโ€™t place trades
โœ… For educational and research use only
________________________________________
๐Ÿ’ฌ How to Use This Dashboard
Choose Your Strategy
โ€ƒBull Call or Bear Put
Input Symbols & Strikes
โ€ƒUse Tradingview dropdown to select accurate NSE option symbols
Enter Buy/Sell Prices
โ€ƒAdd premiums, lot size, no. of lots
(Optional) Enable Greeks
โ€ƒAdd Delta, Gamma, Theta, IV for both legs
Set Expiry Date
โ€ƒYear, Month, Day โ€” activates DTE & expiry alerts
Monitor Dashboard
โ€ƒLive PnL, Max P/L, ROI, R:R, Smart Exit, Reversal Levels
(Optional) Enable Alerts
โ€ƒGet notified for PnL events, expiry risk, Greek risk, spread failure
________________________________________
๐Ÿค Final Note
This tool was built with patience and care by simpletradewithpatience to help fellow options traders trade more objectively, systematically, and confidently.
Feel free to share feedback on Tradingview.
Happy Trading! ๐Ÿ“ˆ
Stay disciplined. Stay smart.
________________________________________
๐Ÿ”  Glossary
PnL โ€“ Profit & Loss
LTP โ€“ Last Traded Price
IV โ€“ Implied Volatility
DTE โ€“ Days to Expiry
ROI โ€“ Return on Investment
R:R โ€“ Risk to Reward Ratio
CE / PE โ€“ Call / Put Option
SEBI โ€“ Securities and Exchange Board of India
________________________________________
โš ๏ธ Disclaimer
This script is for educational and research purposes only.
I am not a SEBI-registered advisor.
No buy or sell recommendations are made.
Trading options involves significant risk.
Use proper risk management and always consult a licensed advisor if in doubt.
The author is not responsible for any financial losses incurred.
By using this tool, you agree to these terms.
________________________________________
Nota Keluaran
Updated - Columns added = Buying Price | Selling Price | Net LTP
Nota Keluaran
Update: Now you can select if new trade or running trade just before entering greeks and output will be sown in Trade Outcome cell in the table.
syot kilat

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.