PureBytes Links
Trading Reference Links
|
Correctly:
my formulas and the GuppyTraders article are available at
http://groups.yahoo.com/group/Metastockusers/files/
and other sites.
Look for the Word document titled
"SR Zigzag related indicators.doc"
and for the pdf file titled
"Validating the Zigzag.pdf ".
The zigzag indicator is not suitable for back tests and cannot be
re-constructed with the Metastock Formula Language.
It is suitable mainly for visual inspection of significant swings.
On the other hand "SR Zigzag Trend" can be used either as a stand-alone
indicator or
in conjunction with Zigzag itself. It is reliable under all conditions and
suitable
for back tests too.
In any case one has to choose between
validity at the cost of lag (SR ZZT)
and immediate responce at the cost of validity (Zigzag).
Both tools are already available and IMO there is absolutely
no reason for re-creating them, unless one wants to practice
programming (but with real programming languages like C++, Pascal, Java etc)
in which case he could put ZZT into a DLL using such a language, which would
be nice indeed.
What I would like to underline, if I may, is the fact that both tools are no
less
than 100% accurate in WHAT THEY DO,
meaning that a skilled programmer can only
improve secondary parameters like speed or appearence, etc.
In other words the values they return are "optimal", unique.
They cannot be further improved since, for example, 5% peaks in a specific
price series will always have certain unique values (so the accuracy of
Zigzag
cannot be improved) and the corresponding trends will always be confirmed at
a
specific price levels and not earlier (so the lag of ZZT cannot be improved
either).
In this sence both indicators are objective and "final".
But as I said one can try to change things like their interface.
For example Tradestation's Zigzag version works differently:
The last leg does not plot until the bar of confirmation.
But the peaks and troughs values are the same with Metastock's.
I hope this helps
Spyros
Message: 18
Date: Wed, 21 May 2003 07:44:55 +0800
From: "Jonathan King" <jking@xxxxxxxxxxxxxxx>
Subject: RE: Roy Larson & zig zag formula
Spyros formula (in-full) is available at a number of the MetaStock formula
sites (see earlier postings), as well as the "files" area for this group or
maybe the Equis MetaStock group site on Yahoo. An article regarding the
indicator , written by Spyros for the Guppy Newsletter, is also available.
Spyros will also see this and I'm sure reply in kind.
Cheers,
Jono
-----Original Message-----
From: DMC197807 [mailto:dmc197807@xxxxxxxxxxx]
Sent: Wednesday, May 21, 2003 4:11 AM
To: Metastockusers@xxxxxxxxxxxxxxx
Subject: Re: [Metastockusers] Roy Larson & zig zag formula
Steve,
I picked this off the subscriber list for TA mag; maybe it will help you?
I didn't find any other Zigzags on the list.
Doug
METASTOCK CODE FOR ZIGZAG VALIDITY
{Zigzag validity by Spyros Raftopoulos}
perc:=Input("Percent",0.2,100,10);
Z:=Zig(Close,perc,%);
last:=ValueWhen(1,( Z > Ref(Z,-1) AND Ref(Z,-1) < Ref(Z,-2))
OR
(Z < Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2)),
Ref(Z,-1));
pc:=(Close-last) * 100 / last;
pc:= Abs(pc);
SD:=(z > Ref(z,-1) AND Ref(z,-1) > Ref(z,-2))
OR
(z < Ref(z,-1) AND Ref(z,-1) < Ref(z,-2));
res:=If(pc >= perc ,1,0);
If(Alert(res,2) AND SD,1,res)
----- Original Message -----
From: Steve Grala
To: Metastockusers@xxxxxxxxxxxxxxx
Sent: Tuesday, May 20, 2003 1:03 PM
Subject: [Metastockusers] Roy Larson & zig zag formula
He Roy,
Can you give me the details of how the zig zag formula is created? Does
your zipped MetaStock formula file explain how the zig zag indicator is
created in MetaStock? I have been trying to recreate the indicator
myself,
but am unable to do so. The built-in zig zag indicator in MetaStock
plots
data on the first day and the last day. I really don't see how
MetaStock
can do this. I have not been able to find anyone who knows how the zig
zag
indicator is written in MetaStock. I created a formula that draws a
linear
line from the first day of data to the last day of data, but I am unable
to
have it switch back and forth at defined percent intervals. Basically,
I
created a zig without the zag.
A:=If((C-PREV)/PREV<.1,PREV,C);
slope:=(LastValue(C)-ValueWhen(1,Cum(1)=1,C))/LastValue(Cum(1));
line:=ValueWhen(1,Cum(1)=1,C)+Cum(slope);
line;
Thanks,
Steve
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[This message contained attachments]
________________________________________________________________________
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/zMEolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|