Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnOrderUpdate

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

    OnOrderUpdate

    Hi again. How can we get current order list with actual statuses in OnOrderUpdate()?

    #2
    Thanks for the post, there's unfortunately no generic order collection access - however you can check for the orderstatuses of your strategy issued IOrders - http://www.ninjatrader.com/support/h...nt7/iorder.htm

    If you work with the Set methods that don't offer an IOrder return, capture their token first as it passes OnOrderUpdate() - http://www.ninjatrader.com/support/f...ead.php?t=5790
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by kuranushka View Post
      Hi again. How can we get current order list with actual statuses in OnOrderUpdate()?
      Put each order by ID into an ArrayList when you issue it. When you want to query that list, first remove any orders that are null, the use foreach to loop through the ArrayList and query the status of each order.

      Comment


        #4
        koganam

        Do you have any examples demonstrating this technique?

        Thanks

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        383 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        1 view
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Working...
        X