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 open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.