Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnConnectionStatus

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

    OnConnectionStatus

    Hi again.

    I want to check the connections state and have questions about.

    1. Wherein the different between orderStatus and priceStatus parameters of OnConnectionStatus() method?
    2. Can I control with OnConnectionStatus() two or more connections?

    Thanks.

    #2
    1) Your broker connection internally might support 2 physical connections: order connection and price/data connection. Hence, 2 different states.
    2) No, since your strategy account runs on one broker connection

    Comment


      #3
      Ok. I understand. But have some questions.

      1. What happen if I check orderStatus in demo mode?

      2. I have two brokers and, therefore, two connections. My strategy uses both connecions. If one connection lost, can I check?

      Thanks.

      Comment


        #4
        1) Not sure what you mean by demo mode
        2) Your strategy CAN'T use 2 connection. Only the one where your ONE strategy account is running on.

        Comment


          #5
          1. Global simulation mode. As I understand, only price connection used in this mode.
          2. But my strategy (multi-instrument) receives ticks for both connection. And I use this data for my calculations.

          Thanks.
          Last edited by funky_boy; 07-18-2008, 02:21 AM.

          Comment


            #6
            1) correct
            2) OnConnectionStatus only reflect the status of your ONE account connection regardless of how many instruments you manage with your strategy.

            Comment


              #7
              Can I choose this connection while strategy running?

              Quote from NT documentation: " NinjaTrader supports multiple simultaneous connections to different connectivity providers and in some cases, to the same connectivity provider allowing you to:

              Connect to and trade through multiple brokers simultaneously
              ".

              Comment


                #8
                No, you select the account (and connection) before you start the strategy. Please consult the docs for details.

                Comment


                  #9
                  Ok. Another question.

                  One connection associated with one broker (in other words "account"). Correct?
                  When I start my strategy, I must point account.
                  But what I will do, if I want to use my strategy with two different brokers (MBTrading and Mirus Futures, for example)?

                  Comment


                    #10
                    You would run two different instances of the same strategy, one for each account.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Where is my recent post with quotes from Nt documentation?
                      Last edited by funky_boy; 07-20-2008, 10:34 AM.

                      Comment


                        #12
                        I deleted it since it was a response to a prior response of ours which I deleted as well. Both were not necessary since I posted a new response to your original question.
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Ok. Can one instance communicates with other instance? And how?

                          Comment


                            #14
                            Cross strategy communication is beyond the scope of what we can support.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Another question.

                              Can I trade trought two different brokers (MBTrading for FX and Mirus for Futures) simultaneously using AT interface?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              600 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              347 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X