PROTECTED SOURCE SCRIPT
CE & PE Option Tracker

This Pine Script is a comprehensive **Options Trading Indicator** for TradingView that tracks Call (CE) and Put (PE) options while providing trading signals based on daily and weekly price movements. Here's a breakdown of its key features:
### **1. Core Functionality**
- Tracks **CE & PE premiums** (Open, High, Low, Close) for specified option symbols.
- Plots **combined premium candles** (CE + PE) with dynamic coloring (green if bullish, red if bearish, blue if a straddle is active).
### **2. Key Features**
#### **a) Daily & Weekly Open Levels**
- Marks **daily open prices** (9:15 AM) for CE & PE as horizontal lines.
- Marks **weekly open prices** (Monday 9:15 AM) for trend confirmation.
#### **b) Straddle/Strangle Entry & Exit Logic**
- **Entry:** Triggers when both CE & PE close below their daily open (indicating premium decay).
- **Exit:** Closes the straddle if either CE or PE crosses back above its daily open.
#### **c) Buy/Sell Signals**
- **Intraday Signals:**
- *Buy CE/PE* when premium crosses above daily open.
- *Sell CE/PE* when premium crosses below daily open.
- **Weekly Confirmation Signals:**
- Stronger signals when price crosses weekly open levels.
#### **d) Supertrend on Combined Premium**
- Uses a **custom ATR-based Supertrend** to identify trend direction (green for uptrend, red for downtrend).
#### **e) Info Table (Top-Right Corner)**
Displays:
- Current CE & PE prices
- Daily & weekly open levels
- Active weekly signals (Buy/Sell)
- Straddle status (Active/None)
### **3. Alerts**
- **Straddle Entry Alert:** When both CE & PE are below daily open.
- **Straddle Exit Alert:** When either CE or PE moves back above daily open.
### **Use Case**
This script is useful for **options traders** looking for:
- **Straddle/Strangle opportunities** (premium decay plays).
- **Trend-following signals** (daily & weekly confirmation).
- **Combined premium analysis** (CE + PE Supertrend).
### **1. Core Functionality**
- Tracks **CE & PE premiums** (Open, High, Low, Close) for specified option symbols.
- Plots **combined premium candles** (CE + PE) with dynamic coloring (green if bullish, red if bearish, blue if a straddle is active).
### **2. Key Features**
#### **a) Daily & Weekly Open Levels**
- Marks **daily open prices** (9:15 AM) for CE & PE as horizontal lines.
- Marks **weekly open prices** (Monday 9:15 AM) for trend confirmation.
#### **b) Straddle/Strangle Entry & Exit Logic**
- **Entry:** Triggers when both CE & PE close below their daily open (indicating premium decay).
- **Exit:** Closes the straddle if either CE or PE crosses back above its daily open.
#### **c) Buy/Sell Signals**
- **Intraday Signals:**
- *Buy CE/PE* when premium crosses above daily open.
- *Sell CE/PE* when premium crosses below daily open.
- **Weekly Confirmation Signals:**
- Stronger signals when price crosses weekly open levels.
#### **d) Supertrend on Combined Premium**
- Uses a **custom ATR-based Supertrend** to identify trend direction (green for uptrend, red for downtrend).
#### **e) Info Table (Top-Right Corner)**
Displays:
- Current CE & PE prices
- Daily & weekly open levels
- Active weekly signals (Buy/Sell)
- Straddle status (Active/None)
### **3. Alerts**
- **Straddle Entry Alert:** When both CE & PE are below daily open.
- **Straddle Exit Alert:** When either CE or PE moves back above daily open.
### **Use Case**
This script is useful for **options traders** looking for:
- **Straddle/Strangle opportunities** (premium decay plays).
- **Trend-following signals** (daily & weekly confirmation).
- **Combined premium analysis** (CE + PE Supertrend).
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。