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

Re: EasyLang bug?



PureBytes Links

Trading Reference Links

At 9:44 PM -0600 5/25/00, Gary Fritz wrote:

>My guess is, StandardError is a Series function, and when X=0 the
>parameters to StandardError are such that StandardError barfs.

The code is set for "Auto-detect" but since it contains the line:

   Else StdErr = StdErr[1];

this will force it to be a series function as Gary guesses. This will cause the function to be executed on each bar even though you didn't call it on each bar.

And the code contains two cases of a divide where they did not check for a divide-by-zero so perhaps one of these is causing the problem.

You can fix it by making a copy of the function code under a slightly different name, adding the check for divide-by-zero, and then using this new version in your code.

Obviously, they should have added the divide-by-zero tests in their code.

Bob Fulks