Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

{NinjaScript} - NT8 Get Order List.

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

    {NinjaScript} - NT8 Get Order List.

    Hello,
    I need to acces an array (or list) of Orders created to iterate all orders submitted and make some action.
    It doesn't matter if they were full or not.
    Could you give me some sample code?
    I picture something like that:

    for( int i = 0 ; i < orders.Count ; i ++)
    if(orders[i].Name== "order1234")
    DoSomething();

    thank you so much




    #2
    Doesn't matter if they are FILLED*

    Comment


      #3
      Hello fscabrera03,

      Are you wanting all orders to an account or just orders submitted by a NinjaScript Strategy?

      In a NinjaScript Strategy you could make your own List<Order> and .Add() each order to the list in OnOrderUpdate().
      https://ninjatrader.com/support/help...rderupdate.htm

      NinjaTrader provides a trades collection which contains the orders, but only after the trade is closed.
      ​​​​​​​https://ninjatrader.com/support/help...collection.htm
      https://ninjatrader.com/support/help...erformance.htm
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by timmbbo, Today, 10:27 PM
      0 responses
      1 view
      0 likes
      Last Post timmbbo
      by timmbbo
       
      Started by 7robert, Today, 07:48 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by saltminer, Today, 06:32 PM
      0 responses
      6 views
      0 likes
      Last Post saltminer  
      Started by caveat_lector, Today, 06:13 PM
      0 responses
      5 views
      0 likes
      Last Post caveat_lector  
      Started by patricia70, Today, 06:07 AM
      8 responses
      39 views
      0 likes
      Last Post bltdavid  
      Working...
      X