Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2006(UTC) Posts: 33
|
Is there any way to in a formula, given the two periods (one for hi, one for low) to calculate when the chart is touching a specific fibonacci line (say 50%)?
I know it can visually be done, but I would like to build a system utilizing that as one of the indicators.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey 99..... there are several ways to take the chart is touching a specific fibonacci line .... a true cross is one thing and plain touching might be considered something else.... the code below will plot the high of a selected day and the low of another or same day..... and the 50% line between.... on any day that the price touches the 50% line in any manner a binary wave will be ploted on the low plot line......
if you overlay with out scale on the price data you'll see whats going on..... and of course it can be ploted in its own window..... if your interested in the binary wave only the bottom code would be better..... h
[code:1:212aa7250a]highdate:=Input("high date mmddyyyy",111990,12312100,4032006);
lowdate:=Input("low date mmddyyyy",111990,12312100,1042006);
a:=ValueWhen(1,highDate=Month()*1000000 + DayOfMonth()*10000+ Year(),H);
aa:=ValueWhen(1, lowDate=Month()*1000000 + DayOfMonth()*10000+ Year(),L);
aaa:=a-aa;
aaaa:=aa+(aaa*.5);
a;
aa;
aaaa;
If(L<aaaa AND H>aaaa, aa +1,aa);[/code:1:212aa7250a]
[code:1:212aa7250a]
highdate:=Input("high date mmddyyyy",111990,12312100,4032006);
lowdate:=Input("low date mmddyyyy",111990,12312100,1042006);
a:=ValueWhen(1,highDate=Month()*1000000 + DayOfMonth()*10000+ Year(),H);
aa:=ValueWhen(1, lowDate=Month()*1000000 + DayOfMonth()*10000+ Year(),L);
aaa:=a-aa;
aaaa:=aa+(aaa*.5);
L<aaaa AND H>aaaa;[/code:1:212aa7250a]
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
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.