string atmStrategyId = GetAtmStrategyUniqueId();
string orderId = GetAtmStrategyUniqueId();
It's my understanding that the GetAtmStrategyUniqueId(); command generates a random atmStrategyId and orderId upon execution.
After an order is entered into I want to check once its flat. Accordingly, I have added the following:
if (GetAtmStrategyMarketPosition("Id") == MarketPosition.Flat)
The problem is I cannot figure you what to use as the Id. I have tried atmStrategyId (both with and without quotes). This gives me an error in the log saying 'atmStrategyId" does not exit.
I have tried putting in GetAtmStrategyUniqueId(). This generates a random number on each update which the log than says does not exist
If the atmStrategyId is randomly generated, how can you Identify it for purposes of the GetAtmStrategyMarketPosition("Id") . command. Any help would be appreciated
Comment