Gann HiLo activator

Gann HiLo activator
Developed by Robert Krausz, the Gann HiLo Activator is a trend-following technical indicator used to help determine the trend’s direction and to generate with-trend entry signals.

The Gann HiLo Activator is a simple moving average of the previous three periods’ highs or lows. Based on the moving averages logic, it is a trend-following indicator used to reflect the market’s direction of movement. Within the trading system we mentioned earlier, the Gann HiLo activator is responsible for generating entry signals, but also helps determine stop-loss levels.

  • Bullish Signal- When price is above the Gann Activator it shows that the trend is bullish and only Buy trades should be executed. In a bullish trend the Gann Activator uses the previous periods’ price lows for calculations.
  • Bearish Signal- When price is below the Gann Activator it shows that the trend is bearish and only Sell trades should be executed. In a bearish trend the Gann Activator uses the previous periods’ price highs for calculations.

Coded by request on forum.
//PRC_Gann HighLow Activator | indicator
//Nicolas @
//Sharing ProRealTime knowledge
//Converted from Metastock version

// --- parameters
// period = 3
// ---

avgH = average[period](high)[1]
avgL = average[period](low)[1]

if close>avgH then
 hilo = 1
elsif close<avgL then
 hilo = 0

if hilo then
 gannHiLo = avgL
 color = 1
 gannHiLo = avgH
 color = -1

return gannHiLo coloured by color as "gannHiLo activator"
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?

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

  1. maxxb • 55 days ago #


    vorrei sapere perchè nel suo grafico compare sul prezzo mentre a me compare a parte … 


  2. AleX • 54 days ago #

    Sul grafico principale accanto alla voce Prezzo (vedi in alto a sinistra proprio sotto l’area di lavoro) c’è una chiave inglese, se ci clicca sopra e poi preme “Aggiungi indicatore” l’indicatore prescelto verrà inserito all’interno del grafico. Cliccando invece sul menù contestuale indicatori gli stessi verranno inseriti al di sotto del grafico “Prezzo” 


  3. maxxb • 54 days ago #

    perfetto non lo sapevo …. 

    ciao grazie..   


Register or


avatar avatar avatar
Related users ' posts
Ernesto1 Good Job !!! Ciccio
ALE great! :-)
14 hours ago
diegofe_2000  Entro a operar una demo con este indicador,  les voy contando
diegofe_2000 vamos a probarlo
Nicolas Voici le lien pour la version avec Volumes négatifs si le dernier ZigZag était un "peak". h...
Nicolas Here is the link for the new version with cumulative Volumes as negative values when the las...
Draper Merci Nicolas pour cet indicateur et pour les précédents aussi!  Je n'arrive pas à comprendr...
gregus bonjour a tous quelqu un pourait il recodé en prt il sagit  du dynamique zone ma, je n arri...
Nicolas Merci de faire une requête spécifique sur le forum. 
leo1962 Ciao Nicolas, nel codice c'è un errore di sintassi, allego screenshot. Non sono pratico di ...
Nicolas Este indicador sólo funcionará para Prorealtime v10.3 y superior.
leo1962 gracias ;)
larouedegann blue = 50 green = 20 red = 10 than you
Elsborgtrading By adding the inside bar breakout failure candle, which is the next bar after the inside bar...
3 weeks ago
saulyte1 doesn't work on IG PRT 10.3 get the indicator window when imported but empty and no projecte...
Nicolas Please add the indicator on price. Use the wrench in the upper left corner of the price char...
saulyte1 thank you,  seems to be working now.
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
supertiti Buenas tardes Rafa con esa linea no me sale bien las flechas : DRAWARROWUP (barindex, AvHig...
supertiti asi me gusta ! DRAWARROWUP (barindex, AvHigh-(range+2) ) COLOURED (127,255,0)  
supertiti asi mejor con +1 DRAWARROWUP (barindex, AvHigh-(range+1) ) COLOURED (127,255,0)
Sofitech Ce code n'est valable que sur la V10.3 ? sur le 10.2 il y a une erreur de syntaxe dans le fi...
Nicolas Oui en effet, c'est un indicateur "10.3" à cause uniquement de la mise en forme des courbes ...
Nicolas You need to have enough bars loaded on your chart for the indicator to compute completely th...
verdi55 Working with separately calculated supertrend indicators in backtests is usually somewhat pr...
Nicolas Very interesting Verdi. Would be a great addition to the library, your own modified version ...