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

Re: [EquisMetaStock Group] Re: Division by zero.



PureBytes Links

Trading Reference Links

Preston,

Thanks for the help.

It solved my problem !!

I was in trouble with the transitory regime, but now it's allright !


Thanks in advance.


Att,

Mormax

----- Original Message ----- 
From: "pumrysh" <no_reply@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Friday, February 17, 2006 1:38 AM
Subject: [EquisMetaStock Group] Re: Division by zero.


> Mormax,
> 
> Try this:
> 
> A:=Cum(x)+Cum(Abs(y));
> A:=if(A=0,.00001,A);
> Cum(x)/A
> 
> There are a number of other ways but this should get the job done. 
> The +prev-prev trick should also work.
> 
> Preston
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "Mormax" <mormax_trader@xxx> 
> wrote:
>>
>> When i write this indicator,
>> 
>> Cum(x)/(Cum(x)+Cum(Abs(y)))
>> 
>> it always return division by zero for the first calculation.
>> 
>> How to eliminate this division by zero ?
>> 
>> 
>> Thanks.
>> 
>> Mormax




------------------------ 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/