Login Page - Create Account

Support Board


Date/Time: Tue, 06 Dec 2022 06:46:30 +0000



Trading Order Errors, Unable to Modify Order, Scaling Issues

View Count: 161

[2022-11-22 22:44:10]
User624595 - Posts: 21
During trading today we experienced a few different trading errors below, could you please help explain/resolve these?

"
1. Trading message from IB: OrderId 67 that needs to be cancelled is not found. Error Code: 10147. ServiceOrderID: 67. InternalOrderID: 9332. | 2022-11-22 14:47:19.559 *

2. Order Modification Error: YM-202212-ECBOT[M] 1 Min #4 | User order modification ignored. New price is the same during a price modify. Internal Order ID: 9353. Service Order ID: 82. Account: xxx| 2022-11-22 15:30:31.501

3. Trading message from IB: Order Canceled - reason:. Error Code: 202. ServiceOrderID: 83. InternalOrderID: 9355. | 2022-11-22 15:48:00.273

4. Trading message from IB: Error validating request.-'bW' : cause - Please enter a valid security type. Error Code: 321. ServiceOrderID: 59. InternalOrderID: 9323. | 2022-11-22 17:09:50.479 *
Trading message from IB: Error validating request.-'bQ' : cause - Please enter a valid security type. Error Code: 321. ServiceOrderID: 59. InternalOrderID: 9323. | 2022-11-22 17:09:50.479

We are on the latest offline stable TWS 10.12.2v, and SC 2453, and have updated symbol settings from the server.

5. We were unable to modify the price of an order at one point over several attempts. There may have been an network disconnection. Is there any way to verify the cause? We can share logs privately.

6. After entering 4 contracts and adding 4 more, attached orders were split into 2 and 6. Why is that/how can we prevent that/configure this?

7. After scaling out 4 of 8 contracts that had two different sets of working attached orders, the remaining 4 contracts were all combined into one order. Why is that/how can we prevent that/configure this?
Date Time Of Last Edit: 2022-11-22 22:45:19
[2022-11-22 23:13:23]
John - SC Support - Posts: 20340
The first thing is to resolve the issue shown in #4 from your post. You state that you are on the latest "offline stable" version, but we have no idea what on "Offline" version is. Based on posts from another user, it appears the correct version of TWS is 10.20.1c. Please update to that version and then see if you can place trades and if the other issues then go away.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-11-22 23:24:55]
User624595 - Posts: 21
The offline version does not automatically update on every startup to the latest release. Like using an SC Release that is proven vs always automatically loading the latest SC Pre-Release. https://www.interactivebrokers.com/en/trading/tws.php#tws-software .

Can you verify 10.12.2v vs 10.20.1c is causing all the listed order issues other than from a user post?

Also the scaling issues do not seem related, could you help with those?

Also what is the difference between Even Distribution and Maintain Ratios settings?
Date Time Of Last Edit: 2022-11-22 23:52:30
[2022-11-23 14:23:10]
John - SC Support - Posts: 20340
We can not verify that the specific release for TWS is 10.20.1c. The only thing we know for certain is that it is the most recent "Stable" release. Apparently IB has "Beta" releases available, which you do not want.

But, we will say that the user that posted has been very helpful in this matter and we would be very surprised if that is not the correct version.

With regards to Scaling out, it sounds like you need to determine the best option for you of the settings for Trade >> General Trade Settings >> Scale Out. You will find the definitions at the following link:
Global Trade Settings Windows: Scale Out (Global Settings >> General Trade Settings >> Scale In/Out)

The information for Scale In is just above the section linked above. The option for "Even Distribution - Maintain Ratios" means that the ratio of the quantities of the existing orders will try to be maintained. For instance, if you have two attached stops with quantities of 4 and 2 (a 2:1 ratio) and you scale in a quantity of 3, you will add 2 to the quantity of 4 and add 1 to the quantity of 2, giving you new quantities of 6 and 3 (still a 2:1 ratio).
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: 2022-11-23 14:26:43
[2022-11-23 17:42:43]
User624595 - Posts: 21
Updated to latest stable 10.20.1c, and SC to 2456. No problems experienced so far, but the errors in the trade service log so far are the below. Could you explain them and how to prevent them?

"
:Trading message from IB: Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed. Error Code: 2109. ServiceOrderID: 137. InternalOrderID: 9416. | 2022-11-23 10:31:24.361
Trading message from IB: Order Canceled - reason:. Error Code: 202. ServiceOrderID: 186. InternalOrderID: 9468. | 2022-11-23 12:28:13.405
Trading message from IB: Order rejected - reason:No such order. Error Code: 201. ServiceOrderID: 185. InternalOrderID: 9466. | 2022-11-23 12:28:13.459 *
"
Date Time Of Last Edit: 2022-11-23 17:43:02
[2022-11-23 18:39:13]
John - SC Support - Posts: 20340
You would need to ask IB about these.

