Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
GetAtmStrategyEntryOrderStatus()
Collapse
X
-
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.
-
And are there any more values in the string array or just the three?
Leave a comment:
-
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:
-
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?
ThanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mlarocco, Today, 11:12 AM
|
1 response
32 views
0 likes
|
Last Post
|
||
Started by futurenow, 12-06-2021, 05:49 PM
|
19 responses
1,013 views
0 likes
|
Last Post
![]()
by Redders
06-16-2025, 06:02 AM
|
||
Started by mathfrick2023, 05-08-2025, 12:51 PM
|
8 responses
129 views
0 likes
|
Last Post
![]()
by Yogaman
06-14-2025, 06:01 PM
|
||
Started by several, 04-22-2025, 05:21 AM
|
1 response
287 views
0 likes
|
Last Post
![]()
by Lukasxgtx
06-13-2025, 06:00 AM
|
||
Started by NTEducationTeam, 06-12-2025, 02:30 PM
|
0 responses
45 views
0 likes
|
Last Post
![]() |
Leave a comment: