Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Get last order

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

    Get last order

    Hello,

    I want get the last order accepted.
    Can you help me please ?


    Thanks you.

    #2
    Hello jodu49,

    Thank you for your post.

    Can you clarify a little what exactly you're looking for? Are you wanting to obtain the most recently submitted working order (prior to it filling) or are you wanting to get the most recently filled order? What information are you wanting to retrieve regarding said order? The more information you can provide, the better guidance I can give.

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      I managed to find. It was simple but I was stuck. The solution was:

      LastOrder=Account.Orders[Account.Orders.Count-1];

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Started by gwenael, Today, 09:29 AM
      0 responses
      1 view
      0 likes
      Last Post gwenael
      by gwenael
       
      Started by Karado58, 11-26-2012, 02:57 PM
      8 responses
      14,829 views
      0 likes
      Last Post Option Whisperer  
      Started by Option Whisperer, Today, 09:05 AM
      0 responses
      1 view
      0 likes
      Last Post Option Whisperer  
      Started by cre8able, Yesterday, 01:16 PM
      3 responses
      11 views
      0 likes
      Last Post cre8able  
      Working...
      X