Re: [Upd Oct, 08] Automatic Levels Indicator (Fibonacci, Gan
Posted: Mon Nov 09, 2015 5:48 am
Apprentice wrote:Your request is added to the development list.
Thanks
Your last stop on a way to find a fast growing community of forex traders and software developers. Best forex charts indicators are available here for download. Custom development of indicators and translation to .LUA is also available on request.
http://fxcodebase.com/code/
Apprentice wrote:Your request is added to the development list.
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
Apprentice wrote:Sure.
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.