Go long OnExecution... pt = SubmitOrder(0, OrderAction.Sell, OrderType.Limit, quant, ptPrice ...)
ChangeOrder(pt, quant, newptPrice, 0);
This works in SIM and MarketReplay. But for historical data it just closes the position at the newptPrice even if the market is above.

Comment