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 arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    60 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    9 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    47 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X