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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            60 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            39 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            21 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            23 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            51 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X