PROTECTED SOURCE SCRIPT
stelaraX - Market Structure

stelaraX – Market Structure
stelaraX – Market Structure is a price-structure indicator designed to classify swing highs and swing lows into Higher High (HH), Lower High (LH), Higher Low (HL), and Lower Low (LL). By using pivot logic to map structure points, it provides a clean framework to read trend direction, structure shifts, and context for Smart Money and price action trading.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com
Core logic
The script detects pivot highs and pivot lows using a configurable lookback length and compares each new pivot to the previously stored pivot levels. Based on these comparisons, it classifies structure and derives a simple trend state.
Key principles:
* pivot highs and lows are confirmed using a left/right lookback window
* each new pivot high is classified as HH or LH versus the prior pivot high
* each new pivot low is classified as HL or LL versus the prior pivot low
* a trend state is inferred from the progression of pivot points
* trend background reflects bullish structure (higher lows / higher highs) or bearish structure (lower highs / lower lows)
This approach does not predict direction; it labels confirmed structure points to keep the chart objective and consistent.
Visualization
The script plots:
* HH and LH labels above price at confirmed pivot highs
* HL and LL labels below price at confirmed pivot lows
* separate bullish and bearish colors for structure classification
* a subtle background highlight indicating the current inferred trend state
Labels are offset by the pivot length to reflect the confirmation delay inherent to pivot-based structure.
Use case
This indicator is intended for:
* mapping swing structure for discretionary analysis
* identifying trend direction via HH/HL versus LH/LL sequencing
* spotting potential structure shifts and early reversals
* supporting Smart Money Concepts and price action workflows
* improving trade context for breakouts, pullbacks, and liquidity-based setups
It is most effective when combined with key levels, session context, and momentum filters or AI-assisted chart evaluation.
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX – Market Structure is a price-structure indicator designed to classify swing highs and swing lows into Higher High (HH), Lower High (LH), Higher Low (HL), and Lower Low (LL). By using pivot logic to map structure points, it provides a clean framework to read trend direction, structure shifts, and context for Smart Money and price action trading.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com
Core logic
The script detects pivot highs and pivot lows using a configurable lookback length and compares each new pivot to the previously stored pivot levels. Based on these comparisons, it classifies structure and derives a simple trend state.
Key principles:
* pivot highs and lows are confirmed using a left/right lookback window
* each new pivot high is classified as HH or LH versus the prior pivot high
* each new pivot low is classified as HL or LL versus the prior pivot low
* a trend state is inferred from the progression of pivot points
* trend background reflects bullish structure (higher lows / higher highs) or bearish structure (lower highs / lower lows)
This approach does not predict direction; it labels confirmed structure points to keep the chart objective and consistent.
Visualization
The script plots:
* HH and LH labels above price at confirmed pivot highs
* HL and LL labels below price at confirmed pivot lows
* separate bullish and bearish colors for structure classification
* a subtle background highlight indicating the current inferred trend state
Labels are offset by the pivot length to reflect the confirmation delay inherent to pivot-based structure.
Use case
This indicator is intended for:
* mapping swing structure for discretionary analysis
* identifying trend direction via HH/HL versus LH/LL sequencing
* spotting potential structure shifts and early reversals
* supporting Smart Money Concepts and price action workflows
* improving trade context for breakouts, pullbacks, and liquidity-based setups
It is most effective when combined with key levels, session context, and momentum filters or AI-assisted chart evaluation.
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.