So, for example, let's say entryOrder is a long limit order with target = entry +10 ticks and stop = entry -10 ticks. entryOrder is filled in 2 parts, creating stacked orders at the target/stop.
GetAtmStrategyStopTargetStatus("Target1", atmStrategyId) returns a multi-dimensional array where the specific ORDER with the given name is referenced by the first parameter of the index. So, GetAtmStrategyStopTargetStatus("Target1", atmStrategyId)[i, 2], would return the orderStatus of the first order with the "Target1" name.
Circling back to the AtmStrategyChangeStopTarget() method then, what happens in the following call:
AtmStrategyChangeStopTarget(100, 0, "Target1", atmStrategyId))
For the purposes of this inquiry the following properties are applied to ATM (to the extent it matters):
ATM strategy seleciton mode: Keep selected ATM strategy template on order submission
Comment