Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtmStrategyEntryOrderStatus()

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

    GetAtmStrategyEntryOrderStatus()

    Is it possible to see the universe of possible values for the state in "entryOrder[2].ToString()" I cannot find a list of them in the online guide.

    protected override void OnBarUpdate()
    {
    string[] entryOrder = GetAtmStrategyEntryOrderStatus("orderId");

    // Check length to ensure that returned array holds order information
    if (entryOrder.Length > 0)
    {
    Print("Average fill price is " + entryOrder[0].ToString());
    Print("Filled amount is " + entryOrder[1].ToString());
    Print("Current state is " + entryOrder[2].ToString());
    }
    }

    Also, does the return string array only contain 3 values? Av Fill Price, Quantity and status or is there other information too?

    Thanks​

    #2
    Hello, thanks for writing in. The Order states are documented here:

    https://ninjatrader.com/support/help...html?order.htm //see "Order State Values"

    Comment


      #3
      And are there any more values in the string array or just the three?

      Comment


        #4
        Hi, the documentation here tells us the return type:

        Method Return Value
        A string[] array holding three elements that represent average fill price, filled amount and order state.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        53 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X