AlgoAlpha
TradingView IndicatorFree to Use

HEMA Trend Levels

Free TradingView Indicator by AlgoAlpha — Momentum & Oscillators

This script plots two Hull-EMA (HEMA) curves to define a color-coded dynamic trend zone and generate context-aware breakout levels, allowing traders to easily visualize prevailing momentum and identify high-probability breakout retests. The script blends smoothed price tracking with conditional box plotting, delivering both trend-following and mean-reversion signals within one system. It is designed to be simple to read visually while offering nuanced trend shifts and test confirmations.

118.2kviews
7.3kboosts
2025-03-25published

What is HEMA Trend Levels?

This script plots two Hull-EMA (HEMA) curves to define a color-coded dynamic trend zone and generate context-aware breakout levels, allowing traders to easily visualize prevailing momentum and identify high-probability breakout retests. The script blends smoothed price tracking with conditional box plotting, delivering both trend-following and mean-reversion signals within one system. It is designed to be simple to read visually while offering nuanced trend shifts and test confirmations.

█ CONCEPTS The Hull-EMA (HEMA) is a hybrid moving average combining the responsiveness of short EMAs with the smoothness of longer ones. It applies layered smoothing: first by subtracting a full EMA from a half-length EMA (doubling the short EMA's weight), and then by smoothing the result again with the square root of the original length. This process reduces lag while maintaining clarity in direction changes. In this script, two HEMAs—fast and slow—are used to define the trend structure and trigger events when they cross. These crossovers generate "trend shift boxes"—temporary support or resistance zones drawn immediately after trend transitions—to detect price retests in the new direction. When price cleanly retests these levels, the script marks them as confirmations with triangle symbols, helping traders isolate better continuation setups. Color-coded bars further enhance visual interpretation: bullish bars when price is above both HEMAs, bearish when below, and neutral (gray) when indecisive.

█ FEATURES Bullish and bearish bar coloring based on price and HEMA alignment.

HEMA Trend Levels Features

This script plots two Hull-EMA (HEMA) curves to define a color-coded dynamic trend zone and generate context-aware breakout levels, allowing traders to easily visualize prevailing momentum and identify high-probability breakout retests. The script blends smoothed price tracking with conditional box plotting, delivering both trend-following and mean-reversion signals within one system. It is designed to be simple to read visually while offering nuanced trend shifts and test confirmations.

█ CONCEPTS

█ FEATURES

Bullish and bearish bar coloring based on price and HEMA alignment.

Box plotting at each crossover (bullish or bearish) to create short-term decision zones.

Real-time test detection

price must cleanly test and bounce from box levels to be considered valid.

Multiple alert conditions

crossover alerts, test alerts, and trend continuation alerts.

Free on TradingView

Add this indicator to your chart.

HEMA Trend Levels is free to use on TradingView. Add it to any chart in seconds.