Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 23:15:26 +0000



Critical Error happens when trading future contract YM through Interactive Brokers today

View Count: 950

[2016-10-17 14:55:44]
xfighter - Posts: 36
Hello,

Today at around 9:45 AM EST, my auto-trading system triggered a sell signal of future contract YM. Because I set the position limit to 1, 1 YM contract was sold. However, it seems not be able to get the interal position feedback on time, so more and more contract were sold until it hits my margin limit and no more order can be executed. I have been running this algorithm for more than 2 years on sierra chart trading through Interactive Brokers TraderWorkStation and nothing went wrong before. Until last Thursday, it still works totally fine. So I wonder what the exact reason can cause this problem. It must be some change you or IB have made very recently that causes this problem.

By the way, I am using sierrachart version 1469. Since I closed my sierra chart software immediately after the problem, I forgot to copy the trade service log. I only remember the log said something like "...out of regular trading hour....Error...". I believe this error code represents some mis-communication between sierra chart and IB which eventually caused the problem.

Please check it for me. Thanks a lot!
Nan
[2016-10-17 17:16:58]
Sierra Chart Engineering - Posts: 104368
This is not the cause:
I only remember the log said something like "...out of regular trading hour....Error...". I believe this error code represents some mis-communication between sierra chart and IB which eventually caused the problem.

The cause is most likely what is described here:
http://www.sierrachart.com/index.php?page=doc/InteractiveBrokers.php#TradePositionLineQuantityDisappearingDisplayingZero

You can see what has happened from the Trade Activity Log:
http://www.sierrachart.com/index.php?page=doc/TradeActivityLog.php#ViewingHistoricalTradeActivity

You will see lines indicating in the Order Action Source field that the Position quantity for the Symbol and Trade Account has been set to 0.
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
[2016-10-17 19:46:51]
hursthead - Posts: 28
I seem to be having similar issues like you. Curious to know if you managed to resolve your problem? My issue started on Friday and I thought it was a one off and today had issues with my daily P&L and position.

In fact I got similar warning on the log like yours, you can refer to my query titled "Attached Orders and Daily P&L".

Thanks.
[2016-10-17 21:23:16]
Sierra Chart Engineering - Posts: 104368
We think we know what the cause of this is. Just give us about an hour to look into this and we will respond in this thread with more 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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-10-17 21:58:57
[2016-10-17 21:47:57]
Sierra Chart Engineering - Posts: 104368
Actually what we said in post #4 is incorrect. The problem with the internal position quantity updating on delay appears to be an Interactive Brokers issue where they are not setting the total filled quantity on an execution. This was not due to any changes we made but we are still checking.
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
[2016-10-17 22:04:16]
Sierra Chart Engineering - Posts: 104368
We now have had time to look into this. We were originally concerned whether some changes that were made in Sierra Chart were the cause of this problem and whether those changes were released ahead of being thoroughly tested.

This problem is *not* related to any changes Sierra Chart has made and released. The conclusion at this point, is that when an IB execution message is received which indicates an order fill, the Total Filled Quantity field is zero which leads to the following issues:

- An overfill error occurs.
- The fill is not logged. This also affects any profit/loss calculations which depend on this.
- The internal position quantity is not immediately updated and will be updated eight seconds later.
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: 2016-10-17 22:12:46
[2016-10-18 03:30:22]
xfighter - Posts: 36
Thanks a lot for the response!
So my understanding is that it is the newly released IB traderworkstation that cause the problem. Until they correct the problem, I should avoid using my algo on IB platform any more.
Am I right?

Thank you!
[2016-10-18 03:59:33]
Sierra Chart Engineering - Posts: 104368
Apparently that is the case. All that we know is that the Total Filled Quantity in an execution message is set at 0. You should do testing on the previous version of trader workstation and if that works fine, then continue with that.
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: 2016-10-18 04:08:06

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

Login

Login Page - Create Account