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

Re: No "divide-by-zero" checks in TradeStation Pro



PureBytes Links

Trading Reference Links

TRAD support up'n sez:
>  "It was a design decision to remove-by-zero checks in our
>   built-in functions as in principle it is up to the user
>   to make sure that only divisors not equal to zero are
>   passed to the functions.

That's a load of horse patootie. Some built-in functions contain
internal divisors that can equal zero because of the data being fed to
them. That's why they had the internal check in the first place. If it's
a series function, it gets called on every bar, so there is no way for
the user to turn off the calc until more friendly data comes along. It
will just crash and there is nothing you can do to stop it other than
rewrite the function to include the divide-by-zero check.

-- 
  Dennis