• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Trader Position Does Not Match Account

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

    Chart Trader Position Does Not Match Account

    I was trading on a chart using the Chart Trader. You can see that my entry positions and Exit Positions shown on the attached chart. Prior to the start of that trade I was Flat. At the end of that trade I was also Flat. But as you can see, the position reported in Chart Trader shows that I am still Short 2 contracts which is incorrect. These trades were placed using an Interactive Brokers account. I can look at the IB TWS and see that the position was in fact closed. I am using NT7.0.1000.10 since 11 is still in testing with IB accounts. I am using IB TWS 921.5.

    I have 2 questions:
    1) Is there a setting that prevents this problem from occurring?

    2) Is there an Event that I can trigger using C# code to force the Chart Trader to refresh its information with my broker? Note, I would assume this would be unsupported, but
    a) I want to know if it is possible, and
    b) I am hoping one of the other experienced programmers on the forum may have a code snippet where they've already done this.
    Attached Files

    #2
    Hello,

    Was this a live account or a paper account?

    How many accounts do you have connected to NinjaTrader associated with TWS? Is there more than one account connected?
    MatthewNinjaTrader Product Management

    Comment


      #3
      Yes, it is a Live Account. And I have several account connected through the Adviser account. The trade was placed in one of the managed accounts.

      Comment


        #4
        Hello,

        Thank you for the clarification.

        TWS will only send position updates to one account at a time. When using multiple accounts, you may see where the position is not updated for a few minutes. TWS takes a round robin approach to update these accounts and should update these eventually.

        There is no way that I know of to force the position update through custom code. The only way to force the position update for all accounts is to disconnect and reconnect to TWS.

        Please let me know if you have additional questions.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Papercut110, Yesterday, 09:08 PM
        0 responses
        4 views
        0 likes
        Last Post Papercut110  
        Started by iq200, 11-09-2019, 08:26 AM
        5 responses
        56 views
        0 likes
        Last Post koganam
        by koganam
         
        Started by johng964, Yesterday, 02:57 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Started by spamula, Yesterday, 03:00 PM
        2 responses
        16 views
        0 likes
        Last Post spamula
        by spamula
         
        Started by MARTIN MARTIN, Yesterday, 01:01 PM
        0 responses
        16 views
        0 likes
        Last Post MARTIN MARTIN  
        Working...
        X