i.e. the order is filled....status knows the value....why does GetAtmStrategyPositionAveragePrice not pick it up?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
GetAtmStrategyPositionAveragePrice race condition
Collapse
X
-
if (orderIdLONG.Length > 0)
{
string[] status = GetAtmStrategyEntryOrderStatus(orderIdLONG );
if ( status.GetLength(0) > 0 && status[2] == "Filled" )
{
entryPriceLong = GetAtmStrategyPositionAveragePrice(orderIdLONG) ;
Print ( " entryPriceLong "+entryPriceLong+ " actual "+status[0] );
although order is filled and a fill price is available, only status[0] returns actual fill price while
GetAtmStrategyPositionAveragePrice returns 0
problem would be solved if status[0] could be converted from string to double... i.e. since GetAtmStrategyPositionAveragePrice is not current at same time
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
50 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
36 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
44 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
33 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
||
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
152 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|

Comment