Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Position not correct v IB TWS
Collapse
X
-
Strategy Position not correct v IB TWS
Hi, I am just starting to trade with strategies I have written and I found a situation today where ninja trader thought I was long some qty of a stock when I was actually flat as per TWS which I take as the source of truth. To try and rectify this I tried to close the open position and as I now realize was the wrong thing to to this made me short the stock in TWS and flat in NT. In a situation where I have several strategies on several stocks and one strategy becomes confused, how do I best get that one strategy back in sync?
ThanksTags: None
-
Hello, thanks for writing in. Please first make sure you are running the supported version of TWS (not the latest version available from Interactive Brokers) Use the supported stable version (TWS 10.19.1c):
To sync a strategy you can go to the Strategies tab of the Control Center>Right Click>Syncronize All and this will get your account in sync with the strategy position, so it would take your account from flat to long only if the "Acct Position" column is not in sync with the "Position" column. Also, the Sync column will say false.
Kind regards,
-ChrisL
-
Hi, in Longer term that is my plan but short term i am running more than one. Is there a method that I can call to challenge the accuracy of an order fill data? The issue seemed to be that the Stop Market order fully filled in TWS but the order object in NT said filled but was actually underfilled. I think I could write some code in OnOrderUpdate to check the Order Qty versus the Filled Quantity and if they disagree is there a way to have NT check the filled qty with TWS again? Something like an order refresh method?
Comment
-
Hi, if the strategy is going out of sync and you need the strategy to adopt the account position it must be re-enabled manually using the "Adopt Account Position" start behavior.
Please see our guide here on how to enable this option in your strategy:
https://ninjatrader.com/support/help....htm#AdoptAcco untPosition
https://ninjatrader.com/support/help...taccountpositi onaware.htm
Kind regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
93 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
152 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
80 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
65 views
0 likes
|
Last Post
|

Comment