PureBytes Links
Trading Reference Links
|
> What about last leg?
Ignore it.
This is a statistical tool. It will have little effect on the cycle
average.
jose '-)
--- In Metastockusers@xxxxxxxxxxxxxxx, "Hani Mounir" <elmagd2000@xxxx>
wrote:
> Thanks Jose,
> What about last leg?
>
> Hani
>
> -----Original Message-----
> From: Jose [mailto:josesilva22@x...]
> Sent: الاحد 29/02/2004 01:35 م
> To: Metastockusers@xxxxxxxxxxxxxxx
> Cc:
> Subject: [Metastockusers] price cycle tool
>
>
> An example of one of the few valid uses for the ZigZag
function:
>
> ====================
> Cycle Length average
> ====================
> ---8<--------------------------------
>
> { Plots average of price ZigZag cycle length }
> { ©Copyright 2004 Jose Silva }
> { http://users.bigpond.com/prominex/pegasus.htm }
>
> { Stats for ASX All Ords (475) stocks,
> 27/2/2004, 5% ZigZag cycle lengths:
> mean: 12 trade days;
> avg: 14 trade days.}
>
> pr:=Input("ZigZag reversal %",0,100,5);
> plot:=Input("plot: [1] Cycle, [2] Cycle Avg, [3] ZigZag",1,
3,2);
> adv:=Input("adv plot 1 bar to match cycles? [1]Yes [0]No",0,
1,0);
>
> x:=Zig(C,pr,%);
> y:=Ref(x,-1)>x AND Ref(x,-1)>Ref(x,-2);
> z:=Ref(x,-1)<x AND Ref(x,-1)<Ref(x,-2);
> PkTr:=y OR z;
> CycleLen:=PkTr*(Ref(BarsSince(PkTr),-1)+1);
> CycleCount:=Cum(PkTr)-1;
> CycleCount:=If(CycleCount=0,.000001,CycleCount);
> CycleLenAvg:=Cum(CycleLen)/CycleCount;
> plot:=If(plot=1,Ref(CycleLen,adv),
> If(plot=2,Ref(CycleLenAvg,adv),x));
>
> plot
>
> ---8<--------------------------------
>
>
> jose '-)
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|