- You submit a Buy order for X quantity at Y price.
- The order is working and suddenly you have a partially filled, so the order continues with a ( X - filled ) at Y price
- The Strategy requires to change the working order price, so you have to set:
ChangeOrder( "iorder" , "quantity", " price", 0);
- So, when you request this change, in spite of you put the same remaining quantity ( X-filled ) of the old working order, Ninjatrader updates it and keeps working BUT it will cause a silent error that stops the Strategy. This is because that old order has partially filled execution previously and if you touch quantity something is altered.
So, How would you change only the price order ?
Thanks
Comment