[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.

Moderator: admin

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

Postby dandee » Mon Nov 09, 2015 5:48 am

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

Thanks :P
dandee
 
Posts: 33
Joined: Thu Nov 05, 2015 8:54 am

Re: Automatic Levels Indicator (Fibonacci, Gann)

Postby dandee » Tue Dec 08, 2015 11:59 am

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};
    end
end
dandee
 
Posts: 33
Joined: Thu Nov 05, 2015 8:54 am


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

Postby dandee » Fri Dec 11, 2015 11:21 am

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) :P
dandee
 
Posts: 33
Joined: Thu Nov 05, 2015 8:54 am

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

Postby Cactus » Sat Aug 06, 2016 10:03 am

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
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

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

Postby Apprentice » Mon Aug 08, 2016 3:06 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36316
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

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

Postby Paul W » Fri Dec 23, 2016 2:20 pm

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
FXCodeBase: Initiate
 
Posts: 146
Joined: Mon Apr 01, 2013 1:36 pm

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

Postby Cactus » Fri Apr 28, 2017 9:07 pm

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
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

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

Postby Cactus » Thu May 18, 2017 9:29 am

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
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

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

Postby Apprentice » Sat May 20, 2017 8:31 am

AUTOLEV3.lua added
As it is all versions have last candle as reference.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36316
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 5 guests