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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            174 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            329 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            252 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            356 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            182 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X