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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
173 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
328 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
252 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
354 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
181 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment