Login Page - Create Account

Support Board


Date/Time: Tue, 09 Jun 2026 10:44:12 +0000



Which trading services can return OrderStatusCode=10 and 11?

View Count: 185

[2026-04-24 14:38:52]
curious16 - Posts: 47
Could you please let me know for which trading services I need to expect and handle the condition
OrderStatusCode == SCT_OSC_PENDING_CANCEL_FOR_REPLACE

The scconstants.h header file indicates this is used by trading services that do not support modifying orders. Is this of practical concern for Interactive Brokers or for Teton, or can I safely ignore this status code?

Also, when would the status code be equal to SCT_OSC_ERROR? Typically, a SCTRADING_ORDER_ERROR is returned when an invalid order is submitted. What are the conditions when an order can switch to SCT_OSC_ERROR state. If an order changes to OrderStatusCode = SCT_OSC_ERROR, can the order be cancelled, or is there no point to do that as the order was rejected by the SC server (i.e. never got put on the book)?
[2026-04-27 22:15:23]
Sierra_Chart Engineering - Posts: 23965
Regarding SCT_OSC_PENDING_CANCEL_FOR_REPLACE, the only service that would use this, would be LMAX.

Regarding SCT_OSC_ERROR, there can be many cases for this. A rejected order would set this state usually.


But really it is not anything that we can predict or guarantee.

If an order changes to OrderStatusCode = SCT_OSC_ERROR, can the order be cancelled,
You can still try to cancel the order but there is no need to do so.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2026-04-27 22:26:06
[2026-04-28 11:20:50]
curious16 - Posts: 47
Thank you for clarifying. For my use case this means I can ignore SCT_OSC_PENDING_CANCEL_FOR_REPLACE.

Regarding SCT_OSC_ERROR, I'd like to understand what could trigger such an error if no SCTRADING_ORDER_ERROR is returned when the order is submitted. I'd like to catch as many potential error sources as possible before submitting orders, hence it would be helpful to get further insight what triggers SCT_OSC_ERROR conditions.

Specifically, assume the content of the s_SCNewOrder struct is checked for validity (no missing or invalid fields, size not breaching account or symbol limits, no invalid price levels etc). Assume an order with this struct is submitted (sc.BuyOrder() or sc.SellOrder()) and no SCTRADING_ORDER_ERROR is returned.

What could then later still trigger a SCT_OSC_ERROR condition after the order was submitted? Would such SCT_OSC_ERROR conditions be generated only by the SC server (i.e. before the order is put on the book at the exchange), or could such SCT_OSC_ERROR conditions also be triggered by the exchange? What additional information about the type of error do I get in SC if such an error is triggered?

I so far haven't come across these errors when using simulated trading, but I'd rather make sure this condition is properly handled in my code to avoid having to deal with surprise losses when experiencing such SCT_OSC_ERROR situations while trading a live account.
[2026-04-28 14:31:15]
Sierra_Chart Engineering - Posts: 23965
We cannot help with this:
hence it would be helpful to get further insight what triggers SCT_OSC_ERROR conditions.

We simply do not know. You just have to make your own observations. This is impossible, for us to know. There are just too many variables involved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account