Gann HiLo Indicator - TradeStation | futures io social day trading
futures io futures trading

Gann HiLo Indicator
Updated: Views / Replies:6,044 / 2
Created: by cbritton Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Gann HiLo Indicator

  #1 (permalink)
Elite Member
Atlanta, Georgia
Trading Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
cbritton's Avatar
Posts: 224 since Mar 2010
Thanks: 152 given, 245 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:
  #2 (permalink)
Trading Apprentice
Trading 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
  #3 (permalink)
Elite Member
Berlin, Europe
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
Fat Tails's Avatar
Posts: 9,746 since Mar 2010
Thanks: 4,231 given, 26,078 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 12:32 PM.
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:


futures io > > > > Gann HiLo Indicator

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

Journal Challenge $1600 in Prizes & Free Journalytix for all participants!


Trading Resolutions for 2019 - Avoiding Mistakes w/GFF Brokers

Feb 19

3 Excellent Entries, and How To Automate Them w/Kevin Davey

Feb 21

The Driving Force Behind the Market w/Earn2Trade

Mar 5

TBA w/Stage5 & iSystems

Mar 12

TBA w/John Grady @ No BS Day Trading

Mar 19

Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26

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

average, code, el, es, futures, gann, hilo, indicator, indicators, moving average, schaff, supertrend, support, swing, think or swim, tos, tradestation, trailing stop, values, xaverage

All times are GMT -4. The time now is 10:25 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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 2019-02-15 in 0.18 seconds with 15 queries on phoenix