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

[EquisMetaStock Group] Re: zigzag for intraday



PureBytes Links

Trading Reference Links


Al, try Roy's suggestion, and use the code below with 1% ZigZag 
reversal amount:

==============
ZigZag - Hi/Lo
==============
---8<---------------------------

{ High/Low ZigZag v1.0 }
{ Plot on price chart }
{ ©Copyright 2004 Jose Silva }
{ http://users.bigpond.com/prominex/pegasus.htm }

pr:=Input("ZigZag reversal amount",
0.001,100000,1);
choose:=Input("[1]Hi/Lo ZigZag, [2]Close ZZ, [3]Peaks/Troughs",1,3,
1);

pk:=PeakBars(1,H,pr)=0;
tr:=TroughBars(1,L,pr)=0;
pktr:=pk-tr;

zz:=Zig(C,pr,%);
zzHi:=Zig(H,pr,%);
zzLo:=Zig(L,pr,%);
avg:=(zzHi+zzLo)/2;

x:=
If(pk,zzHi,If(tr,zzLo,If(avg>Ref(avg,-1),H,L)));
zzHiLo:=Zig(x,pr,%);

If(choose=1,zzHiLo,If(choose=2,zz,pktr))

---8<---------------------------


jose '-)


--- In equismetastock@xxxxxxxxxxxxxxx, elnaseer dina <zebra7860@xxxx> 
wrote:
> Hi Jose,
>  
> Hi Jose,
>  
> I don't think it does work. I highlighted the formula (within the 
dotted lines) into the indicator builder and then simply dragged it on 
to the chart and the bars do temporarily turn pink but then nothing 
happens.  I tried the same indicator on an EOD chart and it works 
perfectly. Am I doing something wrong here?  Any ideas?
>  
> Thanks,
> Al
>
> 
> Jose <josesilva22@xxxx> wrote:
> 
> Al, if you are referring to the ZigZag code below, it should also
> work on 5 min charts.
> 
> jose '-)
> 
> 
> ==============
> ZigZag - Hi/Lo
> ==============
> ---8<---------------------------
> 
> { High/Low ZigZag v1.0 }
> { Plot on price chart }
> { ©Copyright 2004 Jose Silva }
> { http://users.bigpond.com/prominex/pegasus.htm }
> 
> pr:=Input("ZigZag reversal amount",
> 0.001,100000,5);
> choose:=Input("[1]Hi/Lo ZigZag,  [2]Close ZZ,  [3]Peaks/Troughs",1,
3,1);
> 
> pk:=PeakBars(1,H,pr)=0;
> tr:=TroughBars(1,L,pr)=0;
> pktr:=pk-tr;
> 
> zz:=Zig(C,pr,%);
> zzHi:=Zig(H,pr,%);
> zzLo:=Zig(L,pr,%);
> avg:=(zzHi+zzLo)/2;
> 
> x:=
> If(pk,zzHi,If(tr,zzLo,If(avg>Ref(avg,-1),H,L)));
> zzHiLo:=Zig(x,pr,%);
> 
> If(choose=1,zzHiLo,If(choose=2,zz,pktr))
> 
> ---8<---------------------------
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, elnaseer dina <zebra7860@xxxx
> 
> wrote:
> > Hello,
> >  
> > A while ago Jose developed the zigzag code for EOD charts but now
> > I wish to employ the Zigzag for my intraday ( 5 min) charts to
> > identify swing highs and lows. 
> >  
> > Does anybody have a code that can accomplish this? 
> >  
> > I would certainly appreciate the help.
> >  
> > Thanks,
> > Al






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/