OPEN-SOURCE SCRIPT
HTF Control Shift + FVG Interaction + Shift Lines

### 📘 **HTF Control Shift + FVG Interaction + Shift Lines**
This indicator combines **Higher Timeframe Control Shift detection**, **Fair Value Gap (FVG) tracking**, and **Shift Line projection** into one complete structure-based trading toolkit.
#### 🔍 **Features**
* **Control Shift Detection:**
Highlights bullish or bearish “Control Shift” candles based on wick/body ratios — showing where aggressive control transitions occur.
* **Fair Value Gap Mapping:**
Automatically detects and draws bullish or bearish FVGs on any chosen timeframe, with optional dynamic extension and mitigation tracking.
* **Shift Line Projection:**
Extends high and low lines from each Control Shift candle to visualize structure and potential continuation or rejection zones.
* **Interaction Alerts:**
Triggers alerts when:
* A Bullish Control Shift interacts with a Bullish FVG
* A Bearish Control Shift interacts with a Bearish FVG
* Price breaks the high/low following an interaction
* **Visual Highlights:**
Colored FVG zones, labeled interactions, and diamond markers for easy visual confirmation of key reaction points.
#### ⚙️ **How to Use**
1. Choose a **higher timeframe (HTF)** in settings (e.g., 15m, 1h, 4h).
2. Watch for **Control Shift candles** (yellow/orange bars) forming at or interacting with **FVG zones**.
3. A **Bullish Interaction + Break of High** often signals continuation.
A **Bearish Interaction + Break of Low** may confirm rejection or trend reversal.
4. Use alerts to track live market structure shifts without constant chart watching.
#### 🧠 **Purpose**
Ideal for traders combining **Smart Money Concepts (SMC)** and **candle structure logic**, this tool visualizes where institutional aggression shifts align with **liquidity gaps** — helping anticipate **high-probability continuations or reversals**.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.