Smart Money Concepts (SMC) & Market Structure Suite
100% Free Indicator
Platform both
Repainting Zero (Confirmed)
Timeframes M1 to Daily
Instruments Forex, Crypto, Gold
TradingView Pine Script (v5) MetaTrader 5 (.ex5/.mq5)

Smart Money Concepts (SMC) & Market Structure Suite

Institutional SMC indicator that automatically plots Break of Structure (BOS), Change of Character (CHoCH), Internal Swings, and Order Flow Zones in real-time.

Access Price
100% FREE No Subscription
★ 4.9 (Verified)
Direct access — zero checkout friction or card required
Includes complete Pine Script v5 open source & setup guide

TradingView Pine Script (v5) Source Code

Copy and paste this code directly into your TradingView Pine Editor

//@version=5
indicator("FxSnip - Smart Money Concepts (SMC) Suite [v5]", "FxSnip SMC Suite", overlay=true, max_boxes_count=500, max_lines_count=500)

// Inputs
swingLength = input.int(5, "Swing Length (Left/Right Bars)", minval=1)
showBOS     = input.bool(true, "Show Break of Structure (BOS)")
showCHoCH   = input.bool(true, "Show Change of Character (CHoCH)")
bullColor   = input.color(color.green, "Bullish Color")
bearColor   = input.color(color.red, "Bearish Color")

// Swing Highs & Lows
var float upperSwing = na
var float lowerSwing = na
var int lastTrend = 0 // 1: Bullish, -1: Bearish

pH = ta.pivothigh(high, swingLength, swingLength)
pL = ta.pivotlow(low, swingLength, swingLength)

if not na(pH)
    upperSwing := pH

if not na(pL)
    lowerSwing := pL

// Detect Structure Breaks
if not na(upperSwing) and ta.crossover(close, upperSwing)
    if lastTrend == -1 and showCHoCH
        line.new(bar_index - swingLength, upperSwing, bar_index, upperSwing, color=bullColor, width=2, style=line.style_dashed)
        label.new(bar_index, upperSwing, "CHoCH", color=bullColor, textcolor=color.white, style=label.style_label_down, size=size.small)
        lastTrend := 1
    else if showBOS
        line.new(bar_index - swingLength, upperSwing, bar_index, upperSwing, color=bullColor, width=1)
        label.new(bar_index, upperSwing, "BOS", color=bullColor, textcolor=color.white, style=label.style_label_down, size=size.tiny)
        lastTrend := 1
    upperSwing := na

if not na(lowerSwing) and ta.crossunder(close, lowerSwing)
    if lastTrend == 1 and showCHoCH
        line.new(bar_index - swingLength, lowerSwing, bar_index, lowerSwing, color=bearColor, width=2, style=line.style_dashed)
        label.new(bar_index, lowerSwing, "CHoCH", color=bearColor, textcolor=color.white, style=label.style_label_up, size=size.small)
        lastTrend := -1
    else if showBOS
        line.new(bar_index - swingLength, lowerSwing, bar_index, lowerSwing, color=bearColor, width=1)
        label.new(bar_index, lowerSwing, "BOS", color=bearColor, textcolor=color.white, style=label.style_label_up, size=size.tiny)
        lastTrend := -1
    lowerSwing := na

// Alert conditions
alertcondition(ta.crossover(close, upperSwing), "Bullish Structure Break", "Bullish BOS/CHoCH Detected")
alertcondition(ta.crossunder(close, lowerSwing), "Bearish Structure Break", "Bearish BOS/CHoCH Detected")
1

How to Add to TradingView

  1. Click the "Copy Pine Script (v5)" button above.
  2. Open your chart on TradingView.com.
  3. Click the Pine Editor tab at the very bottom bar.
  4. Select and delete any default code, paste this script, and click "Save" → "Add to Chart".
2

How to Install in MetaTrader 5 (MT5)

  1. Click "Download MT5 Indicator" to save the .ex5 / .mq5 file.
  2. In MT5, click top menu File > Open Data Folder.
  3. Navigate to MQL5 > Indicators folder and paste the file.
  4. In MT5 Navigator window, right-click Indicators > Refresh, then drag it onto your chart.

Key Features & Algorithmic Logic

  • Real-time BOS & CHoCH auto-mapping
  • Internal vs Swing Structure visualization
  • Multi-timeframe liquidity sweep tracking
  • Institutional supply/demand zone detection
  • Zero repainting on confirmed bar close
  • Customizable colors, fonts, and alert triggers

Indicator Overview

The Smart Money Concepts (SMC) Suite gives retail traders access to institutional order flow mapping. It automatically identifies structural highs/lows, marks confirmed Break of Structure (BOS) levels, and highlights Change of Character (CHoCH) shifts without lag.

Key Capabilities

  • Automatic BOS & CHoCH Detection: Identifies confirmed trend continuation and reversal points across all timeframes.
  • Internal vs Swing Structure: Differentiates between minor pullback liquidity and major macro trend boundaries.
  • Strong Highs & Weak Lows: Visualizes where protected institutional stop levels reside to avoid trap entries.
  • 100% Non-Repainting: Visual lines and labels lock permanently on the close of each candle.

Recommended Settings

Best Timeframes: M5, M15, H1, H4
Pairs / Assets: EURUSD, GBPUSD, XAUUSD, BTC
Confirmation Rule: On Bar Close
Alerts: Push, Sound, Webhook

Need Custom Modifications?

Need this indicator converted into an automated MT5 Expert Advisor or customized for your specific trading rules?

Order Custom Coding →
TX

Loading activity...

Just now