Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

where to find the Order Status codes

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

    where to find the Order Status codes

    hi

    I have these lines of codes borrowed from the SampleATMStrategy

    if (status.GetLength(0) > 0)
    { Print (
    " status " + status.GetLength(0) );

    the answer i get in the output status 3

    where could i find what 3 means i looked but didnt find anything

    #2
    Hi richbois,

    3 is the number of elements in status -- the string array from this line:
    string[] status = GetAtmStrategyEntryOrderStatus(orderId);

    This string array has three elements that consist of [0] fill price, [1] filled quantity, and [2] order state.

    Code:
    if (status.GetLength(0) > 0)
    {
    	// Print out some information about the order to the output window
    	Print("The entry order average fill price is: " + status[0]);
    	Print("The entry order filled amount is: " + status[1]);
    	Print("The entry order order state is: " + status[2]);
    }
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    60 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    20 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    22 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X