When I run something like this:
StrategyBase sb = order.GetOwnerStrategy();
double avgPrice = sb.GetAtmStrategyPositionAveragePrice(sb.Id.ToStri ng());
Then the GetAtmStrategyPositionAveragePrice() method generates the following error:
'GetAtmStrategyPositionAveragePrice' method error: ATM strategy ID '184729210' does not exist
Am I doing something wrong? What is the best way to get the average price for an active Atm Strategy?
Comment