[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: Peak & Zig Zag



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>If i remember correctly I found the following code on Guppie's 
site; it validates and colors the Zig to show when Zig is valid (doesn't look 
ahead). For details goto the Guppie site - perhaps some kind soul can post the 
URL - I don't have it handy. Actually, if you do a search on the Zig you'll find 
a European individual who made quite a study of it and has several detailed 
report posted on his web site - I thin it was the person who developed the 
Validation routine - there are also numerous discussions around... I'm working 
with limited Internet access and can't be more 
specific.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>herman
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
color=#000000>P1 = 6<FONT 
size=2>; Z = <FONT 
color=#0000ff>Zig(<FONT 
color=#ff0000>C<FONT 
color=#000000>,P1); last=ValueWhen<FONT 
color=#000000>(( Z > Ref<FONT 
color=#000000>(Z,-1) 
AND <FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>1) < <FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>2) ) <FONT 
color=#ff0000>OR ( Z < <FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>1) <FONT 
color=#ff0000>AND <FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>1) > <FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>2) ),<FONT 
color=#0000ff>Ref(Z,-<FONT 
color=#ff00ff>1),<FONT 
color=#ff00ff>1<FONT 
color=#000000>); pc=(C<FONT 
color=#000000>-last) * 100<FONT 
size=2> / last; pc= <FONT 
color=#0000ff>abs<FONT 
color=#000000>(pc); SD=(z>Ref<FONT 
color=#000000>(z,-1) 
AND <FONT 
color=#0000ff>Ref(z,-<FONT 
color=#ff00ff>1)><FONT 
color=#0000ff>Ref(z,-<FONT 
color=#ff00ff>2)) <FONT 
color=#ff0000>OR (z<<FONT 
color=#0000ff>Ref(z,-<FONT 
color=#ff00ff>1) <FONT 
color=#ff0000>AND <FONT 
color=#0000ff>Ref(z,-<FONT 
color=#ff00ff>1)<<FONT 
color=#0000ff>Ref(z,-<FONT 
color=#ff00ff>2<FONT 
color=#000000>)); res=IIf<FONT 
color=#000000>(pc>=P1 ,1<FONT 
color=#000000>,0<FONT 
size=2>); <FONT 
color=#0000ff>Plot(Z,<FONT 
color=#ff00ff>"Z",res+<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>1<FONT face=Arial 
size=2>); 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Phsst 
  [mailto:phsst@xxxxxxxxx]Sent: November 25, 2003 2:57 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  Peak & Zig ZagExcuse me... Enter key on Subject 
  Line gets me too often.It is clear that Zig Zag *can* give unrealistic 
  test results becauseit looks into the future. This is documented. But 
  there is almost thecaveat *can* included in the caution.But are 
  there any known conditions where test results can be relied upon.For 
  example if a calculated trendline up to the current bar is morethan a few 
  bars old, and is linear for those past bars, and correlates(for lack of a 
  better word) with current bar close price,  does thisnot perhaps mean 
  that an assumption can be safely made that futureprices have not yet 
  influenced the current trend?Regards,PhsstSend 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.