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

RE: EasyLang bug?



PureBytes Links

Trading Reference Links

Larry,

The Divide by Zero error in TS can be caused by an overflow, 
whereby the numerator is very large and the denominator 
is very small (it does not have to be zero).

A more robust test would be:

if absvalue(x) > 0.000001 then ......


Mark Jurik
Jurik Research
http://www.jurikres.com/

-------------------------------------------------------

----------
From: 	Larry Wright[SMTP:lwright@xxxxxxxxxx]
Sent: 	Thursday, May 25, 2000 3:39 PM
To: 	Omega List
Subject: 	EasyLang bug?


I have a TS100 indicator that gives a 'div by zero' error about half way
through a chart. I checked and could not see any place this could occur. I
put "if x > 0 then..." checks everywhere there was a divide, including all
fns, and still get the error. Finally, I put a print statement at the very
top and very bottom of the study.

The bottom one prints (at the end of the study), and I get the div-by-0
error BEFORE the next print at the first line of the study. Do all the
lines need to be executed before *any* print will print? If so, is there
any way to see where the div0 error is occurring?

Any insights much appreciated...

Larry