Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

open orders check

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

    open orders check

    hi, can you please tell me how I can check to see if a gtc limit order has been placed and is open from a strategy?

    and check if it was canceled or no orders are in?

    thx!

    #2
    Hello nightriderx,

    To check order state on strategy orders, you must structure as IOrder objects. Then you can check the OrderState property of the object. You can check if the order was ever submitted with a null check on the order.

    This sample can help structure your orders as IOrder and helps with a couple fill state examples:
    The OnOrderUpdate() and OnExecution() methods are reserved for experienced programmers. Instead of using Set() methods to submit stop-loss and profit target orders, you can submit and update them manually through the use of IOrder and IExecution objects in the OnOrderUpdate() and OnExecution() methods. The OnOrderUpdate()
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      awesome! thx!

      Comment


        #4
        Hi RyanM,

        Is it possible to check open orders from different strategies on the same instrument?

        Thanks in advance!

        Comment


          #5
          Hello,

          There is no supported way to do this. While some users may have found was to do this through unsupported calls or external files there isn't anything supported I can provide.

          Consider searching or asking your question here: http://ninjatrader.com/support/forum...ad.php?t=22435
          LanceNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          102 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          144 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X