Viprasol Institutional Structure Engine## Overview
The Institutional Structure Engine (ISE) is a comprehensive Smart Money / ICT-based overlay indicator that detects institutional order flow through market structure analysis, supply & demand zones, fair value gaps, liquidity sweeps, and divergence detection. It combines 30+ analytical modules into a single tool with a 0-10 confluence scoring system that rates every signal's quality in real time.
Designed for traders who follow ICT methodology, this indicator automates the identification of BOS (Break of Structure), CHoCH (Change of Character), order blocks, breaker blocks, FVGs, equal highs/lows, OTE zones, and more — all with institutional-grade filtering.
## How It Works
**Core Engine:**
The indicator tracks market structure by identifying swing highs and lows using pivot detection, then classifying structural breaks as either continuation (BOS) or reversal (CHoCH). A WMA-based trend baseline with ATR volatility bands provides the directional context.
**Signal Generation:**
BUY/SELL signals fire on CHoCH events (trend reversals). Before display, each signal passes through multiple gates:
- Momentum Gate: validates break candle quality (volume, body size, displacement)
- Anti-Whipsaw Filter: prevents rapid opposing signals
- Signal Filters: optional HTF alignment, ADX trend strength, volatility range
- Session Filter: optional killzone-only signals
- Range Detection: Bollinger squeeze + ADX identifies choppy markets
**Confluence Scoring (0-10):**
Every signal receives a quality rating based on:
- Multi-timeframe alignment (+2 if all 3 HTFs agree)
- RSI divergence confirmation
- Liquidity sweep preceding the signal
- Proximity to fresh order blocks
- ADX trend strength
- Volume surge on the break candle
- Nearby fair value gap
- VIX confirmation
- VWAP level confirmation
- Key level proximity (PDH/PDL/PWH/PWL/PMH/PML)
- Displacement candle presence
- Breaker block proximity
- Volume delta direction
- HTF zone alignment (+2)
- Session killzone activity
- Penalties for ranging markets, RSI exhaustion, and aging trends
## Key Features
- **30+ Analytical Modules** in a single indicator
- **Market Structure Detection** — BOS, CHoCH, HH, HL, LH, LL with clean labels
- **Smart Order Blocks** — graded A-D based on volume, displacement, body ratio, and sweep context
- **Breaker Blocks** — mitigated zones that flip polarity
- **Fair Value Gap Detection** — with fill threshold and auto-mitigation
- **Liquidity Sweep Detection** — equal highs/lows + sweep events
- **RSI Divergence Engine** — regular + hidden, bullish + bearish
- **0-10 Confluence Scoring** — transparent quality rating with detailed tooltip breakdown
- **Session/Killzone Zones** — London, New York, Asia with visual shading (NEW)
- **Premium/Discount Zones** — equilibrium + shaded premium/discount areas (NEW)
- **Adaptive Baseline** — Kaufman Efficiency Ratio auto-adjusts the trend period (NEW)
- **Dynamic Alerts** — v6 alert() with ticker, price, timeframe, and confidence score (NEW)
- **OTE Zone** — 62-79% Fibonacci retracement after reversals
- **Smart TP/SL** — structure-aware targets using FVGs, equal levels, key levels, S/R
- **Trailing Stop** — stepped (BE at TP1, trail at TP2) or ATR-based
- **Performance Tracker** — historical win rate and average R multiple
- **VIX Awareness** — fear/complacency scoring and signal blocking
- **VWAP Confluence** — session VWAP as an institutional reference
- **Range Detection** — BB squeeze + ADX identifies choppy conditions
- **Displacement Candle Detection** — institutional momentum candles
- **Volume Delta Approximation** — buy/sell pressure estimation
- **HTF Zone Projection** — higher timeframe supply/demand overlay
- **Key Levels** — previous day/week/month high & low
- **Chart Mode Presets** — Auto, Execution, Entry Timing, Structure, Session, Context, Macro, Custom
- **Display Density** — Clean, Balanced, Full visual modes
- **20+ Alert Conditions** — tiered by confidence level
## How to Use
1. **Apply to a standard candlestick chart** (NOT Heikin Ashi)
2. **Select a Chart Mode** — "Auto" adapts to your timeframe, or choose manually
3. **Watch for BUY/SELL labels** — higher star ratings = stronger confluence
4. **Check the tooltip** on signal labels for a detailed confluence breakdown
5. **Use order blocks** as support/demand zones for entries
6. **Monitor FVGs** for high-probability revisit zones
7. **Equal highs/lows** show where liquidity pools form
**Recommended Settings:**
- Scalping (1m-5m): Entry Timing preset, enable momentum gate
- Day Trading (5m-15m): Execution preset (default)
- Swing Trading (4H): Structure & Bias preset
- Position Trading (Daily+): Context or Macro preset
## Settings
| Group | Description |
|---|---|
| Chart Mode | Auto-detect or manual preset selection |
| Structure Detection | Swing sensitivity, BOS/CHoCH visibility |
| Trend Baseline | Period, volatility, adaptive option |
| Signal Confidence | Momentum gate, anti-whipsaw, min confluence |
| Divergence | RSI period, require divergence for signals |
| Price Imbalances | FVG detection and fill threshold |
| Liquidity | Equal level detection, sweep events |
| Supply/Demand | Order block visibility and grading |
| Session/Killzones | London, NY, Asia session zones |
| Premium/Discount | Equilibrium and zone shading |
| Take Profit/Stop Loss | R:R targets, smart targets, trailing |
| Signal Filters | HTF, ADX, volatility, divergence, sweep requirements |
| Dashboard | Position, size, density |
## Alerts
**Dynamic Alerts (v6):**
- Bullish/Bearish signal with confidence score, ticker, and price
- Liquidity sweep events with price level
**Tiered Alerts:**
- High Confidence (7+/10) — institutional-grade setups
- Medium Confidence (4-6/10) — decent setups with some confirmation
- Low Confidence (<4/10) — early signals needing additional analysis
**Structure Alerts:**
- BOS, CHoCH, Order Block, Continuation, Displacement, Key Level proximity
## Limitations & Disclaimer
- This is an analytical tool, NOT a trading system. Always use proper risk management.
- Past performance of signal tracking does not guarantee future results.
- Confluence scoring is a heuristic — higher scores correlate with but do not guarantee better outcomes.
- Best used on liquid markets (crypto, forex, indices) where institutional order flow is visible.
- VIX data requires access to the VIX symbol on your data feed.
- Key levels use previous period data with standard non-repainting methodology.
- No indicator replaces understanding market context and price action.
## Credits
Based on concepts from TradeOS by KyleAlgo. Significantly enhanced with session/killzone detection, premium/discount zones, adaptive baseline engine, dynamic v6 alerts, and complete code restructuring under Viprasol branding.
Chỉ báo Pine Script®






















