PROTECTED SOURCE SCRIPT
Updated

Market Structure Lines

1 070
The "Market Structure Lines" indicator automatically detects and visualizes market structure shifts by identifying pivot highs and lows (swing points). It classifies them into Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), and Lower Lows (LL) based on the price progression.

Each structure point is marked with a short horizontal dashed line:
- Green for Higher Highs
- Red for Lower Highs
- Blue for Higher Lows
- Orange for Lower Lows

This helps traders quickly assess whether the market is in an uptrend, downtrend, or transitioning.

Parameters include:
- Left/Right bars for pivot sensitivity
- Line length control
- Optional pivot markers

Designed for price action traders, structure-based analysts, and anyone looking to track real-time trend changes visually.
Release Notes
Enjoy!

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.