PureBytes Links
Trading Reference Links
|
Nicholas,
This doesn't exactly answer your query....a bit more thought might need to
go into it. But here's a code to start with...the periods don't match with
what you described but it works with the Close and its something to work
with.
regards Ian
1998 February TASC - Double Tops and Double Bottoms
In the February 1998 issue of Technical Analysis of Stocks & Commodities
magazine, Thomas Bulkowski discusses the use of Double Bottoms as a means of
finding profitable trades.
In MetaStock for Windows, you can find both Double Tops and Double Bottoms
with these formulas. There is a caveat however. In the article, Mr.
Bulkowski utilizes the High-Low range in finding Double Bottoms. These
formulas use only the close value, so a few of the lower priced issues will
not produce signals in MetaStock. Overall, however, these formulas produce
most of the major signals he discusses.
................
DOUBLE BOTTOMS
PK:=Zig(C,10,%)<Ref(Zig(C,10,%),-1) AND
Ref(Zig(C,10,%),-1)>Ref(Zig(C,10,%),-2);
TR:=Zig(C,10,%)>Ref(Zig(C,10,%),-1) AND
Ref(Zig(C,10,%),-1)<Ref(Zig(C,10,%),-2);
TR1:=TroughBars(1,C,10);
TR2:=TroughBars(2,C,10);
(ValueWhen(1,TR,Ref(C,-1))/ValueWhen(2,TR,Ref(C,-1))>.96 AND
ValueWhen(1,TR,Ref(C,-1)) / ValueWhen(2,TR,Ref(C,-1))<1.04) AND TR2-TR1>=10
AND Cross(C,ValueWhen(1,PK,Ref(C,-1)))
>From: "Nicholas Kormanik" <nkormanik@xxxxxxxxxx>
>Reply-To: metastock@xxxxxxxxxxxxx
>To: <metastock@xxxxxxxxxxxxx>
>Subject: Question on double-bottom coding
>Date: Wed, 2 Feb 2000 18:42:26 -0700
>
>
>Could someone please help with the following MetaStock code? I'd greatly
>appreciate it.
>
>Suppose we're studying daily closing prices (C), and we are looking for
>'double-bottoms' with the following characteristics (assume that all
>curvature is nice and smooth, i.e., no jaggies up and down along the
>way).....
>
>--- The right buttock low is **higher** than the left buttock's low .
>
>--- The left buttock low occurred **more** than 20 days ago.
>
>--- The right buttock low occurred **less** than 10 days ago.
>
>I can see it, and describe it. Could one of you help code it?
>
>Thanks much,
>Nicholas
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|