Login Page - Create Account

Support Board


Date/Time: Wed, 01 Jan 2025 13:23:48 +0000



Error: "Synchronized Internal Position to current Service Position. Current Position qua..

View Count: 14492

[2016-05-05 22:35:26]
Sierra Chart Engineering - Posts: 104368
We are looking all of this more recent information over.

Make sure your current telephone number is set here:
https://www.sierrachart.com/usercp.php?page=ManageAccountInfo

And would you be available around 6 p.m. or later today?
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-05-05 22:35:36
[2016-05-05 23:07:46]
User713273 - Posts: 409
Is the most recent source code needed and should I send to support @ sierrachart.com?
[2016-05-06 00:30:18]
Sierra Chart Engineering - Posts: 104368
No we do not need the source code at all.
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-05-06 00:35:41]
User713273 - Posts: 409
Ok information is current, give me a call whenever.
Date Time Of Last Edit: 2016-05-06 00:35:52
[2016-05-06 00:37:20]
Sierra Chart Engineering - Posts: 104368
Just about 15 more minutes.
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-05-06 01:25:38]
User713273 - Posts: 409
File
Private File
[2016-05-06 05:45:10]
Sierra Chart Engineering - Posts: 104368
We are sending this log file to Interactive Brokers.
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-05-06 15:28:48]
Sierra Chart Engineering - Posts: 104368
Based upon the following request from Interactive Brokers you will need to reproduce the problem again unless you can provide the log files requested.

We recommend not using your automated trading system but simply open a chart for the particular option symbol you are trading, on your live account. Submit an order for that option symbol. When there is a fill and you see the Trade Position Quantity return back to 0, you can then send the log files requested.

Carefully review the following information from Interactive Brokers:
For further investigation, we would also need to have full detailed TWS log file from a customer. To generate this log:

1. Make sure to be using the Latest TWS version: https://www.interactivebrokers.com/en/index.php?f=16040
2. From File -> Global Configuration -> API -> Settings set the Logging Level to DETAIL
3. Replicate the issue where position returns 0
4. From TWS execute Ctrl + Alt + U to see the path where the log file is located, copy it
5. Navigate to the copied path and locate the log file, called tws.log.txt (additionally we would also require the API log, same as you have already provided)

Please send us these log files for further investigation.

It would also be very helpful if a client could check the Account Window (Account -> Account Window) in the TWS during the time when he's receiving 0 values for positions. The position information is taken from this window. If possible, please also attach a screenshot of this window at time of request.

You can privately attach the requested files here and we will send them to them.
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-05-06 18:05:49]
User713273 - Posts: 409
Per your request, bought to open symbol AAPL-OPT-20160513-92-P-100-USD @ 10:48:31 AM PST. Attached API Log, TWS Trade Log & Account Window screenshot.

Also for your reference I attached the corresponding SC Trade Activity Log.

Thanks, Adam
Date Time Of Last Edit: 2016-05-06 18:14:19
Private File
Attachment Deleted.
Private File
Private File
[2016-05-06 21:54:25]
User713273 - Posts: 409
TWS Trade Logging also referenced if needed.
image2016-05-06_twslog.png / V - Attached On 2016-05-06 21:53:55 UTC - Size: 64.03 KB - 312 views
[2016-05-07 19:27:16]
User713273 - Posts: 409
Hi,

I also want to send over the API Log File & TWS Log File from last Wednesday, this is relevant as it shows the cancellation request from SC and also might give more insight into what is truly happening on the IB API side of things. Also attached corresponding SC Trade Activity Log & Message Log below.

I do wonder if the second "Order sent" (which is bolded below) might cause a disruption in the quantity amount IB API is reading causing the quantity result to then come back to 0. Just a thought. Result Position was added for logging purposes to track our position, it was only added as an aide.

Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position -1 0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | New entry, Last Reset Price -1.00, Gap Price 0.18, last Call Put 2 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Chart Number 7 AAPL-OPT-20160506-94-C-SMART-100-USD | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Chart Index 2 AAPL-OPT-20160506-94-C-SMART-100-USD 1 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Buy Symbol Name AAPL-OPT-20160506-94-C-SMART-100-USD Qty 1, Entry Price 94.19 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Order sent, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Price 94, Option Price -1.00, Underlying price Price 94.19,Entry Order No 69772 order time 2016-5-4 11:25:0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Entry price of market order 0.750000 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Order sent, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Price 94, Option Price 0.75,Target 0.83, Stop 0.67, TP Order No 69774 SL Order No 69773, TP Order res 1 SL Order res 1 order time 2016-5-4 11:25:0 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:36
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:36
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:37
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:37
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:38
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:38
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:39
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:39
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:40
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:40
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:41
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:42
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:42
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Position closed, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Underlying Entry Price 94, Reset Price -1.00, order time 2016-5-4 11:25:0 | 2016-05-04 11:25:43
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 0 | 2016-05-04 11:25:43

