Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Position not correct v IB TWS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    Thanks

    #2
    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​

    Comment


      #3
      Hi,

      I am on the recommended version of TWS.

      What if I have more than one strategy enabled on an instrument, Strategy A might be flat in reality but showing long where as strategy B is long and correctly showing long?

      Comment


        #4
        Hello, thanks for the follow up. Running two strategies on the same instrument is not recommended for this very reason. The strategies should be combined into one strategy so they do not trade against each other.

        Kind regards,
        -ChrisL​​

        Comment


          #5
          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


            #6
            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


              #7
              Ok, i'll try that thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, 03-13-2026, 05:17 AM
              0 responses
              89 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              152 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              80 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              53 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              63 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X