Discussions
»
Product and Service Development
»
Formula Assistance
»
Customizing Gann Fan and Fibo Retracements Default Settings
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/4/2006(UTC) Posts: 57 Location: Zurich, Switzerland
|
I would like to set different default settings
on the Gann Fan tool
and on
the Fibonacci Retracement tool.
Can this be done, and how ?
Or if not, how could I program my own Gann Angles tool ?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey ben.... the gann deal might be a tad out of my coding leauge..... here's something that might work in the fibo department.....h
[code:1:58a68b4602]
{fibonacci retracement, choose overlay without scale }
b:=Input(".236",.01,2,.236);
bb:=Input(".382",.01,2,.382);
bbb:=Input(".50",.01,2,.50);
bbbb:=Input(".618",.01,2,.618);
date:=Input("date mmddyyyy",111990,12312100,1032006);
m:=1;
d:=3;
y:=2006;
a:=ValueWhen(1, Date=Month()*1000000 + DayOfMonth()*10000+ Year(),Ref(C,-1));
aa:=ValueWhen(1, Date=Month()*1000000 + DayOfMonth()*10000+ Year(),O);
aaa:=(b*(a-aa))+aa;
aaaa:=(bb*(a-aa))+aa;
aaaaa:=(bbb*(a-aa))+aa;
aaaaaa:=(bbbb*(a-aa))+aa;
a;
aa;
aaa;aaaa;aaaaa;aaaaaa;[/code:1:58a68b4602]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/4/2006(UTC) Posts: 57 Location: Zurich, Switzerland
|
thanks a lot hayseed.
you provided me with an excellent starting point to work from.
But I assume that there must be somewhere some standard settings
for those drawing tools that you be adjustable ?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey ben.... not sure i follow your question.... the retracement lines on the meta provided fibonicia are adjustable to a degree.... seem to remember not being able to change the default setting to diffierent values that suit us....
on any code we make, we can change the default values with ease.... such as
b:=Input(".236",.01,2,.236);
b:=Input(".236",.01,2,.333); changing the .236 to .333 will change the 'b' default to .333 ..... if there were particular values you were interested its by far better to rewrite the formula's defaults upfront rather than changing them each time.....
if you knew there would be only say 5 retracements you'd ever be interested in, its better to hard code them in, ie, don't use the input function......h
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/4/2006(UTC) Posts: 57 Location: Zurich, Switzerland
|
Thanks for coming back again,
I usually use a combination of the classical Fibonacci and
1/8ths (what Gann recommended) which would then amount to:
(0, 12.5, 23.2, 25, 37.5, 38.2, 50, 61.8, 62.5, 75, 76.8, 87.5, 100)
Try it - you will be astonished how well this works in most cases! The 8ths often give you the "missing" supports/resistances...!
What I didn't understand in your code (I'm new to coding) is how could I set the period that would be covered?
Or how could I set an automatic recognition of e.g. the past 1 or 3 or 5 years highs and lows ?
If I can achieve that, I could have the indicator as part of a standard layout, so If I would want to review a big amount of charts visually, I could easily open it up with e.g. the 5 year retracements applied to it automatically when opening?!
Thanks in advance,
Ben
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Customizing Gann Fan and Fibo Retracements Default Settings
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.