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
//31.12.2016
//Nicolas @ www.prorealcode.com
//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
endif

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

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 • 14 days ago #

    salve, 

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

    grazie

  2. AleX • 13 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 • 13 days ago #

    perfetto non lo sapevo …. 

    ciao grazie..   

     

avatar
Register or

Likes

avatar avatar avatar
Related users ' posts
tatankayotanka
1 day ago
T3 Velocity mix
T3 Velocity mix
1
Indicators
Nicolas At least, here it is :) Thanks for your contribution to the prorealtime code library. Every ...
Nicolas Very interesting and clever. Well done. I'm looking further for your next contribution :)
Rohan Thanks Nicolas :-)
Nicolas
1 week ago
Haos Visual
Haos Visual
2
Indicators
Dimi.A Nic, you're a blessing mate thank you so much. This is great.
Matriciel Merci pour ton travail Nicolas ! Ca m'a l'air d'être un très bon indicateur de tendance.
Souk Diaby Thanks a lot, will check this indicator asap :) have a nice trading day
Rohan Pleasure Souk, please let me know if you have ideas to improve it. I am trying to incorporat...
bolsatrilera
2 weeks ago
Twiggs Money Flow
Twiggs Money Flow
5
Indicators
century any explanation about the different moving average type ? please
Nicolas https://www.prorealcode.com/documentation/average/ 0 = SMA 1 = EMA 2 = WMA 3 = Wilder 4 = Tr...
century thanks alot . it's all i need ;)
Nicolas
2 weeks ago
Jurik MACD
Jurik MACD
0
Indicators
Nicolas
3 weeks ago
Holt EMA
Holt EMA
0
Indicators
bolsatrilera
3 weeks ago
MACD MIRROR
MACD MIRROR
0
Indicators
Petrus
3 weeks ago
Nicolas
3 weeks ago
StepRSI
StepRSI
4
Indicators
rfsteve Nicolas what do you think of these modifications for 233 tick charts ?         cheers Steve....
Nicolas Thanks for this modification, I still do not have tested it, where did you get this idea to ...
rfsteve Trial and error from study of indicators call it coding mad science was trying to find an in...
bolsatrilera
3 weeks ago
Volume climate
Volume climate
0
Indicators
verdi55 Looks almost like a conventional moving average (just take lines instead of dots) . The buil...
Nicolas Just another indicator in the Library asked by a member of the community. You are right abou...
ML Thanks a lot Nicolas! I found it on the Internet and I was curious to evaluate it... Thanks ...
Nicolas
4 weeks ago
Signal to noise ratio
Signal to noise ratio
5
Indicators
Nicolas Mientras el código y los comentarios permanezcan intactos por supuesto. Un enlace a este pos...
verdi55 Thanks a lot, this is something I had been looking for for quite a while. Are there any othe...
Nicolas You can also use the choppiness index,  which is also an oscillator made to detect ranging m...
Nicolas Thanks a lot, a lot of people will find it useful! About customclose of the daily OHLC, you...
Nicolas Nope, because this one is made for version 10.3 and no variables is needed in RETURN instruc...
Ernesto1 Nicolas, thanks for the code. I can use it in a trading system, as a set-up for entry  and e...
supertiti Hola Nicolas, Can you make us the screener for the Sadukey V2 with the change of color ? t...
supertiti Voici un code de VIDYA construit par Sohocool : // MOYENNE EXPONENTIELLE ADAPTIVE VIDYA by ...
Matriciel Merci Supertiti. Je trouve que ce code est difficile à règler et n'est pas d'une grande pré...
Ernesto1 J'ai essayé avec deux différents I ,  a =  3 périodes et un 3 x 5 = 15 périodes.Ie comme si ...
SoloContado Hello Nicolas,   thanks a lot for your many contributions in this post. I have a prob...
Nicolas Because of no data available at the start of calculations. Add this at line 15 : if barindex...
Nicolas
1 month ago
supertiti bonjour à tous J'utilise cet indicateur depuis plusieurs mois, une fois règlé "K" à sa conv...

Top