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 NTEducationTeam, 07-11-2025, 08:49 AM
        0 responses
        52 views
        0 likes
        Last Post NTEducationTeam  
        Started by saltminer, 07-07-2025, 01:43 PM
        1 response
        100 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by idude, 07-08-2025, 05:06 AM
        0 responses
        45 views
        0 likes
        Last Post idude
        by idude
         
        Started by music_p13, 07-05-2025, 11:33 PM
        1 response
        52 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by gubbar924, 03-18-2018, 05:15 PM
        43 responses
        5,511 views
        0 likes
        Last Post ESMC377
        by ESMC377
         
        Working...
        X