OPEN-SOURCE SCRIPT
Updated

ICC Market Structure and Phase Tracking

22 719
ICC Market Structure and Phase Tracker

ICC Market Structure and Phase Tracker is a visual market-structure indicator based on the Indication → Correction → Continuation (ICC) framework — a structured approach to analyzing break-of-structure, pullback, consolidation, and trend-continuation phases.

The script focuses on identifying structural phases, key levels, and phase transitions across multiple timeframes, providing clear contextual market structure information.

What the Indicator Identifies
The indicator tracks complete market-structure cycles by classifying price action into the following phases:
  • Indication — initial structural break or trend initiation
  • Correction — pullback, retracement, or consolidation following the break
  • Continuation — expansion or impulse in the direction of structure
  • Neutral / No Setup — periods without valid structural conditions
Each phase is visually distinguished on the chart for fast, at-a-glance structural awareness.

CORE FEATURES
Market Structure & Phase Tracking
  • Automatic detection of structural breaks, corrections, consolidations, and continuations
  • Background shading to clearly distinguish phases
  • Invalidation logic to identify failed or broken structures
Multi-Timeframe Context
  • Optional higher-timeframe (HTF) structure displayed on lower-timeframe charts
  • HTF indication levels shown as reference lines
  • HTF phase and context displayed in the information table
Structure Event Visualization
  • Visual markers for continuation and optional reversal structures
  • Clear visual separation between trend-aligned and counter-structure events
  • Reversal structure visualization can be enabled or disabled in settings
Volatility-Aware Structure Zones
  • Structure-based support and resistance zones
  • Optional ATR-based zone sizing that adapts to market volatility
  • Configurable historical zones (0–3) with visual hierarchy
Information Table
  • Displays current ICC phase, indication level, consolidation status, and HTF context
  • Designed for quick reference without relying solely on chart visuals
Alerts
  • Alerts trigger only when corresponding visual conditions appear on the chart
  • Includes alerts for ICC phases, continuation structures, and optional reversals
Configuration Overview
  • Auto Profiles for different trading contexts (Scalping, Intraday, Swing, Entry)
  • Manual controls for swing length, consolidation behavior, and volatility settings
  • Higher-timeframe controls for filtering and visual alignment
  • Reversal toggle to enable or disable counter-structure visualization
Default settings are intended as reasonable starting points and can be adjusted for different instruments and timeframes.

Intended Use
This script is designed as a market-structure and contextual analysis tool.

Users are expected to apply their own analysis, validation, and risk management when interpreting the displayed structure.

Feedback
Bug reports, edge cases, and constructive feedback are welcome.
The project is actively refined with a focus on structure clarity, phase accuracy, and multi-timeframe usability.
Release Notes
Update: On 15-minute and lower charts, the indicator now shifts from structure confirmation to entry detection. This means lower-timeframe signals are intended for entries, not full ICC structure. When price breaks the latest support or resistance, an ENTRY flag will appear. This helps identify potential trade entries when dropping down to lower timeframes to time the end of a correction aligned with a higher-timeframe bias, and when not aligned, may indicate a potential early counter-trend reversal setup, or that the higher-timeframe correction is still in progress.

The final row of the table remains visible to keep the selected higher-timeframe phase in context, serving as a reminder of the broader market structure while executing on lower timeframes. Also, the table’s higher-timeframe reference now adjusts automatically: 1-hour charts reference the 4-hour timeframe, and 4-hour charts reference the Daily timeframe.

Although ICC is not a scalping-focused trading style, these lower-timeframe ENTRY signals may be effectively used by traders who favor scalping-style executions.
Release Notes
Small update to address the table visibility when using dark mode; table will update depending on light/dark background colors, and you can also now change the location of the table on the chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.