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.
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"
You must be logged in to post a comment.
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"
perfetto non lo sapevo ....
ciao grazie..