• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


Permanent Connection loss

  • Filter
  • Time
  • Show
Clear All
new posts

    Permanent Connection loss


    I have a problem with my NT platform and Kinetick data feed.
    During the day, there has been a permanent Connection loss - starting at 07:05:44:720 local time (Timestamp from trace file) and creating a new log entry every second for established connection followed by another connection loss.

    Trace file can be sent but is about 50MB big - all fileld up with connection loss and established messages.

    This is not the first time this happened and it did on various computers. What to do?

    There are many Kinetick users who do not experience this symptom, and I am not experiencing this symptom when I test a Kinetick connection, so we'll need to find out more about what is causing this symptom on your end. We may need to take this conversation to email so we may gather your log and trace files, but we may be able to gather some useful information on the forums.

    What version of NinjaTrader 7 are you using? Please provide the entire version number. This can be found under Help -> About (Example: 7.0.1000.X)

    Is there any way to 'resolve' this symptom? For example, what occurs if you restart your PC?

    You mention this occurs on 'various computers'. Do all of these computers use the same source of internet? If so, are they all on WiFi or are they hardwired?

    Has any general network troubleshooting been performed so far? Here are some great steps to take when experiencing symptoms like these:
    • Restart NinjaTrader
    • Restart your modem and (if applicable) router
    • Restart your PC
    • Clear your DNS
    • If you are not already and the option is available to you, connect to the internet using an ethernet cable. Wireless connections are significantly more unreliable.
    • Ensure exceptions have been added into any firewall/antivirus/backup programs for the Documents > "NinjaTrader 8" folder.
    • If the above steps do not help, contact your ISP and let them know you are experiencing a highly unstable connection. An issue of connectivity may exist on their end.
    Patrick G.NinjaTrader Customer Service


      Hello Patrick!
      Thanks for your reply.

      Here is some more information you requested.

      NT version: 7.0.1000.35
      To temporarilly resolve the problem, I disconnect the data feed and then connect again. Connection then is established and stable for a while, even if connection problems have occurred all the time until the disconnect. From the trace file, it seems to me (being software developer for about 20 years now) that there may be a problem in the Kinetick.Adapter.L1Worker process. It looks like it got some kind of "hickup" or has problems to find to a stable state.

      The problem occurs on different computers, all running Windows 7 but with different internet connections. "Main" problem computer is connected to T1 via cable, second (where the problem doesn't occur that often) uses mobile internet with UMTS/HSDPA data stick. Internet connection is available without interruption all the time even if connection problems show in NT log window.

      If further information is needed, feel free to ask. I also can provide all files necessary for troubleshooting.


        I see that you're running an older and unsupported version of NinjaTrader 7. Are all PCs running older versions of NinjaTrader 7? The current version is 7.0.1000.40.

        The newer version contains many critical updates to the database. Please update NinjaTrader 7 and reset your instruments:

        First, to update NinjaTrader, please follow the steps below:
        • First get your license key from NinjaTrader under Help> License Key then exit NinjaTrader
        • Click on the link: http://ninjatrader.com/PlatformDirect
        • Enter your license key and press Submit
        • Select 'NinjaTrader 7'
        • Select 'Download'
        • Critical: Before running the installer, ensure NinjaTrader is closed.
        Lastly, to reset your instruments, please follow the steps below:
        • Disconnect from your data feed: NinjaTrader Control Center> File> Disconnect> Select your data feed
        • Reset your Instruments: NinjaTrader Control Center> Tools> Options> Data tab> Reset Instruments>OK
        • Restart NinjaTrader> Connect (NinjaTrader Control Center> File> Connect> Select your connection
        Please let me know if issues persist after these steps.
        Patrick G.NinjaTrader Customer Service


          Hello Patrick!

          Thanks, will do. Maybe it will solve the problem.


            Hello Patrick!

            Today it happened again. I also added some logging functionallity to my Strategy so it checks internet connection at every data feed connection loss. As expected, internet connection still has been available, the Strategy was able to send data to a remote server where it also has been logged.

            So it has to be a problem within NinjaTrader that causes this "hickup" on data feed connection loss.
            I attached log file and trace file from today.

            log.20190207.txt trace.20190207.txt
            Last edited by NinjaTrader_PatrickG; 02-07-2019, 09:19 AM.


              I've downloaded and then removed your log and trace files. In the future, DO NOT share these files publicly. They may contain sensitive information. If you want to share your log/trace files, please contact us via email so that we will be the only ones with access to the information.

              NinjaTrader and data feeds are extremely sensitive to loss of quality of connection. Disconnects in NinjaTrader may occur even when all other aspects of the internet appear to be working. For example, you may be able to watch a YouTube video while having internet quality issues (because that information can buffer) but NinjaTrader would likely report a disconnect.

              I do see that you frequently lose connection to Kinetick. Here is one example from your files:
              07.02.2019 05:00:39|1|2|Kinetick: Primary connection=ConnectionLost, Price feed=ConnectionLost

              I believe i've found your strategies connection loss print in the log as well:
              07.02.2019 05:00:43|1|4|06.02.2019 17:54:00 FDAX - CONNECTIONSTATUS - Order Status: ConnectionLost
              07.02.2019 05:00:43|1|4|06.02.2019 17:54:00 FDAX - CONNECTIONSTATUS - Price Status: ConnectionLost

              What exactly is your strategy testing to confirm connectivity?

              Patrick G.NinjaTrader Customer Service


                Hello Patrick!
                The Strategy is a "normal" trading Strategy with additional Server communication to log every trade. I added the OnConnectionStatus() function and there send additional log entries every time connection status changes.
                Within OnConnectionStatus(), the Strategy sends a HTTP web request to the Server using WebRequest class.

                What I think is strange is that when connection is lost, it is established immediately again and then lost again. This loop seems to continue for quite long. In the trace file, you can see it started at 2019-02-07 17:00:39:151 and then connected and lost connection within about 0.5 seconds each until 17:01:42:443 when I manually disconnected and reconnected again - which then worked as it always does.


                  I'd recommend using the IQFeed adapter with your Kinetick credentials to see if this mitigates the connection issue:

                  Patrick G.NinjaTrader Customer Service


                    OK will do. Thank you for your assistance!


                    Latest Posts


                    Topics Statistics Last Post
                    Started by barbic, Today, 03:01 AM
                    0 responses
                    Last Post barbic
                    by barbic
                    Started by GARZONJ, Yesterday, 11:22 PM
                    0 responses
                    Last Post GARZONJ
                    by GARZONJ
                    Started by GARZONJ, Yesterday, 09:41 PM
                    0 responses
                    Last Post GARZONJ
                    by GARZONJ
                    Started by mike09, Yesterday, 07:37 PM
                    0 responses
                    Last Post mike09
                    by mike09
                    Started by bebbus, Yesterday, 04:03 PM
                    3 responses
                    Last Post bebbus
                    by bebbus