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 pibrew, Today, 06:37 AM
          0 responses
          0 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          12 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          15 views
          0 likes
          Last Post AaronKoRn  
          Working...
          X