Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 21:52:17 +0000



Desynchronization between SierraChart and IB TWS

View Count: 1003

[2017-08-18 14:15:29]
User287992 - Posts: 51
Hello,

TLDR: Sierra showed position +9 without regard to TWS (which reported 0, -9, -18, etc) or any flattening action.

we had critical synchronization problem between SC 1590 and TWS. We have exited position by strategy but it reappeared in SC (TWS reported position 0). We have flattened it manually but position kept reappearing and we were forced to disconnect SC because of this issue that resulted in a huge reverse position (not showed in graph).

This is pretty bad situation and bug for us so we would like to know why did it happen or how to prevent it. Please see logs related to situation.

Thank you.
Private File
attachmentTradeActivityLog18.8.2017.txt - Attached On 2017-08-18 14:04:47 UTC - Size: 11.18 KB - 276 views
attachmentTradesList18.8.2017.txt - Attached On 2017-08-18 14:04:51 UTC - Size: 5.15 KB - 262 views
[2017-08-18 19:05:04]
Sierra Chart Engineering - Posts: 104368
This kind of problem is not unusual with Interactive Brokers Trader Workstation. For a related problem, refer to:
Interactive Brokers Trading Service: Trade Position Line or Quantity Disappearing or Displaying Zero

If you are using the Order Fill Calculated Trade Position quantity, then disable that. If you are not using that, then you should enable it.

Refer to:
Trading Information Windows: Using Order Fill Calculated Positions In Special Cases
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: 2017-08-18 19:05:31
[2017-08-20 15:58:56]
Sierra Chart Engineering - Posts: 104368
Thinking about this some more, if you are using the Order Fill Calculated Trade Position Quantity, then make sure you set a Start Date-Time for the order fills load into the chart:
Chart Settings: Order Fills Start Date-Time (Chart >> Chart Settings >> Trading menu)

This will greatly lessen the likelihood of a problem.
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: 2017-08-20 15:59:07
[2017-08-21 13:42:15]
User287992 - Posts: 51
1) I checked these settings as you recommended:

Make sure Trade >> Use Fill Calculated Positions-Global is disabled/unchecked.
Make sure Trade >> Trade Simulation Mode is disabled/unchecked.

This is set correctly.

I wasnt using Order Fill Calculated Trade Position quantity before, so i tried enable it. I also set Date format in Chart >> Chart Settings >> Advanced Settings.

Suddenly when i enabled the option "Order Fill Calculated Trade Position quantity", Sierra chart was showing opened position 5 contracts, i attached screenshot. I had no opened postion with 5 contracts in TWS at this moment. On another attempt it opened 5 contracts short, which I was unable to close with flatten and cancel in Sierra, so I had to do it in TWS. This does not happen with paper account. This insta-open of a position happens every time I switch this setting on/off. Any ideas about this one?

2) What is really frustrating, i was trying "Flatten and Cancel" all position in chart and i reversed position several times instead closing. How it can be possible? So i had to do it via TWS.

3) I was trading with 2 IB accounts (one master, one sub account) on one computer. I had two same positions in 2 IB accounts and 2 Sierra chart platforms. This problem is related with master account. Sub account connected to second sierra chart was correct. The same settings in Sierra charts and TWSs. Have you any idea please ?
EDIT: 3) Might be solved, since there were not any Instance Client IDs in any of my sierra chart instances. It is there now, so I hope that could solve it.
Date Time Of Last Edit: 2017-08-22 07:48:52
imageOpen position after enabling Order Fill Calculated Trade Pos.png / V - Attached On 2017-08-21 13:28:34 UTC - Size: 152.21 KB - 240 views
[2017-08-24 12:15:38]
User287992 - Posts: 51
Hello guys, we would really appreciate your statement on this issue. We are trading live lot of contracts and we are under high risk. We ve probably solved problem number 3, but its still our guess and we just wait for some issue.

Problems 1 and 2 are not still solved and we can't handle out on our own.
[2017-08-24 14:26:19]
Sierra Chart Engineering - Posts: 104368
1.
Suddenly when i enabled the option "Order Fill Calculated Trade Position quantity", Sierra chart was showing opened position 5 contracts,
If you are currently flat at this time, you will need to set the Order Fill Start Date-Time in Chart Settings, to a time which is after the current time. Going forward it should accurately track your position, assuming that there are no missed or inaccurate order fills.

. On another attempt it opened 5 contracts short, which I was unable to close with flatten and cancel in Sierra, so I had to do it in TWS.
Why do you say this? If a chart is showing a nonzero Trade Position quantity, Flatten from that same chart will send a market order to flatten.


2.

2) What is really frustrating, i was trying "Flatten and Cancel" all position in chart and i reversed position several times instead closing. How it can be possible? So i had to do it via TWS.
Assuming we understand what you are saying, this does does make sense if the Order Calculated Position is inaccurate. And you need to fully understand how it works.

Refer to:
Trading Information Windows: Using Order Fill Calculated Trade Positions

3. Are you using a financial advisor account?
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: 2017-08-24 14:28:12

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

Login

Login Page - Create Account