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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X