## [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gann)

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Apprentice wrote:Your request is added to the development list.

Thanks
dandee

Posts: 34
Joined: Thu Nov 05, 2015 8:54 am

### Re: Automatic Levels Indicator (Fibonacci, Gann)

Is there a way toturn this into a strategy where it would open a position on retracing to a level example open buy/sell when price retrace to 0.618?

Nikolay.Gekht wrote:I'm afraid that complex settings of the indicators will dramatically reduce the easiness of usage. However, anyone can create their own version of the indicator.

It is very easy to change the indicator to support these levels as you wish. Below is a part of the indicator which is responsible for the levels. I also added a lot of comment which explain how you can change them. Just find this code in the indicator and make any changes.

Code: Select all
`function CalcLevels()    levels = {};    index = {};    if M == "F" then        --- here is all possible levels for the fibonacci.        --- The number inside the square bracket is a number of the line,        --- the value after = is the level.        --- You can change the value of the level to any level you wish.        levels[1] = -0.236;        levels[2] = 0;        levels[3] = 0.236;        levels[4] = 0.382;        levels[5] = 0.5;        levels[6] = 0.618;        levels[7] = 0.764;        levels[8] = 1;        levels[9] = 1.272;        --- here is lists of levels for 3, 5, 7 and 9 lines. You can select any other levels if you wish         index["3"] = {4, 5, 6};        index["5"] = {2, 4, 5, 6, 8};        index["7"] = {2, 3, 4, 5, 6, 7, 8};        index["9"] = {1, 2, 3, 4, 5, 6, 7, 8, 9};    else        --- here is all possible levels for the gann. You can change them exactly like the fibonacci levels        levels[1] = 0;        levels[2] = 0.125;        levels[3] = 0.25;        levels[4] = 0.375;        levels[5] = 0.5;        levels[6] = 0.625;        levels[7] = 0.75;        levels[8] = 0.875;        levels[9] = 1;        index["3"] = {3, 5, 7};        index["5"] = {1, 3, 5, 7, 9};        index["7"] = {1, 3, 4, 5, 6, 7, 9};        index["9"] = {1, 2, 3, 4, 5, 6, 7, 8, 9};    endend`
dandee

Posts: 34
Joined: Thu Nov 05, 2015 8:54 am

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Sure.

Apprentice
FXCodeBase: Confirmed User

Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Apprentice wrote:Sure.

Hi there, can you cancel my request to turn this into a strategy, I've just found the highly adaptable pivot strategy which should do what I want it to do (hopefully)
dandee

Posts: 34
Joined: Thu Nov 05, 2015 8:54 am

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

May you add a version of this where it gives output streams for the levels? For use with strategies. So that each periods has "0.382","0.618" etc levels with a price next to it after clicking the chart.
Never chase the money, let the money come to me

Cactus

Posts: 231
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Your request is added to the development list, Under Id Number 3587
If someone is interested to do this or any task other from list please contact me.

Apprentice
FXCodeBase: Confirmed User

Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

very handy

if you get the chance

could you include a transparency feature - would like to push indicator into the background on the technicals chart I use

thanks
Paul W

Posts: 97
Joined: Mon Apr 01, 2013 1:36 pm

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Cactus wrote:May you add a version of this where it gives output streams for the levels? For use with strategies. So that each periods has "0.382","0.618" etc levels with a price next to it after clicking the chart.

Bump
Never chase the money, let the money come to me

Cactus

Posts: 231
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

Ok forget the output streams. Can you make a "period" parameter similar to what is in "ZigZag with output" indicator, which would shift the fibonacci retracement x periods back? So that we can see historical levels too?
Never chase the money, let the money come to me

Cactus

Posts: 231
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

### Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan

As it is all versions have last candle as reference.

Apprentice
FXCodeBase: Confirmed User

Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext