Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Losing connection to NT

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

    Losing connection to NT

    While running strategies, I will randomly lose connection to NT. I get the messages: "Connection lost to NinjaTrader Historical Data Server", "Live: Unable to re-establish connection (panic)". My computer maintained internet connection throughout this, this is on the NT side. This is ridiculous, why is this happening?

    #2
    Hello samish18 ​,

    Thank you for reaching out.

    This most commonly occurs when NinjaTrader is unable to properly communicate with the servers due to it being blocked by another program, or there is an issue in the path between your computer and the appropriate servers.

    Please check for software such as (corporate) firewalls, spyware and anti-virus software that could be blocking NinjaTrader.
    In some cases the modem/router has built-in software that prevents the connection to be established.

    It is common with a software update, for Windows Defender to block the app again, so please make sure exceptions for NT8 are added to any anti-virus or firewall you may have.

    To resolve this, I recommend the following steps (test for the issue after each step):
    • Restart your modem and (if applicable) router
    • Restart your PC
    • Also, ensure that your computer is not turning off your Network Adapter to conserve power:
      • Restart NinjaTrader
      • 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
    • Clear your DNS
    • If you are using a VPN, please turn it off and try connecting again.
    • If possible, try running your computer directly to your router/modem using an ethernet cable, or vice versa, through a WiFi connection if already hard-wired in
    • Ensure exceptions have been added into any firewall/antivirus/backup programs for these folders:
      • C:\Users\<your username>\Documents\NinjaTrader 8
      • C:\Program Files \NinjaTrader 8
    • 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.


    Please let me know if you are still experiencing the same after following these steps.​
    Erick P.NinjaTrader Customer Service

    Comment


      #3
      I was able to reconnect manually without issue. This is a recurrent issue - the platform disconnects (no other program is running) and has to be reconnected manually

      Comment


        #4
        Originally posted by samish18 View Post
        I was able to reconnect manually without issue. This is a recurrent issue - the platform disconnects (no other program is running) and has to be reconnected manually
        Are you running it on home computer or on ninjamobiletrader (this fixed the recurrent issue for me)

        Comment


          #5
          Originally posted by backtester831 View Post

          Are you running it on home computer or on ninjamobiletrader (this fixed the recurrent issue for me)
          Running on a VPS

          Comment


            #6
            Originally posted by samish18 View Post

            Running on a VPS
            In that case you should send them ninjamobiletrader a message because I haven't had a disconnection since using them so they should fix it for you too. I know they provide help with NinjaTrader itself because they help me with debugging my ninjascripts

            Comment


              #7
              Hello samish18 ​,

              Thank you for reaching out.

              Since you are using a VPS, troubleshooting connection losses to a VPS are much more difficult to troubleshoot for us, than if you were using a Local PC with your own Internet connection.

              As backtester831​ has mentioned, there are VPS alternatives that help mitigate connection losses, but again, it depends on the VPS you are using.

              In any case, I would like to further clarify why Connection losses are actually a network to broker server issue, rather than an actual NT8 platform issue.

              We realize that lost connections can be frustrating. A connection state between NinjaTrader and your broker/market data vendor is not dictated by NinjaTrader. 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 API reports this to the NinjaTrader application which in turn reports this back to you.

              The first thing I would recommend doing is shutting down NinjaTrader and restarting your modem/router.

              If you have an antivirus/firewall installed you will want to add NinjaTrader to its exceptions list.
              Common reasons that contribute to connection stability are:
              • ISP issues
              • Hardware firewall changing IP addresses frequently
              • Dynamic IP addresses changing frequently intraday. This usually 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.
              • Broker/market data servers may be experiencing temporary downtime
              I have also provided additional steps you may take to troubleshoot your connection losses:
              • Ensure that your computer is not turning off your Network Adapter to conserve power:
                • Restart NinjaTrader
                • 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
              • Clear your DNS
              • If you are using a VPN, please turn it off and try connecting again.
              • If possible, try running your computer directly to your router/modem using an ethernet cable, or vice versa, through a WiFi connection if already hard-wired in
              • Ensure exceptions have been added into any firewall/antivirus/backup programs for these folders:
                • C:\Users\<your username>\Documents\NinjaTrader 8
                • C:\Program Files \NinjaTrader 8
                  • 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.​
              ​Since you are using a VPS you may want to reach out to your provider for any troubleshooting they can provide.

              Please let us know if we may be of further assistance.
              Erick P.NinjaTrader Customer Service

              Comment


                #8
                Wow , really?... This has been an ongoing issue for the longest. I even switched ISP companies and computers; I had many service techs come out to try to troubleshoot with the issue still happening. I will try this. Hopefully this will work. I did have two Network Adaptors on power savings. Thanks for the post Ninja Trader_Eric / Samish18.

                Comment


                  #9
                  Originally posted by NinjaTrader_Erick View Post
                  Hello samish18 ​,

                  Thank you for reaching out.

                  This most commonly occurs when NinjaTrader is unable to properly communicate with the servers due to it being blocked by another program, or there is an issue in the path between your computer and the appropriate servers.

                  Please check for software such as (corporate) firewalls, spyware and anti-virus software that could be blocking NinjaTrader.
                  In some cases the modem/router has built-in software that prevents the connection to be established.

                  It is common with a software update, for Windows Defender to block the app again, so please make sure exceptions for NT8 are added to any anti-virus or firewall you may have.

                  To resolve this, I recommend the following steps (test for the issue after each step):
                  • Restart your modem and (if applicable) router
                  • Restart your PC
                  • Also, ensure that your computer is not turning off your Network Adapter to conserve power:
                    • Restart NinjaTrader
                    • 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
                  • Clear your DNS
                  • If you are using a VPN, please turn it off and try connecting again.
                  • If possible, try running your computer directly to your router/modem using an ethernet cable, or vice versa, through a WiFi connection if already hard-wired in
                  • Ensure exceptions have been added into any firewall/antivirus/backup programs for these folders:
                    • C:\Users\<your username>\Documents\NinjaTrader 8
                    • C:\Program Files \NinjaTrader 8
                  • 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.


                  Please let me know if you are still experiencing the same after following these steps.​
                  Yes this is still happening to me. Please DON'T use me as a beta tester.
                  Last edited by Joshua 1:8; 12-13-2024, 09:45 AM.

                  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