Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtmStrategyEntryOrderStatus()

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

  • NinjaTrader_ChrisL
    replied
    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.

    Leave a comment:


  • sjmuk1
    replied
    And are there any more values in the string array or just the three?

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    Hello, thanks for writing in. The Order states are documented here:

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

    Leave a comment:


  • sjmuk1
    started a topic GetAtmStrategyEntryOrderStatus()

    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​

Latest Posts

Collapse

Topics Statistics Last Post
Started by mlarocco, Today, 11:12 AM
1 response
32 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by futurenow, 12-06-2021, 05:49 PM
19 responses
1,013 views
0 likes
Last Post Redders
by Redders
 
Started by mathfrick2023, 05-08-2025, 12:51 PM
8 responses
129 views
0 likes
Last Post Yogaman
by Yogaman
 
Started by several, 04-22-2025, 05:21 AM
1 response
287 views
0 likes
Last Post Lukasxgtx  
Started by NTEducationTeam, 06-12-2025, 02:30 PM
0 responses
45 views
0 likes
Last Post NTEducationTeam  
Working...
X