HorizonAI
IndicatorProNew

SMC Market Structure Pro

The complete SMC toolkit for serious traders. Maps both internal and swing market structure with custom pivot detection. Includes order block integration, fair value gap highlighting, and premium/discount zone marking. Built for traders who want institutional-level analysis.

Full Source Code
Alert Templates
Build on with HorizonAI

What's Included

Internal & swing structure mapping
Custom pivot sensitivity controls
Premium/discount zone highlighting
Break of structure with directional bias
Multi-timeframe structure overlay
Alert templates included

How SMC Market Structure Pro works

Smart Money Concepts structure looks at price through the lens of how large institutional participants are thought to move the market. Rather than treating all swings equally, it separates internal structure (the smaller pullback highs and lows inside a leg) from swing structure (the major highs and lows that define the dominant trend). Keeping those two layers distinct helps you avoid confusing a minor internal break with a genuine trend shift.

The framework also divides a trading range into premium and discount zones using the midpoint (equilibrium) of the current swing. The idea is to sell in premium and buy in discount, so you are entering where price is relatively expensive or cheap within its own range rather than chasing. Structure points then become reference levels for where order blocks and fair value gaps are likely to matter.

Used together, internal versus swing structure and premium versus discount give you a repeatable way to read intent: is the market accumulating, driving, or distributing, and are you positioned on the favorable side of the range. The tool automates the swing mapping and zone shading so the read is consistent from chart to chart.

When to use it

  • Building a top-down SMC bias where higher-timeframe swing structure sets direction and internal structure times entries
  • Deciding whether to look for longs or shorts based on price sitting in discount or premium
  • Locating where order blocks or fair value gaps are most relevant, since they carry more weight when aligned with structure
  • Filtering out minor internal breaks that would otherwise look like full trend reversals

When it's not the right tool

  • In strong one-way trends that barely pull back, where premium/discount zones offer few clean entries
  • As a mechanical buy/sell system; SMC is a framework for reading context, not a guaranteed signal generator
  • On thin or erratic instruments where swings are too irregular for internal and swing structure to stay meaningful

Source Code Preview

Get the full PineScript v6 source code—use it as a foundation and build on top of it with HorizonAI.

smc-market-structure.pine
1//@version=6
2indicator("SMC Market Structure Pro", overlay=true)
3// ─────────────────────────────────────
4// SMC Market Structure Pro - Full Source Code
5// ─────────────────────────────────────
6
7// Input Settings
8pivotLen = input.int(5, "Pivot Length")
9showLabels = input.bool(true, "Show Labels")
10
11// Core Logic
12pivotHigh = ta.pivothigh(high, pivotLen, pivotLen)
13pivotLow = ta.pivotlow(low, pivotLen, pivotLen)
14
15// Structure Detection
16var float lastHigh = na
17var float lastLow = na
18
19if not na(pivotHigh)
20 lastHigh := pivotHigh
21 // ... more logic
22
23// Break of Structure
24bosUp = close > lastHigh

200+ lines of source code

Unlock premium to access the full source code

Unlock Source Code

Frequently asked questions

What is the difference between internal and swing structure?

Swing structure is made of the major highs and lows that define the overall trend on your timeframe. Internal structure is the smaller sequence of highs and lows that forms inside each swing leg. Separating them lets you trade pullbacks (internal) without mistaking them for a change in the larger trend (swing).

What do premium and discount zones mean?

Take the current swing range and mark its midpoint, called equilibrium. Anything above the midpoint is premium (relatively expensive) and anything below is discount (relatively cheap). SMC traders prefer to buy in discount and sell in premium so their entries have a better position within the range.

How does this connect to order blocks and fair value gaps?

Structure tells you the direction and where you are in the range; order blocks and fair value gaps give you specific zones to act on. Those zones are considered stronger when they sit in the correct part of the range and agree with the swing bias, which is exactly what this tool helps you line up.

Is this suitable for beginners?

It can be, but SMC has a learning curve because it is a way of reading context rather than a single signal. Start by using it to set bias and identify discount or premium, then add order blocks and confirmation as you gain confidence. None of it is financial advice, and combining it with your own analysis is essential.

Get access to all 23+ scripts

Full source code, alert templates, and the perfect base to build on with HorizonAI. Join 10,000+ traders.