Thanks again and feel free to reach out for anything.
Attachment Deleted.
Attachment Deleted.
Private File
Private File
[2016-05-09 09:25:42]
Sierra Chart Engineering - Posts: 104368
Thank you. We are going to send this information to Interactive Brokers before Monday morning.

Just to be sure that we haven't overlooked anything, when you had a Position in the option symbol, did you look at the Trade >> Trade Orders and Positions >> Positions tab and see if the Trade Service Position Quantity was 0 for the Symbol?

The symbol you see there is truncated and not the complete symbol.

Here is additional information:
Interactive Brokers Trading Service: Trade Position Line or Quantity Disappearing or Displaying Zero
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-05-09 09:28:26]
Sierra Chart Engineering - Posts: 104368
Also, according to this:
https://www.sierrachart.com/Download.php?Folder=SupportBoard&download=7920

It appears as though the TWS did send the Position update, but the Position Quantity went back to 0, 2 minutes later.

So possibly Interactive Brokers is now going to claim there is no problem. Complete nonsense and incompetence.

The very fact that they are asking for so many different pieces of information just shows how disorganized they are.
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-05-09 09:31:08
[2016-05-09 15:35:54]
User713273 - Posts: 409
Just to be sure that we haven't overlooked anything, when you had a Position in the option symbol, did you look at the Trade >> Trade Orders and Positions >> Positions tab and see if the Trade Service Position Quantity was 0 for the Symbol?

I do not have this information, can do another test if needed, please let me know.

It appears as though the TWS did send the Position update, but the Position Quantity went back to 0, 2 minutes later.

As stated below, I ran a test not using Option Trader (our custom automated trading study), which in turn would not have the functionality of attached orders. In doing so the order would have to be manually exited, so in turn it reverted to 0 2 minutes later as that was when I manually exited the order at hand.

We recommend not using your automated trading system but simply open a chart for the particular option symbol you are trading, on your live account. Submit an order for that option symbol. When there is a fill and you see the Trade Position Quantity return back to 0, you can then send the log files requested.

Typically the Position Quantity reverts to 0, 7 - 8 seconds after entry and then the cancellation occurs of attached orders. (see attached)

So the basic premise of the issue is the cancellation occurs by SC due to the fact order quantity/position is not being relayed, I assume by IB.

Please let me know if anything is unclear. Thx Adam
Date Time Of Last Edit: 2016-05-09 16:38:24
imageimage (7).png / V - Attached On 2016-05-09 15:22:37 UTC - Size: 243.05 KB - 288 views
[2016-05-09 15:59:55]
User713273 - Posts: 409
Again, I do wonder if the second "Order sent" (which is bolded below) might cause a disruption in the quantity amount IB API is reading causing the quantity result to then revert back to 0 thus also causing the cancellation of the attached orders.

Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position -1 0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | New entry, Last Reset Price -1.00, Gap Price 0.18, last Call Put 2 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Chart Number 7 AAPL-OPT-20160506-94-C-SMART-100-USD | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Chart Index 2 AAPL-OPT-20160506-94-C-SMART-100-USD 1 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Buy Symbol Name AAPL-OPT-20160506-94-C-SMART-100-USD Qty 1, Entry Price 94.19 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Order sent, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Price 94, Option Price -1.00, Underlying price Price 94.19,Entry Order No 69772 order time 2016-5-4 11:25:0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 0 | 2016-05-04 11:25:33
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Entry price of market order 0.750000 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Order sent, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Price 94, Option Price 0.75,Target 0.83, Stop 0.67, TP Order No 69774 SL Order No 69773, TP Order res 1 SL Order res 1 order time 2016-5-4 11:25:0 | 2016-05-04 11:25:35
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:36
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:36
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:37
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:37
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:38
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:38
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:39
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:39
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:40
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:40
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:41
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:42
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 1 | 2016-05-04 11:25:42
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Position closed, Bar No 685 Symbol AAPL-OPT-20160506-94-C-SMART-100-USD Quantity 1 Underlying Entry Price 94, Reset Price -1.00, order time 2016-5-4 11:25:0 | 2016-05-04 11:25:43
Chart: AAPL [M] 1 Min #2 | Study: Option Trader | Result Position 1 0 | 2016-05-04 11:25:43
[2016-05-09 20:12:48]
User713273 - Posts: 409
Just to be sure that we haven't overlooked anything, when you had a Position in the option symbol, did you look at the Trade >> Trade Orders and Positions >> Positions tab and see if the Trade Service Position Quantity was 0 for the Symbol?

