Gann HiLo activator

Category: Indicators By: Nicolas Created: December 31, 2016, 5:57 PM
December 31, 2016, 5:57 PM
Indicators
3 Comments

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"

 

Download
Filename: PRC_Gann-HighLow-Activator.itf
Downloads: 529
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...