Gann HiLo Indicator - TradeStation | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation

Gann HiLo Indicator
Started:May 21st, 2011 (10:45 AM) by cbritton Views / Replies:4,599 / 2
Last Reply:July 30th, 2012 (11:26 AM) Attachments:2

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Gann HiLo Indicator

Old May 21st, 2011, 10:45 AM   #1 (permalink)
Elite Member
Atlanta, Georgia
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
cbritton's Avatar
Posts: 224 since Mar 2010
Thanks: 152 given, 236 received

Gann HiLo Indicator

I have been considering using the Gann HiLo indicator as a trailing stop and since I'm an active TS user, I decided to convert my ToS version to EL. Here's the indicator:

inputs: length(12),
vars: swing (0);

switch (AverageType) begin
case 1: // SMA
    value1 = Average(high, length);
    value2 = Average(low, length);
case 2: // EMA
    value1 = XAverage(high,length);
    value2 = XAverage(low,length);
case 3: // DEMA
    value1 = _DEMA(high,length);
    value2 = _DEMA(low,length);
//case 4: // HULL
    //value1 = _HMA(high,length);
    //value2 = _HMA(low,length);
case 5: // WMA
    value1 = WAverage(high, length);
    value2 = WAverage(low, length);
default: // default to EMA
    value1 = XAverage(high,length);
    value2 = XAverage(low,length);

if CurrentBar > length then begin

    if close < value2[1] and close[1] >= value2[2] then 
        swing = -1
    else if close > value1[1] and close[1] <= value1[2] then 
        swing = 1 
    else swing = swing[1];

if swing = -1 then value3 = value1 else if swing = 1 then value3 = value2 else if swing[1] = -1 then value3 = value1 else if swing[1] = 1 then value3 = value2;

Plot1( value1, "Rising" );
Plot2( value1, "Falling" );

value4 = iff(swing=-1, GetPlotColor(1), GetPlotColor(2));

Plot3( value3, "EMA", value4);

The second input value, averageType, is a numerical value corresponding to the type of moving average to suite your needs. 1 = SMA, 2 = EMA, 3 = DEMA, 4 = Hull, and 5 = weighted MA. The default value, if the averageType value is not in this range is EMA.

I commented out the hull moving average function reference because my version has a copyright mark. I think I got it off the TS support site if you want/need it. I'm sure it's available on google. The DEMA is not, so here's that function if you don't have it:


    float emaPrice(0),
    float emaEmaPrice(0);                    

emaPrice = _xAverage(price, length);
emaEmaPrice = _xAverage(emaPrice, length);

_DEMA = 2 * emaPrice - emaEmaPrice;

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Thumbnails
Gann HiLo Indicator-gann_hilo_slv.png  
Reply With Quote
The following 3 users say Thank You to cbritton for this post:

Old July 30th, 2012, 10:51 AM   #2 (permalink)
Trading Apprentice
Futures Experience: Advanced
Platform: ninjatrader
Favorite Futures: es
Posts: 1 since Jun 2012
Thanks: 0 given, 0 received

need Schaff for ToS

Hi there,

would you mind to share the Schaff cycle indicator for ToS? thanks in advance.

Reply With Quote

Old July 30th, 2012, 11:26 AM   #3 (permalink)
Elite Member
Berlin, Europe
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
Fat Tails's Avatar
Posts: 9,525 since Mar 2010
Thanks: 4,213 given, 24,787 received

Who needs a Gann HiLo Activator?

I would just like to make a small comment here on the Gann Hi-Lo Activator:

The Gann Hi-Low Activator has two stop lines which are calculated from a moving average of the Highs and a moving average from the Lows of the last N bars.

Now what you also could do is to calculate

- the same moving average from the last N bars from the center = (high + low)/2
- calculate the same moving averate of the range of the last N bars

and then take the values

- high stop = average of center + 0.5 * average range
- low stop = average of center - 0.5 * average range

This is nothing else than a Supertrend that

- uses the same average of period N as the Gann-HiLo-Activator,
- then applies that average to the last ranges of the last N bars
- and adds and subtracts half an average range

The SuperTrend has the advantage that you can modulate the factor 0.5, which is fixed for the Gann-HiLo-Activator. Usually you will set your stop line farther away from pirce action to avoid to get stopped out quite often.

Nobody who has a SuperTrend needs a Gann-HiLo-Activator. Scrap it!

Chart attached below.

Please register on to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Last edited by Fat Tails; July 30th, 2012 at 11:32 AM.
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > Gann HiLo Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gann Box in NinjaTrader msedlak40 NinjaTrader 5 December 5th, 2014 07:56 PM
Gann HILo Activator Question ksouza NinjaTrader 14 July 12th, 2012 06:06 PM
"HiLo of time range" indicator - for Ninja 6.5 ? Eric j NinjaTrader 9 October 5th, 2010 07:14 AM
HiLo indicator for NT7? cbtrade Traders Hideout 2 June 5th, 2010 12:00 PM
GANN vs SEAN? WHO WINS??? tr3nt Traders Hideout 4 August 17th, 2009 02:23 PM

All times are GMT -4. The time now is 12:20 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-22 in 0.08 seconds with 20 queries on phoenix via your IP