Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 04:42:43 +0000



Post From: Meaning of different negative return values for InternalOrderID

[2017-05-22 18:32:16]
binaryduke - Posts: 373
Hi SierraChart

I have a prototype trading system generating trades for a different symbol to the chart to which the trading system is applied. Consequently BuyOrder and SellOrder are being used for order placement (via Interactive Brokers). I am confident that the s_SCNewOrder object has valid values for OrderQuantity, OrderType and Symbol.

After calling sc.BuyOrder with the s_SCNewOrder object, the returned value is either -1 or -5 depending upon other changes within the code. Nothing is logged within the Trade Activity Log, Trade Service Log or within the IB client.

Do the negative values have specific meanings to aid diagnosis?

Thanks

Lee.
Date Time Of Last Edit: 2017-05-22 18:51:14