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 abelsheila, 05-14-2025, 07:38 PM
        2 responses
        39 views
        0 likes
        Last Post hglover945  
        Started by nailz420, 05-14-2025, 09:14 AM
        1 response
        83 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
        0 responses
        406 views
        1 like
        Last Post NinjaTrader_Brett  
        Started by domjabs, 05-12-2025, 01:55 PM
        2 responses
        74 views
        0 likes
        Last Post domjabs
        by domjabs
         
        Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
        1 response
        102 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X