But, with regards to the "Outside Regular Trading Hours", check your "Time in Force" for you main order and any attached orders you submitted and see if they are set to either "Good 'til Date Time" or "Send Order at Time" and then what Date and Time you have entered and see if it is outside of regular trading hours (keep in mind the holiday this week in the US).

Note the above is just a guess on our part - please check with IB on what exactly the error means and why you are getting it.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-11-23 19:42:16]
User624595 - Posts: 21
This one, seems to be due to how the SC internal symbol/position limits work?

"Trade Order Error - Order will cause symbol settings Position limit to be exceeded. Limit: 8. MaximumPotentialPositionQuantity: 12. Position: 8. Internal Order ID: 9561. Service Order ID: (none). Symbol: ZB-202212-ECBOT. Account: xxxx| 2022-11-23 14:34:59.445 *
"

There was an existing long position, with working OCO stop and limit orders. This was a new order to sell, Scale Out was enabled, and if filled the new order would have reduced/closed the existing long position but was rejected.
Date Time Of Last Edit: 2022-11-23 19:42:54
[2022-11-23 21:14:22]
John - SC Support - Posts: 20340
Check the Global Settings >> Global Symbol Settings >> Use Global Trade Position Limit and see if this is enabled and set to a value of 12. Refer to the following:
Global Symbol Settings: Use Global Trade Position Limit (Global Settings >> Symbol Settings)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-11-23 21:30:14]
User624595 - Posts: 21
Global Trade Position Limit was set to 12 but disabled (unchecked and greyed out). However the Symbol position limit was set to 8 and enabled. However the order that was rejected would have reduced the position size.
[2022-11-23 22:13:15]
John - SC Support - Posts: 20340
Check the setting - Trade >> General Trade Settings >> General >> Hold Market Order Until Pending Cancel Orders Are Confirmed and set this to Yes. Refer to the information for this setting here:
Global Trade Settings Windows: Hold Market Order Until Pending Cancel Orders Are Confirmed (Global Settings >> General Trade Settings >> General)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-11-24 00:56:06]
User624595 - Posts: 21
This setting is intentionally set to NO in case of a network disconnect/lack of order status update from the trading service while needing a market order to be filled.

Also it was a limit order that was rejected, so this setting should not affect that.

Can you verify if this error is from SC's internal Position limit setting or from the trade service? And how to prevent it?
Date Time Of Last Edit: 2022-11-24 00:56:24
[2022-11-24 21:44:57]
Sierra_Chart Engineering - Posts: 5500
Yes the rejection message definitely indicates this:
Can you verify if this error is from SC's internal Position limit setting

Trade Order Error - Order will cause symbol settings Position limit to be exceeded. Limit: 8. MaximumPotentialPositionQuantity: 12. Position: 8.

From documentation:
Both the Global Trade Position Limit and the Trade Position Limit, that can be set for an individual symbol, consider the quantity of all working open orders even those that are pending cancellation and established Positions. It will consider what is the maximum resulting Trade Position if all of the orders were to fill. There is consideration to certain specific scenarios, where a new order will reduce risk. In this case, that order will be allowed. However, there are certain strict conditions that have to be met. Therefore, an order that seemingly will not change the Position quantity or would reduce risk by reducing the Position Quantity, can still be get rejected. This is to ensure that the Position Quantity Limit will not get violated under the vast majority of scenarios. It is important to understand this.


To prevent the new order from getting rejected, first cancel the other working orders.
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: 2022-11-24 21:46:09
[2022-11-25 02:13:48]
User624595 - Posts: 21
]
To prevent the new order from getting rejected, first cancel the other working orders.

At times it is easiest to place a new order to quickly look for an exit, without having to cancel other orders first.

where a new order will reduce risk. that order will be allowed. However, there are certain strict conditions that have to be met.

Can you clarify what strict conditions need to be met for a new order reducing risk to be allowed?
Date Time Of Last Edit: 2022-11-25 02:16:18
[2022-11-28 23:49:35]
User624595 - Posts: 21

At times it is easiest to place a new order to quickly look for an exit, without having to cancel other orders first.

Similar to this, could it be possible to quickly/easily split up a stop with multiple contracts into two separate stops?

In a fast market condition, canceling working orders first, reconfiguring different attached orders, and resending new attached orders is slow and leaves one's position exposed.
Date Time Of Last Edit: 2022-11-28 23:49:52

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

Login

Login Page - Create Account