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 get status of my existing account order

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

    How to get status of my existing account order

    Assume my account has some pending orders entered yesterday and not cancelled, how to get the status of these orders including instrument names and their quantities?

    Thanks.

    #2
    Hi appleseed,

    Unfortunately there is no support for accessing orders at the account level. The only order details you can access programatically are those orders that belong with the strategy that you're accessing from.

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I guess NTOrders() and NTOrderStatus() could be used for this purpose, any restrictions and examples here?

      Comment


        #4
        These are not NinjaScript functions. Can be used if you use the dll interface for automated trading.



        There are samples available there depending on whether you're using eSignal or TradeStation for this.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          As these dll interface with eSignal provides additional functions I like to use, can I combine NinjaStript with eSignal and dll interface, or they are different and can't be combined? What's the general rules to use them in my NinjaScript? Thanks.

          Comment


            #6
            These are separate environments and can't be combined.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by hazylizard, Today, 08:38 AM
            2 responses
            8 views
            0 likes
            Last Post hazylizard  
            Started by geddyisodin, Today, 05:20 AM
            2 responses
            17 views
            0 likes
            Last Post geddyisodin  
            Started by Max238, Today, 01:28 AM
            5 responses
            47 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by giulyko00, Yesterday, 12:03 PM
            3 responses
            13 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by habeebft, Today, 07:27 AM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_ChristopherS  
            Working...
            X