Ok I did another test and did not have any errors. Have attached Trade Activity Log and Trade Orders and Positions, both Order tab and Positions tab attached. The cancellation you see in Trade Activity Log occurs only when we get a reversal in direction of position, this has always been inputted in our source code and relates to our strategy.

Running Version 1406.

Besides updating to Version 1406 there have been no discernible changes that have been made. I'm still very unsure of why we had no errors today and all of last week, when tested we did.

Thanks again, Adam
imageimage (8).png / V - Attached On 2016-05-09 20:03:01 UTC - Size: 239.08 KB - 288 views
imageimage (9).png / V - Attached On 2016-05-09 20:03:10 UTC - Size: 158.18 KB - 252 views
imageimage (10).png / V - Attached On 2016-05-09 20:08:36 UTC - Size: 111.47 KB - 252 views
[2016-05-09 20:12:51]
User713273 - Posts: 409
IB Tws and API also attached here.
Private File
Attachment Deleted.
Attachment Deleted.
[2016-05-09 20:27:38]
Sierra Chart Engineering - Posts: 104368
Do not provide us any further information.

We are still thinking of the test procedure you need to run through in order for us to get the information needed.

Obviously the test you did, did not show the problem and we are not sure why.
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-05-09 20:49:05]
User99735 - Posts: 234
Hi,
As the problem does not occur in sim account, would suggest comparing the logs from sim with live account.

Regards

Vivek
[2016-05-10 09:57:19]
Sierra Chart Engineering - Posts: 104368
It is not our responsibility to be looking at these logs and we will not. There is nothing we can do ourselves with the Interactive Brokers log files. And we do not fully understand them anyway.

However, we already did look at one log but saw that there was a problem on the IB side.

Anyway this is what we want you to do:

Update Sierra Chart to the latest prerelease by following the instructions here:
https://www.sierrachart.com/index.php?page=doc/download.php#FastUpdate

We added some additional logging to more completely track positions. Once you duplicate the problem, provide the logs that Interactive Brokers has requested and also attach the Sierra Chart Trade Activity Log file following these instructions here:
https://www.sierrachart.com/index.php?page=doc/doc_TradeActivityLog.php#TradeActivityLogFileToSupport

And let us know the symbol, and time and time zone of when the problem occurred.
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-05-10 09:57:52
[2016-05-10 16:37:23]
User713273 - Posts: 409
Thanks. Updated to newest pre-release 1409. 2nd day in a row no issues have come about. Will test again tomorrow morning. Still wanted to get information to you as I know you've added logging.

Sierra Chart Trade Activity Log file attached.

Symbol - AAPL-OPT-20160513-94-C-SMART-100-USD & AAPL-OPT-20160513-93-P-SMART-100-USD
Time - 08:49:20:940 - 09:01:31:174
Time Zone - PST

Also I got this from IB Support.

Your log files have been received and reviewed.

The logs do show the cancel order requests being made by Sierra Charts on the problematic day 05/04. They also show that Sierra charts made a portfolio subscription request on 05/09 which resulted in streaming portfolio data being continuously returned on 05/09, but there is not such a request from the log section provided for 05/04. Presumably, the Sierra Charts software is interpreting the absence of data as evidence that there are no portfolio changes occurring, and this may be a source of issue.

To investigate further, can you please upload the complete log file from 05/04? If it is larger than 15 MB it will have to be zipped and emailed to api@interactivebrok ers.com.
Date Time Of Last Edit: 2016-05-10 17:21:20
Attachment Deleted.
[2016-05-11 15:14:24]
User713273 - Posts: 409
Hi - Curious if the root of the problem has been deemed "the Sierra Charts software is interpreting the absence of data as evidence that there are no portfolio changes occurring, and this may be a source of issue."

Have you yourself heard back from IB on this issue?

Thx Adam
[2016-05-11 16:52:19]
Sierra Chart Engineering - Posts: 104368
"the Sierra Charts software is interpreting the absence of data as evidence that there are no portfolio changes occurring, and this may be a source of issue."
We do not know what they mean and there is nothing for us at this point to be doing.

We have not done anything further on this until you reproduce the issue since our last posting at post #47.
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-05-11 16:54:28

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

Login

Login Page - Create Account