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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.