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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X