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

Re: [EquisMetaStock Group] Re: Division by zero



PureBytes Links

Trading Reference Links

Thank you for your help MG Ferreira

Regards Tiunan

mgf_za_1999 a écrit :

> Oops, this will only work if a pipsize is 1.  Change it to
>
>     1/max(h-l,0.0000001)*(h>l)
>
> to make it a bit more general. Note the problem with the earlier
> version, if h-l=0.5, it would still substitute the 0.5 with 1 (the max
> of 1 and 0.5 = 1) in the divisor.
>
> Regards
> MG Ferreira
> TsaTsa EOD Programmer and trading model builder
> http://www.ferra4models.com
> http://fun.ferra4models.com
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, mgf_za_1999 <no_reply@xxxx> wrote:
> > Even though you do something like
> >
> >     if(h<>l,1/(h-l),0)
> >
> > MSFL will still evaluate the expression, regardless of the fact that
> > it will not be returned.  This has been discussed before, try
> > something like
> >
> > 1/max(h-l,1)*(h>l)
> >
> > which will ensure that the divisor is always positive and also that
> > you get a zero when h=l from the ... *(h>l)  portion.
> >
> > Regards
> > MG Ferreira
> > TsaTsa EOD Programmer and trading model builder
> > http://www.ferra4models.com
> > http://fun.ferra4models.com
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, Tiunan <tiunan@xxxx> wrote:
> > > Hello,
> > >
> > > I have this message :
> > > The following maths errors occured during the calculation of ...
> > > Division by zero 29.
> > > My program is the following (really simple):
> > > 1/(hight-low)
> > > My solution is:
> > > if ((H-L)=0,0,1/(H-L))
> > > or I have this solution:
> > > If(H<>L,1/(H-L),0)
> > >
> > > In fact I have always this message.
> > > Any help will be appreciate (why 29 ?)
> > >
> > > Thank you for all
> > > Regards Tiunan.
> > >
> > >
> > >
> > >      
> > >
> > >      
> > >            
> > >
> >
> ___________________________________________________________________________
> >
> > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!
> > Messenger
> > > Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>
>
>
> SPONSORED LINKS
> Business finance course 
> <http://groups.yahoo.com/gads?t=ms&k=Business+finance+course&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=C2tTk9DZzBq1hryPj5Jcng> 
> 	Business finance online course 
> <http://groups.yahoo.com/gads?t=ms&k=Business+finance+online+course&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=C2IREsmsx-AmVmMWxD0Ceg> 
> 	Business finance class 
> <http://groups.yahoo.com/gads?t=ms&k=Business+finance+class&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=80RP4sFwRvPg6u_6c4uCYw> 
>
> Small business finance 
> <http://groups.yahoo.com/gads?t=ms&k=Small+business+finance&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=Mnynjzo3tD-vlpEiodqZMw> 
> 	Business finance small software 
> <http://groups.yahoo.com/gads?t=ms&k=Business+finance+small+software&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=Cyy5a1Ov9dDNKG1ZzI_NxQ> 
> 	Business finance online 
> <http://groups.yahoo.com/gads?t=ms&k=Business+finance+online&w1=Business+finance+course&w2=Business+finance+online+course&w3=Business+finance+class&w4=Small+business+finance&w5=Business+finance+small+software&w6=Business+finance+online&c=6&s=187&.sig=uKx8GGwih51h_s_FB2alhQ> 
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "equismetastock
>       <http://groups.yahoo.com/group/equismetastock>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>       <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/