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 open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.