Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 16:36:20 +0000



Identifying Rejected Orders (ACSIL)

View Count: 942

[2019-08-24 01:46:04]
User335510 - Posts: 3
I would appreciate it if someone could help me with ACSIL orders.
I have searched through the documentation, but have not seen anything that tells me if an order has been rejected.
I have also searched through the included sample studies and found no reference to this.
Is there a way (through code) to identify if an order was rejected?
[2019-08-26 17:00:28]
Sierra Chart Engineering - Posts: 104368
Yes you need to check the Order Status Code of the order. Refer to:
Automated Trading From an Advanced Custom Study: Getting Order Information

Automated Trading From an Advanced Custom Study: [Type: integer] OrderStatusCode

It will have an Error 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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-08-26 18:04:05]
User335510 - Posts: 3
Is that the only time the OrderCode will be SCT_OSC_ERROR?
The BuyEntry/SellEntry functions return one of the Order Error Constants (Automated Trading From an Advanced Custom Study: Order Error Constants) so would this also cause the status to be SCT_OSC_ERROR?
If so, what Order Error Constant should I check for for a rejected order?
[2019-08-26 18:18:56]
Sierra Chart Engineering - Posts: 104368
If an ACSIL Order Action is getting ignored, it does not even result in the order ever getting added to the order list so you could never check its Order Status Code.

SCT_OSC_ERROR will be used when an order is rejected from an external trading service.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-08-26 18:19:09
[2019-08-26 20:19:35]
User335510 - Posts: 3
If an ACSIL Order Action is getting ignored, it does not even result in the order ever getting added to the order list so you could never check its Order Status Code.

Earlier in this thread, I was referred to checking the Order Status Code on the s_SCTradeOrder for the order, so now I am confused. I am now being told I would not be able to check the Order Status Code (which I assume means that sc.GetOrderByOrderID would not fill in the Order Status Code on the s_SCTradeOrder object).

Does that mean that SCT_OCT_ERROR is the return value for sc.GetOrderByOrderID?
[2019-08-26 22:00:50]
Sierra Chart Engineering - Posts: 104368
We are answering your questions as best as we can understand the context of them. It is often the case that we are asked questions which are impossible to answer because we do not have the surrounding context information which can be very extensive, or it is far far too involved the analysis of them for us to even answer them. And therefore outside the scope of our support.

If you are submitting an order, and the order action function is returning an error, then there was never any order accepted to begin with. In this case the error codes are all quite clear and documented.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-08-26 22:01:16

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

Login

Login Page - Create Account