All indicators

Smart Market Structure Pro

Jun 2, 2026

Static chart image
Price Action BasedPivot Based (Retrospective)

The Smart Market Structure Pro indicator automatically identifies and labels significant swing points to provide a comprehensive visualization of market trends and structural shifts. It is a valuable tool for traders seeking to objectively define bullish or bearish environments across various asset classes and timeframes.

Usage

The Usage section describes how the script can be used to interpret price action through automated labeling. The indicator classifies market structure into four primary categories:

  • Higher High (HH): Formed when a new pivot high is higher than the previous pivot high, indicating bullish momentum.
  • Higher Low (HL): Formed when a new pivot low is higher than the previous pivot low, suggesting a potential continuation of an uptrend.
  • Lower High (LH): Formed when a new pivot high is lower than the previous pivot high, signaling weakening momentum or a potential downtrend.
  • Lower Low (LL): Formed when a new pivot low is lower than the previous pivot low, confirming bearish market structure.

Traders can use these labels to identify trend direction; a sequence of HHs and HLs typically represents an uptrend, while LHs and LLs represent a downtrend. Market structure breaks, where price fails to maintain a sequence (e.g., a LL following a series of HLs), can serve as early signals for potential trend reversals.

Details

The Smart Market Structure Pro utilizes pivot-based analysis to determine significant swing points. It calculates peaks and troughs based on a user-defined number of bars to the left and right of a specific price point. This method ensures that a pivot is only confirmed after price has moved sufficiently away from the peak or trough, providing a filtered view of price action that ignores minor fluctuations.

The script also includes structural lines that connect consecutive highs and lows. These lines are color-coded based on the relationship between the current and previous pivot: bullish connections are highlighted in green, while bearish connections are highlighted in red. This visual aid assists in identifying the steepness and consistency of a trend.

Settings

  • Left Bars: Determines the number of bars required to the left of a high or low for it to be considered a pivot. Increasing this value filters out minor price fluctuations.
  • Right Bars: Determines the number of bars required to the right of a high or low to confirm it as a pivot. Note that higher values increase the lag of the labels but improve the reliability of the structure.
  • Show HH HL LH LL: Toggles the visibility of the market structure text labels on the chart.
  • Show Structure Lines: Toggles the visibility of the lines connecting consecutive pivot highs and consecutive pivot lows.

FAQ

How can I adjust the sensitivity of the market structure detection? You can adjust the "Left Bars" and "Right Bars" settings. Lower values (e.g., 3) provide more aggressive, frequent detections, while higher values (e.g., 8) provide a more conservative view of the major trend.

Can this indicator be used for intraday trading? Yes, the indicator is compatible with all timeframes, including 1-minute charts, and functions across various markets such as Forex, Stocks, and Cryptocurrencies.

How do I get access to Smart Market Structure Pro? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.