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

Bug Report # 4



PureBytes Links

Trading Reference Links

Wednesday, 03 March 1999

There is a problem with your "CommodityNumber" function.  This worked
correctly in previous versions of TradeStation (pre 2000i).  According
to your help files, this function returns the CSI number for the current
market you are working with (See Below)

For example Cotton # 2 is number 7 and Gold is number 30.

When calling this function in TS2000i it returns erroneous values, such
as 17709 for Cotton # 2 and 0 for Gold.

This is a fairly serious error and should be corrected as soon as
possible.  Without this, the analysis technique has no way of knowing
which market the analysis is being performed on.

I would appreciate it if you could look into this matter and correct the

problem.

Thank you for your time and assistance.


Best regards,

Andrew Peskin


------------------------------------- Begin TS Help Definition
CommodityNumber (Reserved Word)

Returns the value represented under Symbol Number in the Symbol
Dictionary.

Remarks
CommodityNumber returns the value specified in the Symbol Dictionary. If
there is no value specified, CommodityNumber will return 0.

Examples
If the Symbol Number field is 149 for the S&P and 44 for the 30 year
Treasury Bond:
SymbolNumber returns 149 when used on an analysis technique applied to
S&P future data.
SymbolNumber returns 44 when used on an analysis technique applied to 30
year Treasury Bond data.

Additional Example
To force an analysis technique to run only on S&P future data, block the
entire technique with

If SymbolNumber = 149 then begin

end;
------------------------------------- End TS Help Definition