PureBytes Links
Trading Reference Links
|
Ken,
Nice work!
Adam
----- Original Message -----
From: <wander@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Wednesday, September 08, 1999 8:41 PM
Subject: Re: Meta's fib tool
> scheier wrote:
> [snip]
>
> > Is anyone aware of way to user-modify this
> > tool?--as in a way to change the 75% to 78% etc.
>
> -------------
> Hi Mark,
>
> While waiting for an improved canned version, maybe you could use this
> by substituting whatever retracement calcs that you want. It's
> a bit klunky compared to the built-in, but could be made easier to use
> by deleting or ignoring the date inputs. (But it wouldn't be as cool.
> :-))
> And rather than manually inputting the high and low you
> could maybe use the Peak and Trough or Zig Zag function to define swings
>
> automatically (like the indicator that Erika posted last year).
>
> Ken
> --------
>
> {FIB Levels - date, extension, and price input}
> a:=Input("year to begin line study",1800,3000,1999);
> b:=Input("month to begin line study",1,12,1);
> d:=Input("day of month to begin line study",1,31,4);
> ext:=
> Input("1=extend upward; 2=extend downward; 0=extend not" ,0,2,0);
> hi:=Input("high",0,20000,100);
> lo:=Input("low",0,20000,50);
> BeginPlot:=Year()=a AND Month()=b AND DayOfMonth()=d;
> y:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.618));
> If(ext=2,y,lo);
> ValueWhen(1,BeginPlot,lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.236)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.382)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.5)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.618)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.764)+lo);
> ValueWhen(1,BeginPlot,hi);
> x:=ValueWhen(1,BeginPlot,((hi-lo)*1.618)+lo);
> If(ext=1,x,hi);
>
----------------------------------------------------------------------------
----
|