Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hi, Got this error when trying to disconnect from IBKR. Should I be concerned?

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

    Hi, Got this error when trying to disconnect from IBKR. Should I be concerned?

    1/11/2022 2:57:28 PM Default Error in closing connection My Interactive Brokers, exception caught: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.Gui.Chart.ChartBars.<>c__DisplayClass6 9_0.<LoadExecutionsByAccount>b__1(Instrument i) at System.Linq.Enumerable.WhereEnumerableIterator`1.M oveNext() at System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at NinjaTrader.Gui.Chart.ChartBars.LoadExecutionsByAc count(ChartBars chartBars, Account account, ChartControl chartControl) at NinjaTrader.Gui.Chart.ChartBars.CollectExecutions( ChartControl chartControl) at NinjaTrader.Gui.Chart.ChartControl.OnConnectionSta tus(Object sender, ConnectionStatusEventArgs e) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeIn ternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at NinjaTrader.Cbi.Connection.ConnectionStatusCallbac k(ConnectionStatus status, ConnectionStatus priceStatus, ErrorCode errorCode, String nativeError) at NinjaTrader.IB.Adapter.Disconnect() at NinjaTrader.Cbi.Connection.<>c__DisplayClass18_0.< ConnectionStatusCallback>b__6()

    #2
    Hello kaywai,

    Can you please tell me if you experience the error consistently each time you disconnect your Interactive Brokers connection in the NinjaTrader platform.

    Do you use TWS or Gateway and what version do you have installed?

    Comment


      #3
      Hi Jason,

      I only got this message once. After I closed and reopened NT8, it was fine.

      I use TWS 981.3g.

      Regards
      ​​​​​​​Kay Wai

      Comment


        #4
        Thank you for clarifying.

        If the error recurs in the future, please let me know and check for any consistency with today's occurrence.

        Comment


          #5
          Hi Jason,

          Should I upgrade TWS from g to h version?

          Regards
          Kay Wai

          Comment


            #6
            Yes, you can download and install TWS 981.3h from the Interactive Brokers connection guide at the link below. You can find it under 'Requirements'.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            64 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            40 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            166 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            101 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            162 views
            2 likes
            Last Post CaptainJack  
            Working...
            X