INVITE-ONLY SCRIPT

Smart Money Concepts [Kodexius]

49
Smart Money Concepts is a comprehensive price action framework designed to visually organize many of the core ideas behind “smart money” and price action trading concepts. It brings together market structure, order blocks, imbalances, liquidity, premium/discount zones, swing failures and higher timeframe context into a single, coherent overlay on your chart. Instead of jumping between multiple tools, the script aims to give you a structured map of where price has been interacting with liquidity and value, and how that structure is evolving in real time.

All major components are modular and highly configurable, so you can keep only what you care about: from a minimal market structure view to a fully loaded institutional style dashboard. The focus of the script is visual clarity and context highlighting reaction zones, swept levels and structural transitions while letting you decide how to interpret and use that information in your own workflow.

snapshot

🔹 Features

🔸 Market Structure Engine (CHoCH & BoS)

Change of Character (CHoCH) and Break of Structure (BoS) are complementary smart money market structure concepts that describe two different phases in how a trend evolves.

CHoCH refers to the first meaningful shift in structure that suggests the prevailing trend may be weakening and a new directional bias could be emerging (for example, a market that has been making higher highs and higher lows starts to form lower highs and lower lows).

BoS, on the other hand, is typically used as a confirmation of trend continuation: price extends beyond a key swing high in an uptrend or a key swing low in a downtrend, reinforcing that the existing directional structure remains intact.

Put simply, CHoCH is associated with a potential reversal in market character, while BoS underscores the continuation and extension of the current trend.

Script automatically detects and labels market structure shifts using swing based logic (Change of Character / CHoCH and Break of Structure / BoS).

Bullish Change of Character :

snapshot

Bearish Change of Character :

snapshot

Bullish Break of Structure :

snapshot

Bearish Break of Structure :

snapshot

Differentiates between first structural flips and continuation breaks, helping you see when the dominant direction is potentially shifting or being reinforced.

Draws structure reference lines at key swing levels so you can visually anchor where those events occurred on the chart.

🔸 Order Blocks with Volumetric Insight

Identifies bullish and bearish order blocks from the most relevant impulsive moves after structure breaks.

Bullish Order Block :

snapshot

Bearish Order Block :

snapshot

Each order block is drawn as a zone, with an internal split between “bullish” and “bearish” pressure, based on recent price/volume behavior inside that move.

Displays relative volume and simple volume percentages for the most recent blocks, giving an at a glance sense of which zones carried more activity.

snapshot

Fully configurable display depth so you can limit the chart to only the last few highest priority blocks.

🔸 Breaker Blocks & Mitigation Tracking

Tracks when previously identified order blocks fail and converts them into breaker blocks, visually marking a change in how price is interacting with that zone.

Bullish Breaker Block :

snapshot

Bearish Breaker Block :

snapshot

Separate handling of bullish and bearish breakers with clear color differentiation.

snapshot

Includes optional “mitigation” logic using either wick or close to determine when a block is considered broken or mitigated.

Breaker blocks are updated and removed dynamically as price trades through them, keeping the chart focused on current, active zones.

🔸 Fair Value Gaps (FVGs), Volume Imbalances & Opening Gaps

Detects imbalances in multiple modes: classic Fair Value Gaps (FVG), volume style imbalances (VI), and opening gaps (OG), with separate options for bullish and bearish sides.

Each imbalance is drawn as a zone, with a mid line reference to quickly locate the “mean” of the gap.

snapshot

Optional sentiment overlay inside the gap, visually splitting the zone into bullish and bearish “gauge” segments based on recent bar behavior on a chosen timeframe.

snapshot

Configurable mitigation method (wick or close) and maximum number of visible gaps, so the chart remains readable even on very active instruments.

For both order blocks and FVGs, internal sentiment boxes indicate how bullish or bearish the underlying move or gap has been, using proportional visual splits rather than raw numbers.

This gives an immediate visual cue as to whether a zone was driven more by upward or downward pressure.


🔸 Liquidity Sweeps, EQH/EQL and Volume Filter

Automatically detects areas where liquidity may be resting via swing based pivot highs and lows.

Sellside Liquidity Sweep :

snapshot

Buyside Liquidity Sweep :

snapshot

Highlights equal highs (EQH) and equal lows (EQL) when sweeps occur, marking where price probed above/below prior liquidity and then rejected.

snapshot

snapshot

Optional volume filter to ignore low volume swings and focus on more meaningful liquidity zones.

snapshot

Maintains compact arrays of recent liquidity points, clearing them as price decisively trades through or sweeps them.

🔸 Premium / Discount Zones & Equilibrium

Projects premium and discount bands based on a dynamically measured range, offering a simple view of where price is trading relative to that range.

Draws separate Premium and Discount boxes with optional price labels for quick orientation.

Optional mid line (equilibrium) to visualize the “50%” of the current range, often used as a reference for balanced versus extended price.

Zones auto update as the underlying range evolves, with logic to prevent stale levels from cluttering the chart.

snapshot

In addition script can also project previous session key levels such as open, high, low and equilibrium for a selected timeframe, with optional daily, weekly and monthly references. These levels are extended forward and automatically refreshed as new periods unfold, so you always have clear structural anchors from recent sessions without manually redrawing prior session lines.

🔸 Trend Line/Channel Framework

Detects swing based trendline pivots (uptrends and downtrends) with configurable sensitivity and choice of high/low or close as the source.

Draws trendline “channels” around the detected pivots, shading the area between upper and lower bounds to visualize directional bias zones.

Dynamically updates and deletes prior lines to keep the most recent structure visible, rather than leaving outdated lines on the chart.

Includes basic trendline break detection to highlight when price closes beyond a key diagonal boundary.

snapshot

🔸 Swing Failure Pattern (SFP) Detector

Scans a chosen timeframe for Swing Failure Patterns (SFPs) using a defined lookback window and minimum separation between events.

Differentiates bullish and bearish SFPs, drawing labels and horizontal reference lines at the swept high or low.

Includes a “lock” period option to pause new SFP detection for a set number of bars after an event, helping to avoid clustering multiple signals in the same area.

snapshot

🔸 HTF Candle Projection Panel

Projects higher timeframe candles to the right of current price as a compact visual panel, giving you context of higher timeframe structure without switching charts.

Supports both classic candles and Heikin Ashi style, with configurable size, spacing and number of projected candles.

Optionally uses higher timeframe OHLC or blends current timeframe behavior into the projection, depending on how strictly you want to reference HTF data.

Can display projected HTF open/high/low lines and price labels, helping you see where current price is trading within or relative to the larger candle.

snapshot

🔸 Alert Framework

Built-in alerts for key structural events:

- Market structure changes (BoS, CHoCH) in both directions.

- New order blocks and breaker blocks forming, breaking or being approached.

- New FVGs forming and price moving into or near the latest imbalance zones.

- Liquidity sweeps (highs/lows), EQH/EQL touches and simple liquidity events.

- Price entering premium or discount bands.

- Trendline detection and basic trendline break events.

- Swing Failure Patterns and movements toward previous key levels.

Designed so that you can selectively enable only the conditions you care about and convert them into alerts that match your personal workflow.

Smart Money Concepts is built to function as a unified “map” of structure, liquidity and imbalance on the chart. Each module can be toggled and tuned, allowing you to build anything from a minimal structure only overlay to a fully featured institutional style view of how price interacts with key zones over time.

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.