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 Christopher_R, Today, 12:29 AM
          0 responses
          8 views
          0 likes
          Last Post Christopher_R  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          166 responses
          2,235 views
          0 likes
          Last Post sidlercom80  
          Started by thread, Yesterday, 11:58 PM
          0 responses
          3 views
          0 likes
          Last Post thread
          by thread
           
          Started by jclose, Yesterday, 09:37 PM
          0 responses
          7 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,415 views
          0 likes
          Last Post Traderontheroad  
          Working...
          X