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
Related users ' posts
lee HI thank you for this indicator. Is it possible to create a screener based on this for when ...
ger h Hola Marc gracias por tus indicadores y la explicacion me puedes decir cual indicador de vol...
xpe74 Hello it seems the file format does not allow to import the file. At importation stage, an e...
Iván You always can copy/paste directly from the post
roccafragius Thank you so much, for my point of view very useful!!!
NicoGB67 Excelente trabajo!!
Jrmjrm Bonsoir est-il possible d'avoir cet indicateur, mais à la place du Wilder Average, utiliser ...
geroniman merci Ivan, super indicatuer. Les cours vont souvent toucher 50% des zones vertes ou rouges....
Iván Pour ajouter une ligne supplémentaire, il suffit de créer une nouvelle variable, par exemple...
Maurizio A. excellent indicateur ! comment puis-je modifier le code pour afficher uniquement les dernier...
Iván Hi! just change line13 for this: showsignals=1
Quino Hi Excellent indicator as usual. Just 2 questions: Why LenH and LenL = 15 as Len could be...
Iván Hi! good question. This is a code request traslation from other platform. I took same inputs...
roccafragius Thank you Ivan, very Useful! I would like translation of Trading View CCI_S Indicator, How ...
Iván hi, you can ask here: https://www.prorealcode.com/free-code-conversion/
NicoGB67 Hola Iván, en primer lugar agradecerte el trabajo que haces, y comentarte algo sobre este in...
okeus ok fatto avevi ragione, grazie
DLVx Hola Iván, unas de las limitaciones que identificas es la combinación del OBB con otros indi...
Ciccarelli Franco Scusa e cosa devo cambiare? Grazie
Sofitech Bonjour Ivan, comment pourrais tu modifier ce code pour qu'un histogramme indiquant la créat...
geroniman Merci Ivan, cet indicateur est excellent. Comme les cours s'arretent souvent sur les 50% d'u...
sanchota Mira que has hecho unos cuantos indicadores,pues este los supera a todos.Brillante.
Gaspare Grazie Ivan, ottimo indicatore posso chiedere, per favore, una strategia che apre posizio...
Iván thanks! maybe I could test it
foufurieux
7 months ago
ANTS indicator
ANTS indicator
3
Indicators
atlante good morning the indicatordoes not display the photo you postes only upload nessages appear ...
foufurieux Please find a new image of the indicator
foufurieux Sorry impossible adding a new image
jacquesgermain
7 months ago
NicoGB67 me sigue dando error en algunas líneas: 8, 44, 45, 46, 47 y 49, no sé si será por la traducc...
jacquesgermain voir le forum proscreener topic "screener momentum bias" je vous ai déposé le fichier momen...

Top