PureBytes Links
Trading Reference Links
|
Better late than never...
For what it is worth, I think you could also use something like
x / max( 0.00001, y )
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
>
> Manuel, Jose,
>
> Thanks to both of you for your help. While I like both,I think I'll
> give the nod to Jose's. Here's why. Adding a constant condition means
> my data would always be off by a small amount. Using Jose's solution,
> I would use the constant only when needed. I seem to remember a
> discussion recently about this ever present problem that MG addressed
> by using a prev statement. That would work as well but slows the
> processing down. Again, thanks to both of you!
>
> Preston
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Manuel Cabedo"
> <manelcabedo@xxxx> wrote:
> > Hi Preston,
> >
> > Try this:
> >
> > Ref(LinRegSlope(V,X2)/(Ref(V,-X2),-1)+0.000001)*100<-2
> >
> > Manuel
> > ----- Original Message -----
> > From: pumrysh
> > To: equismetastock@xxxxxxxxxxxxxxx
> > Sent: Thursday, April 14, 2005 11:56 PM
> > Subject: [EquisMetaStock Group] Division error
> >
> >
> >
> > All,
> >
> > I've been working on a TASC article that Markos Katsanos wrote.
> His
> > code has a division error in it. Here's the code. The last line
> is the
> > problem. I was trying it on PTC and got the error.
> >
> > ZZ:=Zig(C,17,%);
> > X:=BarsSince(ZZ < Ref(ZZ,-1) AND Ref(ZZ,-1) > Ref(ZZ,-2));
> > X1:=LastValue(X)+1; {flag duration}
> > X2:=X1+1;
> > SD:=Stdev(C,X2);
> >
> > Ref(LinRegSlope(V,X2)/Ref(V,-X2),-1)*100<-2
> >
> > Any ideas?
> >
> > Preston
> >
> >
> >
> >
> >
> >
> >
> > --------------------------------------------------------------------
> ----------
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/equismetastock/
> >
> > b.. To unsubscribe from this group, send an email to:
> > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/
|