after working with NT for many years now I´m experiencing a strange behavior (I was not aware of this because different order handling untill now maybe).
I take off with a market order by condtion one of 3 contracts "ExitShort(1,"xaSa","aSa");"
When I move stoplosses then by another condition
I thought NT will move only stop for aSb and aSc because aSa is not there anymore.
if (stopstepa==1 && Closes[2][0] <= Position.AvgPrice - (8*TickSize))
{SetStopLoss("aSa", CalculationMode.Price, Position.AvgPrice, false);
SetStopLoss("aSb", CalculationMode.Price, Position.AvgPrice, false);
SetStopLoss("aSc", CalculationMode.Price, Position.AvgPrice, false);}
But there appear 3 stoporders in orderstab. Looks like NT brings in these 3 orders even when there are only 2 positons?
I can not change the code to move only SetStopLoss for aSb and aSc because all order handling is depending from conditions and the stopmove might be when all 3 positions are in the trade or, as described above, only 2 are there anymore.
I thought with "ExitShort(1,"xaSa","aSa");" NT cancels also the corresponding SetStopLoss.
Thank you
Tony
Comment