Modified Gann HiLo Activator


The gann hilo activator is a trend indicator developed by Robert Krausz published into W. D. Gann Treasure Discovered: Simple Trading Plans for Stocks & Commodities. This indicator crate a trailing stop aiming to show the direction of the trend.

This indicator is fairly easy to compute and dont require lot of skills to understand. First we calculate the simple moving average of both price high and price low, when the close price is higher than the moving average of the price high the indicator return the moving average of the price low, else the indicator return the moving average of the price high if the close price is lower than the moving average of the price low.

My indicator add a different calculation method in order to avoid whipsaw trades as well as adding significance to the moving average length. A Median method has been added to provide more robustness.

The Indicator

The indicator is a simple trailing stop aiming to show the direction of the trend. The indicator use a different source instead of the price high/low for its calculation. The first method is the "SMA" method which like the classic hilo indicator use a simple moving average for the calculation of the indicator.

Sma Method with length = 25

The "Median" use a moving median instead of a simple moving average , this provide more robustness.

Median Method with length = 25

The shape is less curved and the indicator can sometimes avoid whipsaw with high's length periods.

Mult Parameter

The mult parameter is a parameter set to be lower or equal to 1 and greater or equal to 0. High values allow the indicator to be far from the price thus avoiding whipsaw trades, lower ones lower the distance from the price. A mult parameter of 0.1 approximate the original hilo indicator.

In blue the indicator with mult = 0.1 and in radical red the original hilo activator .


The modifications allow more control over the indicator as well as adding more robustness while the original one is destined to fail when market price is more complex.

Thanks for reading :)

For any questions/suggestions feel free to pm me
Script de código aberto

No verdadeiro espírito TradingView, o autor deste script o publicou com código aberto, para que os traders possam compreendê-lo e verificá-lo. Um brinde ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para utilizá-lo em um gráfico.

Quer usar esse script no gráfico?

Become a Patreon and get access to exclusive technical indicators!

You can also check out some of the indicators I made for luxalgo :


Very good, thanks
100 moedas
That an awesome enhancement, great job Alexgrover; appreciated for your generosity and efforts =D
+3 Resposta
@ICEKI, I'm really happy to hear it :) Feel free to request something anytime you want.
+1 Resposta
ICEKI alexgrover
@alexgrover, Sure Alex; thank you =D
+2 Resposta
wroclai alexgrover
@alexgrover, Thanks for sharing all of your great ideas! I don't know if that was an open invitation, but if you ever had time, it would be awesome if you could look into a Dynamic Volume Profile indicator with Point of Control, Value Area High and Value Area Low. The TV library could use a great opensource version! You the best!
alexgrover wroclai
@wroclai, Thanks for your support, i will look into a dynamic volume profile, but if you have more informations about what you want to achieve then i suggest you to pm me, it will be more convenient this way.
wroclai alexgrover
@alexgrover, Great! I'll send you some information later this evening!
I'm using it as a baseline and i'm very hapy about it. Thanks!
+1 Resposta
Hi, great script...Bravo Alexgrover !
I would like to use this indicator in an alert in order to identify Entry/Exit it possible ? and how, wich settings...thx

you are french ?
J'ai vu votre texte à la fin de votre description ;-)...comme je le disais je souhaite savoir si c possible d'untiliser votre indicator pour créer des alerts afin de placer des ordres Entry/ ne sais pas avec quel parametre il faut jouer, je pensais que ct avec croisement valeur mais je dois mettre une valeur mais moi je souhaite des que croisement avec valeur alors m'indiquer la bonne direction du trend.
Merci pour voter aide :)
+1 Resposta
@Nico59, You can create alerts from the alert panel, represented by an alarm clock, its pretty intuitive.
+1 Resposta