OPEN-SOURCE SCRIPT
Updated

DEMA HMA Z-score Oscillator

4 767
This custom oscillator combines the power of the Hull Moving Average (HMA) with the Z-Score to identify momentum shifts and potential trend reversals. The Z-Score measures how far the current HMA is from its historical mean, helping to spot overbought or oversold conditions.

Uptrend: Long signals are generated when the Z-Score crosses above the defined Long Threshold.

Downtrend: Short signals are triggered when the Z-Score drops below the Short Threshold.

Visuals: The Z-Score is plotted along with background color changes and fills to clearly indicate trend strength. Green fills highlight uptrends, while pink fills indicate downtrends.

Alerts: Alerts are available for both long and short conditions based on Z-Score crossovers.

Customizable Inputs:

HMA Length

Smoothing Length (for DEMA)

Z-Score Length

Long and Short Thresholds

This indicator is ideal for detecting momentum shifts, confirming trend strength, and helping to time entry/exit points in your trading strategy.
Release Notes
Updated

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.