OPEN-SOURCE SCRIPT
SMT Lite - Market Structure Data

SMT Lite is a single-symbol market-structure indicator that identifies confirmed swing structure, supply and demand zones, and breaks of structure on the current chart and timeframe.
It is not a cross-symbol SMT divergence indicator.
Features
Calculations
Swing highs and lows require the selected Swing High/Low Length on both sides of a pivot. Labels appear on the original pivot bar only after the required future bars confirm it.
Zone thickness is calculated using the 50-period ATR:
50 ATR × (Box Width ÷ 10)
Supply zones extend downward from confirmed swing highs. Demand zones extend upward from confirmed swing lows. Nearby overlapping zones are filtered to reduce clutter.
A bullish BOS occurs when price closes at or above an active supply-zone ceiling. A bearish BOS occurs when price closes at or below an active demand-zone floor.
Status-Line Data
The indicator exposes:
These values are hidden from the chart scale and available through the indicator status line.
Alerts
Alerts are generated for confirmed HH, LH, HL, and LL events using JSON containing the ticker, structure type, pivot price, and detection time.
Create an alert using “Any alert() function call.”
Important
This indicator does not measure actual order flow or resting liquidity. Zones are derived from confirmed pivots and ATR.
Pivot signals are delayed by design. The active zigzag segment and developing-bar signals may change before the bar closes.
This is an analytical indicator, not a trading strategy or standalone entry signal.
It is not a cross-symbol SMT divergence indicator.
Features
- HH, LH, HL, and LL swing labels
- ATR-scaled supply and demand zones
- Point-of-interest midpoint for each zone
- Bullish and bearish break-of-structure markers
- Optional zigzag
- JSON alerts for newly confirmed swing classifications
- Status-line data for pivots, volatility, structure, and active zones
Calculations
Swing highs and lows require the selected Swing High/Low Length on both sides of a pivot. Labels appear on the original pivot bar only after the required future bars confirm it.
Zone thickness is calculated using the 50-period ATR:
50 ATR × (Box Width ÷ 10)
Supply zones extend downward from confirmed swing highs. Demand zones extend upward from confirmed swing lows. Nearby overlapping zones are filtered to reduce clutter.
A bullish BOS occurs when price closes at or above an active supply-zone ceiling. A bearish BOS occurs when price closes at or below an active demand-zone floor.
Status-Line Data
The indicator exposes:
- Bullish or bearish structural state
- Last confirmed pivot high and low
- 50-period ATR
- Closest active supply and demand boundaries
- Zone midpoint and age in bars
- Current-bar BOS breach price
These values are hidden from the chart scale and available through the indicator status line.
Alerts
Alerts are generated for confirmed HH, LH, HL, and LL events using JSON containing the ticker, structure type, pivot price, and detection time.
Create an alert using “Any alert() function call.”
Important
This indicator does not measure actual order flow or resting liquidity. Zones are derived from confirmed pivots and ATR.
Pivot signals are delayed by design. The active zigzag segment and developing-bar signals may change before the bar closes.
This is an analytical indicator, not a trading strategy or standalone entry signal.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.