Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Network connection/disconnection

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

    Network connection/disconnection

    Hi,

    If i have a network disconnection, nt will remain "connected"(lower left) but the market data stream will stay where it was.(Same if i close the laptop for example).
    I use nt 7.0.1000.6 multibroker with kinetick and windows 7.
    Is there a setting in nt or win7 to get around the problem.

    Regards

    JF

    #2
    Sorry, meant:

    If i have a network disconnection, nt will remain "connected"(lower left) but the market data stream will stay where it was after the network reconnects.

    Comment


      #3
      Hello JF,

      Can you please try to disconnect manually via Control Center-->File-->Disconnect. If this will work, please connect again via Control Center-->File-->Connect once the network is connected.

      If you cannot disconnect manually, I suggest to restart NinjaTrader. Manually connect again once the network is connected.
      JasonNinjaTrader Customer Service

      Comment


        #4
        Jason,

        That's what i have to do. Thing is, it will clear the charts and all the level2 stuff will be gone, not to mention the time lost(no historical level2).
        I understand this is not the kind of issue documented hence supported.
        Maybe someone knows how to check programmatically if nt is receiving a stream and if not get it running disconnect/reconnect.

        Regards
        JF

        Comment


          #5
          without disconnect/reconnect.

          Comment


            #6
            Jason,

            Is it possible to add to the nt database(the historical of a single instrument) another dataseries?(Sort of increasing the table size)

            Regards
            JF

            Comment


              #7
              Hello JF,

              Unfortunately, it is not supported to modify the database file.

              You can import historical data manually using the instructions at the link below.
              JasonNinjaTrader Customer Service

              Comment


                #8
                Jason,

                If the data stream is broken but nt still connected, with"MarketDepthEventArgs e":
                will e.Error or e.NativeError report something.
                Will OnBarUpdate, OnMarketData, OnMarketDepth will cease to be called?
                Apart these three methods, is there another one still running and which one?

                TheMasterMethod()
                {
                .....
                if( theLastDataStreamTimeStampLooksOld() )
                Initialize();
                .....
                }

                Regards
                JF

                Comment


                  #9
                  JF, I would suggest you should check for these connection related events in the OnConnectionStatus in NT, it will report for both the price and order server connection parts a connection could have.

                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    Thanks Jason

                    Comment


                      #11
                      It says:
                      "OnConnectionStatus(...,...) no suitable method found to override".
                      OnConnectionStatus is documented for strategies. Anyway to have it working in indicators?

                      JF

                      Comment


                        #12
                        Unfortunately this is only available in a strategy as it would monitor the connection events where the strategy traded account is tied to.
                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Thanks Jason

                          Comment


                            #14
                            Hello,

                            If i include in a strategy:
                            protected override void OnConnectionStatus(ConnectionStatus orderStatus, ConnectionStatus priceStatus)
                            {
                            Print(priceStatus.ToString());

                            }

                            I have:
                            Connected
                            Connected

                            Is OnConnectionStatus called just once?!

                            Comment


                              #15
                              Hi JF, you print only the priceStatus here but the connection status can rely on two connections internally actually (price / order connection).
                              BertrandNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by lightsun47, Today, 03:51 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post lightsun47  
                              Started by 00nevest, Today, 02:27 PM
                              1 response
                              8 views
                              0 likes
                              Last Post 00nevest  
                              Started by futtrader, 04-21-2024, 01:50 AM
                              4 responses
                              41 views
                              0 likes
                              Last Post futtrader  
                              Started by Option Whisperer, Today, 09:55 AM
                              1 response
                              13 views
                              0 likes
                              Last Post bltdavid  
                              Started by port119, Today, 02:43 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post port119
                              by port119
                               
                              Working...
                              X