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?
    JasonNinjaTrader Customer Service

    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.
        JasonNinjaTrader Customer Service

        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'.
            JasonNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by zstheorist, Today, 07:52 PM
            0 responses
            3 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            149 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            5 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            5 views
            0 likes
            Last Post tkaboris  
            Working...
            X