Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Network connection/disconnection

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

    #31
    JF, thanks for the file and timestamp info when you had the issue - would you mind retesting with a fresh database and newly setup Kinetick account connection and then see if you could still reproduce it along with those trace entries?

    1. Remove your current Kinetick account connection via Tools > Account Connections
    2. Exit NT7 and go to the Documents > NinjaTrader 7 > DB folder
    3. Rename NinjaTrader.sdf to NinjaTraderOld.sdf
    4. Restart NT7 and recreate the Kinetick account connection
    5. Then rerun your scripts and recheck the situation seen after a connection loss

    Thanks much,
    BertrandNinjaTrader Customer Service

    Comment


      #32
      Good morning,

      I tried that with the firewall and the anitivirus turned off but it's off again.
      The trace and log file are like the others.
      So, i ask again is there a method which is called even if the datastream is frozen(obviously all the OnSomething() aren't called in this case)?

      JF

      Comment


        #33
        I've put try/catch and lock everywhere but no luck.
        What sort of custom eventhandler could i use?

        Comment


          #34
          How could i override your eventhandler?

          Comment


            #35
            JF, the only method tracking the connection events would be OnConnectionStatus().

            Does the trace file contain lines like the below again?

            ERROR: Kinetick.Adapter.L2Worker: address='': System.Net.Sockets.SocketException: Aucune connexion n'a pu être établie car l'ordinateur cible l'a expressément refusée 66.112.156.212:60001
            BertrandNinjaTrader Customer Service

            Comment


              #36
              I got that today:

              2011-08-18 15:19:44:296 Connection to NinjaTrader data server lost: System.Net.Sockets.SocketException: Une connexion existante a dû être fermée par l'hôte distant
              at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
              at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
              at NinjaTrader.Server.Client.Receive()
              at NinjaTrader.Server.Client.Loop()
              2011-08-18 15:19:44:296 ERROR: Connection to NinjaTrader historical market data server lost: Une connexion existante a dû être fermée par l'hôte distant
              2011-08-18 15:19:54:296 Server.Client.Loop0-5: 64.202.118.179/31654
              2011-08-18 15:20:46:406 Server.Client.Loop0-6: 64.202.118.179/31654
              2011-08-18 15:20:46:703 Server.Client.Loop1-6


              and that yesterday:

              2011-08-17 15:53:48:484 Connection to NinjaTrader data server lost: System.Net.Sockets.SocketException: Une connexion existante a dû être fermée par l'hôte distant
              at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
              at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
              at NinjaTrader.Server.Client.Receive()
              at NinjaTrader.Server.Client.Loop()
              2011-08-17 15:53:48:562 ERROR: Connection to NinjaTrader historical market data server lost: Une connexion existante a dû être fermée par l'hôte distant
              2011-08-17 15:53:58:562 Server.Client.Loop0-4: 64.202.118.179/31654
              2011-08-17 15:53:58:890 Server.Client.Loop1-4

              Comment


                #37
                JF, this error would be different then compared to the prior ones - here you lost connection to the historical data servers, this error message typically is caused by either faulty network hardware loosing packets for example or security software / router firewall settings preventing a successful connection.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cutzpr, Today, 08:54 AM
                0 responses
                2 views
                0 likes
                Last Post cutzpr
                by cutzpr
                 
                Started by benmarkal, Today, 08:44 AM
                0 responses
                2 views
                0 likes
                Last Post benmarkal  
                Started by Tin34, Today, 03:30 AM
                2 responses
                21 views
                0 likes
                Last Post Tin34
                by Tin34
                 
                Started by sastrades, Yesterday, 09:59 AM
                2 responses
                33 views
                0 likes
                Last Post brucerobinson  
                Started by ETFVoyageur, Today, 12:52 AM
                1 response
                18 views
                0 likes
                Last Post Leeroy_Jenkins  
                Working...
                X