Login Page - Create Account

Support Board


Date/Time: Thu, 18 Jul 2024 07:13:34 +0000



Questions about OrderStatusCode

View Count: 267

[2023-09-11 17:34:41]
WeroTrader - Posts: 46
Greetings, Sierra Chart team.

The reason for my query is to know what the SCT_OSC_UNSPECIFIED constant refers to.
of the OrderStatusCode in automated trading systems.

I have been having orders with this status and would like to know how to correct them. Apparently it happens to me when there are limited exit options. And this causes me to not be able to track if an internal order id has been fulfilled

Without further ado for the moment and thanking you in advance, I look forward to your comments or guidance to consult documentation.
[2023-09-12 17:39:06]
Sierra_Chart Engineering - Posts: 15496
Exactly how are you getting orders with this status:
SCT_OSC_UNSPECIFIED

An order would never have this status.
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
[2023-09-18 18:05:42]
WeroTrader - Posts: 46
thanks for the reply.

I'm trying to program a grid strategy.

The entire strategy is based on placing both sell and buy limit orders; at a specific distance from each other.

I start by placing two entry orders, a short and a long. Then I track each one through the order status so that, when (either of the two) has a filling status, I can place an exit order for it.

It happens that when I follow up on the second order (the outgoing one), its status returns as SCT_OSC_UNSPECIFIED even though they have been filled in, which causes the rest of my logic to stop working.
[2023-09-18 21:49:50]
Sierra_Chart Engineering - Posts: 15496
It is possible that the order is actually no longer available. Check the return value of the function getting the order to see if it has succeeded.


Refer to:
Automated Trading From an Advanced Custom Study: Getting Order Information
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: 2023-09-19 17:24:48

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

Login

Login Page - Create Account