HULL MA + SIGNALS

HULL MA + SIGNALS

1. Introduction

The Hull MA + Stochastic Signals indicator is a hybrid tool that merges trend-following and momentum analysis into a single, streamlined indicator. By combining a configurable Hull Moving Average (HMA) with a Stochastic Oscillator, this indicator provides timely buy and sell signals that are both responsive and reliable. It is ideal for traders who want to identify trade opportunities in the direction of the prevailing trend while avoiding premature entries.


2. Concept Behind the Indicator

At the core of this indicator lies a smoothed price trend line based on one of three variations of the Hull Moving Average:

  • HMA (Hull Moving Average): Uses weighted moving averages to reduce lag and improve trend clarity.

  • THMA (Triple Hull Moving Average): Combines three weighted moving averages for more aggressive smoothing and responsiveness.

  • EHMA (Exponential Hull Moving Average): Integrates exponential moving averages, offering a slightly different sensitivity to price changes.

The user can switch between these modes via the modeSwitch parameter.

Complementing the trend logic is the Stochastic Oscillator, which identifies momentum shifts and potential reversals. When these two components align — a strong trend confirmed by the Hull average and a bullish or bearish crossover in the stochastic oscillator — the indicator issues a trading signal.


3. Signal Logic

The indicator identifies buy and sell signals based on multiple confirmations:

Buy Signal Conditions:

  • A bullish crossover of the stochastic (%K crosses above %D)

  • The crossover occurs below the oversold level (default: 30)

  • The Hull MA is trending upward

  • Price is above both recent Hull values

  • The current closing price is higher than the previous one

Sell Signal Conditions:

  • A bearish crossover of the stochastic (%K crosses below %D)

  • The crossover occurs above the overbought level (default: 70)

  • The Hull MA is trending downward

  • Price is below both recent Hull values

  • The current closing price is lower than the previous one

Signals are shown directly on the chart with arrows and labeled text (“BUY” or “SELL”).


4. Customizable Parameters

The indicator provides several parameters for user customization:

  • modeSwitch: Selects the Hull variation (1 = HMA, 2 = THMA, 3 = EHMA)

  • length: Main length for the Hull MA calculation (default: 200)

  • lengthMult: Multiplier applied to the base length (default: 1.5)

  • stochLength: Lookback period for stochastic calculation (default: 14)

  • smoothK: Smoothing of %K line (default: 3)

  • smoothD: Smoothing of %D line (default: 3)

  • oversoldLevel: Threshold for oversold conditions (default: 30)

  • overboughtLevel: Threshold for overbought conditions (default: 70)

Adjusting these values allows the trader to fine-tune the indicator to match different asset classes or market conditions.


5. Visual Aids and Plotting

Two Hull MA lines are plotted on the chart:

  • MHULL (Main Hull): Current value of the selected Hull average

  • SHULL (Secondary Hull): Two bars ago Hull value for trend comparison

Their color dynamically changes:

  • Green: Indicates upward trend (MHULL > SHULL)

  • Red: Indicates downward trend (MHULL < SHULL)

Additional visual elements:

  • Green or red arrows and labels mark buy/sell signals

  • Colored points appear when the Hull trend shifts up or down

This combination allows for intuitive and immediate signal interpretation directly on the price chart.


6. Best Use Case Scenarios

This indicator is suitable for:

  • Trend-following strategies: Especially effective when the market is trending

  • Momentum confirmation: Avoids counter-trend signals by requiring alignment with stochastic crossovers

  • Multi-timeframe analysis: Can be adjusted to function on any timeframe from intraday to weekly charts

To minimize false signals, it is recommended to use this indicator in markets or instruments known for clean, directional movement and to combine it with higher timeframe confirmation.


7. Conclusion

The Hull MA + Stochastic Signals indicator delivers a practical and powerful trading solution by uniting trend analysis and momentum confirmation. With its flexible configuration and clear visual output, it offers a robust tool for traders seeking precision entries in trending environments. Whether you prefer smoother exponential readings or sharper trend shifts, the selectable Hull MA variants adapt to your trading style and asset class.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
ipbvba Hello, Is it possible to have a screener for the various buy and sell signals?
Regisnew très bel indicateur merci
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
Iván Hola. Sí se puede, tendrás que hacerlo programando. Así, eliminando toda la parte de código ...
Cyril18 Thank you Ivan, great job Would it be possible to add in the sript the possibility of conne...
Jrmjrm Bonjour, pourriez vous m'aider pour la commande suivante (je n'arrive pas à call l'indicateu...
Iván Hola javier gracias! es importante realizar buenos backtest antes de lanzarse al mercado y ...
achel I have an error with "fillcolor" - How to solve this? / J'ai une erreur avec "fillcolor" - C...
Iván Hi! This is because you are not with V12. Just delete fillcolor
Patriot1972 Ciao Ivan, avevo bisogno di chiarimenti sul funzionamento del tuo indicatore: cosa segnala q...
teshmi9z Hola, ¿es posible detectar cuándo el precio regresa a la zona del 61 al 88 % de Fibonacci y,...
NicoGB67 Hola Iván, estoy usando desde hace poco este indicador y a veces cuando estoy esperando un n...
Iván Hola. El comportamiento es normal porque el último fibo es provisional por lo tanto se puede...
elcortijoverde Gracias Iván,...sigo tus videos en Youtube. Ya estoy con la V12 y se descarga, pero algo est...
elcortijoverde Bueno, ya aparecen las velas, pero ahora, cada fin de vela aparece un nuevo pronóstico y no ...
Roger Gracias por compartir, pero no tengo ninguna predicción. @Ivan @elcortijoverde ¿qué modifica...
luxrun grazie Ivàn!
lee Thank you. Is it possible to convert this to a screener that displays instruments when bulli...
Iván //---------------------------------------------------------------// //PRC_Pollan Indicator /...
Faisalx ChatGPT Hola Iván. Gracias por tu excelente trabajo. Te agradecería si pudieras echarle un...
Iván ok, perfecto! me pongo con ello
sam00075 Tried it the last two days, accuracy is impressive.
DeathMetal C'est un modèle assez rare, essayez-le sur un petit laps de temps, par exemple 5 minutes et ...
BEBERD serait-il possible d avoir le code pour en daily et weekly ? merci bien
DeathMetal Use the same code, it's universal
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
Faisalx Hola Ivan. Thanks for your great job. I would appreciate if you have look at my request http...
roccafragius Thank you for all these useful information!! Very great job Ivan! THank you so much
geroniman Merci Ivan, super travail. On peut toujours compter sur toi pour apporter des innovations su...
okeus Ciao, il tuo lavoro è incredibile, ti chiedo una cortesia è possibile veder un grafico con ...

Top