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

Watch out for MAJOR changes in TS7 routines (Average is one)



PureBytes Links

Trading Reference Links

Some very uninformed persons within the Tradestation organization
have decided that MANY functions that worked fine with TS2000 and
before are suddenly in need of causing divide by zero errors if certain
parameters are called with zero values and this was not the case in
previous versions.

Since I can hardly remember when Omega/Tradestation began issuing
warning messages on FP invalid computations telling us not to do a divide
that might result in a divide by zero and suggest methods of preventing
this.

So in the current (test) version of TS7 you find the following function:

inputs:
 Price( numericseries ),
 Length( numericsimple ) ; { will get divide-by-zero error if Length = 0 }

Average = Summation( Price, Length ) / Length ;


{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights
reserved. **
  ** TradeStation reserves the right to modify or overwrite this analysis
technique
     with each release. ** }


NOTE THE COMMENT ABOUT GETTING A DIVIDE BY ZERO ERROR
IF LENGTH IS ZERO.

We are assured of an error if deliberately or inadvertently the function is
called
with a zero length.


After all their preaching about protecting from divide by zero with simple
solutions
such as:

inputs:
 Price( numericseries ),
 Length( numericsimple ) ; { will NOT get divide-by-zero error if Length =
0 }

Vars:  Length1(iff(Length<=0,1,Length));

Average = Summation( Price, Length1 ) / Length1 ;


Don't want a bunch of ranting and raving about TS/Omega.  Just want help in
trying to get the word to them to make functions in TS7 behave the way that
they did in TS2K and TS4.


Clyde


- - - - - - - - - - - - - - - - - - - - -  - - - - - - -
Clyde Lee   Chairman/CEO          (Home of SwingMachine)
SYTECH Corporation          email: clydelee@xxxxxxxxxxxx
7910 Westglen, Suite 105       Office:    (713) 783-9540
Houston,  TX  77063               Fax:    (713) 783-1092
Details at:                      www.theswingmachine.com
- - - - - - - - - - - - - - - - - - - -  - - - - - - - -

----- Original Message ----- 
From: <omega-digest-request@xxxxxxxxxx>
To: <omega-digest@xxxxxxxxxx>
Sent: Tuesday, July 15, 2003 3:29 AM
Subject: omega-digest Digest V103 #182