OPEN-SOURCE SCRIPT
Stock Option Seller - Open Road

## 📌 Description — Open Road · Option Seller
**Open Road · Option Seller** is a structured decision-support indicator designed for **systematic option sellers** trading monthly credit spreads on large-cap Indian equities.
It converts price action, momentum, and volatility into a **clear, rules-based structure selection**:
* **Put Credit Spread**
* **Call Credit Spread**
* **Iron Condor**
* **Wait (no trade)**
The goal is simple:
Remove discretion and provide a **repeatable framework for directional and non-directional option selling**.
---
## ⚙️ Core Logic
The system is built on a **multi-factor scoring model**:
### 1. Trend Engine (3-factor scoring)
* EMA positioning (20/50)
* Short-term consistency (last 5 closes vs EMA)
* 21-day momentum
This produces a **Trend Score (-3 to +3)**:
* +3 → Strong Bullish
* -3 → Strong Bearish
* Between → Neutral / Lean bias
---
### 2. Market Condition Filters
* **RSI (14)**
* Identifies exhaustion and conflicts with trend
* **ADX (14)**
* Distinguishes trending vs range-bound environments
---
### 3. Structure Selection Logic
* **Low trend / extreme RSI → Iron Condor**
* **Trend + clean RSI + ADX confirmation → Directional spreads**
* **Conflict → No trade (WAIT)**
This ensures trades are taken only when **market structure is aligned**.
---
### 4. Strike & Risk Framework
* Uses **ATR-based wing sizing**
* Automatically rounds to practical strike intervals
* Provides **approximate strike suggestions** for:
* Short legs
* Hedge legs
---
## 📊 Visual Panels
The indicator includes 4 diagnostic panels:
1. **EMA Distance Panel**
→ Measures price positioning vs trend
2. **RSI Panel**
→ Highlights overbought / oversold regimes
3. **ADX Panel (+DI / -DI)**
→ Identifies trend strength and direction
4. **Trend Score Histogram**
→ Clean visual representation of directional bias
---
## 🧠 Signal Output
On the latest candle, the system displays a **decision panel** with:
* Trend classification
* Score (out of 3)
* RSI & ADX interpretation
* ATR + wing size
* Final structure recommendation
* Suggested strike levels
---
## 🎯 Designed For
* Monthly option sellers
* Systematic traders (rule-based execution)
* Traders who want to avoid discretionary bias
* Large-cap equity option strategies
Best suited for:
**RELIANCE, HDFCBANK, TCS, SBIN, AXISBANK (Daily timeframe)**
---
## ⚠️ Important Notes
* This is a **decision-support tool**, not a fully automated trading system
* Strike suggestions are **approximate** and should be validated with live option chain data
* Works best when combined with **risk management and position sizing discipline**
---
## 🧩 Philosophy
Most option sellers fail not because of strategy, but because of **inconsistent structure selection**.
Open Road enforces:
* When to sell directionally
* When to stay neutral
* When to not trade
That alone removes a large part of edge erosion.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.