PureBytes Links
Trading Reference Links
|
Here's something that I dug out that was posted to the list a while back.
Hope it helps.
- Barry
{Posted to MetaStock List by Gary Randall }
{on 10/15/99 }
{ Chaos Fractal (simple version +1=Up, -1=Dn) }
High1 := Ref(HIGH,-2);
High2 := Ref(HIGH,-1);
High3 := Ref(HIGH,0);
High4 := Ref(HIGH,1);
High5 := Ref(HIGH,2);
Low1 := Ref(LOW,-2);
Low2 := Ref(LOW,-1);
Low3 := Ref(LOW,0);
Low4 := Ref(LOW,1);
Low5 := Ref(LOW,2);
Fractal :=
If((High3 > High1) AND (High3 > High2) AND (High3 > High4) AND (High3
>
High5), +1,0);
Fractal :=
If((Low3 < Low1) AND (Low3 < Low2) AND
(Low3 < Low4) AND (Low3 < Low5),
If(Fractal > 0, 0, -1), Fractal);
Fractal;
----- Original Message -----
From: "Bob Webb" <Webb.Bob@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Wednesday, January 24, 2001 4:36 PM
Subject: Programming Bill Williams fractals
> I heard nothing from my earlier request...
>
> Has anyone attempted programming Bill Williams' fractals: that is,
> indicating when a particular day's high is higher than the two days before
> and after it (and the same on the downside: when a day's low is lower than
> the two days before and after it).
>
> I'd appreciate help with programming this if someone has done it.
>
> Thanks.
>
> Bob.
>
>
> ==============+==============
> Robert L. Webb
> Webb.Bob@xxxxxxxx
> ===============+=============
>
>
>
|