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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
@ToshiMeows everywhere else. LLVVB on TV becuase I used my 2 name changes.
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。