Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

how to count open orders (executed)

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

    how to count open orders (executed)

    Hi, is there a way to count executed orders? I mean, when I start the strategy after a crach on PC (for example), but there are already open orders (opened during last session), I need to count how many orders there are and the type (for example the name) for initialize my strategy and avoid that it open new orders: how can I do this?
    Thanks

    Bolla

    #2
    Hi Bolla,

    When you restart your strategy there are no "open" orders. All those old orders will be simulated orders and may not even be shown in the same places as you had them in real-time. Please see the discrepancies between real-time and backtesting. When you rerun on historical data you are essentially going through it from a backtesting standpoint. http://www.ninjatrader-support.com/H...sBacktest.html

    The only possible "open" order to the strategy would be the last order and even that would be a virtual, strategy position. Please see this article about the differences between a strategy position and an account position. It is critical you understand the implications of this. http://www.ninjatrader-support2.com/...ead.php?t=4033
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      So, there is no way to sync Strategy Position with real Accont Position using strategy but only with manual management: is it true?
      In NT7 is there this possibility or not?
      Thanks

      Bolla

      Comment


        #4
        Your understanding is correct. There will be improvements in NT7. Announcements will be made when available.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks, but if I want to count how many orders I have on my execution tab (no matter if real or simulated trades), can I do this?

          Bolla

          Comment


            #6
            Nope. If your NinjaTrader has froze it has no way of linking the two together.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              About accounts, isn't it impossible to create Sim102 account for example and trade only Long positions on Sim101 account and only short positions on Sim102 account from the same strategy and same instrument? (to simulate 2 separate MBTrading account that not permit hedge)
              Thanks

              Bolla

              Comment


                #8
                You cannot run one instance of a strategy on two accounts. You can however run two instances on separate accounts.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  what's means?
                  Please explain me.
                  Thx

                  Bolla

                  Comment


                    #10
                    When you run a strategy you can only run it on one account. You can run the same strategy multiple times on as many accounts as you want.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      How can I do that? Different Chart?

                      Bolla

                      Comment


                        #12
                        You can run them on the strategies tab from the control center. Or from separate charts. You can also do it from one chart. When you add multiple strategies you have the option to choose which Account it runs on. Just select which one you want.
                        Josh P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by josh18955, 03-25-2023, 11:16 AM
                        6 responses
                        435 views
                        0 likes
                        Last Post Delerium  
                        Started by FAQtrader, Today, 03:35 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post FAQtrader  
                        Started by rocketman7, Today, 09:41 AM
                        5 responses
                        18 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by frslvr, 04-11-2024, 07:26 AM
                        9 responses
                        126 views
                        1 like
                        Last Post caryc123  
                        Started by selu72, Today, 02:01 PM
                        1 response
                        12 views
                        0 likes
                        Last Post NinjaTrader_Zachary  
                        Working...
                        X