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 algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    21 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X