PROTECTED SOURCE SCRIPT

CE & PE Option Tracker

22
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).

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.