Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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"
    Chris L.NinjaTrader Customer Service

    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.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by frandepaulapr, Today, 04:14 AM
        0 responses
        9 views
        0 likes
        Last Post frandepaulapr  
        Started by ThePicsou, 07-22-2024, 11:36 AM
        4 responses
        30 views
        0 likes
        Last Post ThePicsou  
        Started by marco231, 03-20-2024, 03:56 PM
        7 responses
        176 views
        0 likes
        Last Post marco231  
        Started by Irukandji, 04-22-2024, 04:33 AM
        7 responses
        37 views
        0 likes
        Last Post Irukandji  
        Started by Irukandji, Today, 01:56 AM
        0 responses
        7 views
        0 likes
        Last Post Irukandji  
        Working...
        X