OPEN-SOURCE SCRIPT
Smart Market Structure Pro

Description:
This indicator automatically detects and marks significant swing highs and swing lows using pivot-based market structure analysis.
Features:
Identifies Swing Highs and Swing Lows.
Labels market structure as:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Draws structure lines connecting consecutive highs and lows.
Helps traders visualize trend direction and market structure.
Suitable for Forex, Gold, Indices, Stocks, and Cryptocurrencies.
Works on all timeframes, including 1-minute charts.
How to Use:
A sequence of HH and HL indicates an uptrend.
A sequence of LH and LL indicates a downtrend.
Use market structure breaks as potential trend reversal signals.
Combine with support/resistance, moving averages, or supply and demand zones for better trade confirmation.
Recommended Settings:
Aggressive: Left Bars = 3, Right Bars = 3
Balanced: Left Bars = 5, Right Bars = 5
Conservative: Left Bars = 8, Right Bars = 8
Disclaimer:
This indicator is for educational and analytical purposes only and should not be considered financial advice. Always use proper risk management when trading.
This indicator automatically detects and marks significant swing highs and swing lows using pivot-based market structure analysis.
Features:
Identifies Swing Highs and Swing Lows.
Labels market structure as:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Draws structure lines connecting consecutive highs and lows.
Helps traders visualize trend direction and market structure.
Suitable for Forex, Gold, Indices, Stocks, and Cryptocurrencies.
Works on all timeframes, including 1-minute charts.
How to Use:
A sequence of HH and HL indicates an uptrend.
A sequence of LH and LL indicates a downtrend.
Use market structure breaks as potential trend reversal signals.
Combine with support/resistance, moving averages, or supply and demand zones for better trade confirmation.
Recommended Settings:
Aggressive: Left Bars = 3, Right Bars = 3
Balanced: Left Bars = 5, Right Bars = 5
Conservative: Left Bars = 8, Right Bars = 8
Disclaimer:
This indicator is for educational and analytical purposes only and should not be considered financial advice. Always use proper risk management when trading.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.