Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to re-establish the connection

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

    Unable to re-establish the connection

    Dear Sir.

    Generally, my router restarts 1time per week. In this moment i have configured NT8->Tools->Options->On connection loss:


    Click image for larger version

Name:	image.png
Views:	347
Size:	15.4 KB
ID:	1281139

    ​My problem is that after few minutes the connection is Unable to restablish the connection and Disconnect(Panic)

    Click image for larger version

Name:	image.png
Views:	312
Size:	172.6 KB
ID:	1281140


    I would like to reconnect the connection without stopping strategies.

    Thanks in advance.

    #2
    Hello memonic,

    A connection loss and a full disconnect are different.

    A connection loss will attempted to be re-established, and if it can will resume the strategy (based on the connection loss handling settings).

    However a full disconnection will not attempt to be re-established and will disable the strategy. Unfortunately, there is not a work around for this.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea.
      The problem continues and the software disconnects 2 - 3 times per month.
      The on connection loss properties are configured as follow:

      handling: keep running
      disconnect delay seconds : 24000
      number of restart attemps: 1000
      restart within x minutes: 1

      This will ensure that almost NT8 will attempt at least until 24000 seconds but normally fails and after 180 seconds disconect by panic.

      What is the correct configuration for these issues?

      Thanks in advance

      Comment


        #4
        Hello memonic,

        If the connection is disconnected, the connection will not be automatically re-established and the strategy will not re-enable.
        This only occurs for connection losses and does not occur for disconnections.

        That said, if this were a connection loss and not a disconnection the connection loss handling would not engage unless the connection loss was for 24000 seconds.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks Chelsea.
          But my internet not experience an internet disconnection
          Its a problem of the ninja server?
          Thanks

          Comment


            #6
            Hello memonic,

            This indicates that the "heartbeat" (ping) that is measured between your PC and the data provider / brokerage servers was lost in transmission. While other internet services may be functioning properly, such as loading webpages, this is a sign that the quality of the internet connection has degraded which introduces a latency between you and these servers.

            We realize that lost connections can be frustrating. A connection state between NinjaTrader and your broker/market data vendor is not dictated by the NinjaTrader Desktop application. The NinjaTrader application only reports the connection state as it is reported by the API you are connected through.

            NinjaTrader behaves like a radio receiver in that it receives signals from the connected server. If the signals are not coming through, the underlying broker/market data vendor connection adapter reports this to the NinjaTrader application which in turn reports this back to you. Once a loss of connection is reported, connection adapter will continuously try to re-establish a connection.

            NinjaTrader is sensitive to latency. While other applications are able to connect to the internet, it is still possible to receive disconnections if the connection has slowed. Many other applications do not receive a steady stream of data and do not require a steady connection and are not affected by latency.

            Common reasons that contribute to connection stability are:
            • Distance from local computer to the connection servers
            • Connection through a mobile hotspot (high latency)
            • Connecting through Wifi (connecting wirelessly contributes to latency)
            • Using a VPN (Virtual Private Networks may have a much lower bandwidth and will also contribute to latency)
            • ISP issues such as unstable latency
            • Hardware firewall changing IP addresses frequently
            • Dynamic IP addresses changing frequently intra-day.
              (Usually this happens once a week but you may want to check with your ISP. If they do change daily, requesting a static IP address may help.)
            ​To troubleshoot this, I recommend the following steps:
            • Unplug your internet modem, and (if a separate device) router for at least 60 seconds, and also restart the Computer
            • Ensure exceptions have been added into any firewall/antivirus/backup programs for the (My) Documents/NinjaTrader 8 folder
            • Ensure you are using the latest release of NinjaTrader
            • If you are not already and the option is available to you, I highly recommend connecting to the internet using an ethernet cable. Wireless connections are significantly more unreliable
            • Ensure that your computer is not allowed to sleep (enter standby) or hibernate
            • Ensure that your computer is not turning off your Network Adapter to conserve power:
              • Right-click on your Start button
              • Select 'Device Manager'
              • Expand 'Network Adapters'
              • Right-click on your Network Adapter and select Properties > Power Management
              • Uncheck 'Allow the computer to turn off this device to save power' option
              • Click 'OK' to save the changes
              • Do this for all Network Adapters
            • Disconnect from a VPN if connected (Virtual Private Network)
            • Clear your DNS
            • 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
            • If your ISP is unable to resolve the issue from there, consider looking into a Virtual Private Server (VPS) to run NinjaTrader on. This will provide a strong and uninterrupted connection to the appropriate data servers
            If questions come up, please let us know.​
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            55 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            37 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            17 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            19 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            49 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X