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
Marc Boliart Hi! i do not know why _v.1.1"] was on 1st line, remember to remove it!
Iván
2 weeks ago
Iván Change line 23 for this IF BarIndex <= 2 THEN
roccafragius Thank you so much!!!!!! :):)
roccafragius Hi Ivan, unfortunatelly I still hace some problem using timeframe 3 minutes in 1 minutes, th...
Iván
3 weeks ago
Violet Ivan, it looks as if something is really wrong with this indicator. When I import and apply ...
Iván Hello! For proper visualization, it is recommended to have more than 1k bars loaded.
Violet Thanks Ivan. Though it does not remove the 'tapering at the beginning' phenomenon, it does m...
2 Fast Two things stand out to me: I see a lot of horizontal blocks in the chart instead of vertica...
lkiklkik thanks for the hard work and sharing
adeelq79 Great work Ivan. Thanks
Quino Another really interesting indicator. It works very well on periods below 25. Just a few cos...
MaoRai54 hello, it seems to be very good, but I'm doing intraday and I'm getting very different forec...
Iván Hi! I use this indicator in daily basis. In intraday timeframes, volume changes a lot depend...
sam00075 Accuracy is on point.
Mubin1308 Bonjour à tous, J'ai importé le fichier mais ça ne marche pas, rien qui s'affiche. Pourriez...
hdb1 Thank you so much Ivan..Been using this on 30min timeframe with excellent results. Now my ma...
Iván
3 months ago
Iván Sorry... There is a mistake in line 76. Should be if openday[i]openday[i+1] then
DLVx You do not specify how to read the Calmar ratio. Above 1 is OK and 0 is neutral? Can you she...

Top