OPEN-SOURCE SCRIPT

Stabilized HMA Scalper

5 728
Stabilized HMA Scalper / Stab. HMA 2.0


Stabilized HMA Scalper is a visual trend-structure overlay indicator designed to highlight directional momentum, trend alignment, and market state through a combination of adaptive moving averages and contextual visual cues.
The indicator blends a Hull Moving Average (HMA) for responsiveness with an ALMA-based baseline filter to stabilize trend interpretation and reduce noise. The result is a clean, visually expressive framework for reading market structure directly on the price chart.

Core Design Philosophy
This script is built around trend confirmation and state visualization, not prediction or automation.
All elements are calculated on confirmed bar closes and do not repaint.
The indicator focuses on three analytical dimensions:

1. Dual Moving Average Structure
Hull Moving Average (HMA)
Acts as the primary momentum curve.
Designed for fast reaction to directional changes.
Slope behavior is used to infer momentum expansion or contraction.
ALMA Baseline Filter
Provides a stabilizing reference for broader trend context.
Helps distinguish directional movement from short-term fluctuations.
Used as a structural filter rather than a trigger mechanism.

2. Trend State Visualization

When HMA slope and price position relative to the ALMA baseline align, the indicator visually highlights the active market state:
Bullish alignment: upward momentum with supportive structure
Bearish alignment: downward momentum with confirming structure
Neutral / range: mixed conditions or transitional phases
A dynamic gradient fill between HMA and ALMA visually reinforces this alignment, offering an immediate understanding of trend strength and continuity.

3. Visual Markers & Labels

Discrete chart markers may appear at moments when momentum structure transitions into a new aligned state.
These markers are contextual annotations, intended to draw attention to changes in trend conditions rather than to provide standalone decisions.

They are based solely on historical price data and are fully non-repainting.

Dashboard

An optional on-chart dashboard summarizes the current market state classification (Bullish / Bearish / Range) based on the internal trend logic.
Position and size are fully configurable.
Designed for at-a-glance situational awareness.
Reflects the same logic used in the chart visuals.

Usage Disclaimer

This indicator is provided for technical analysis and educational purposes only.
It does not generate financial advice or guarantee outcomes and should be used as part of a broader analytical workflow.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.