There's a position with its StopLoss order that the Script must close. If the order is filled partially, the tied Stop Loss should update the quantity of the remaining position. Checking log and trace files, I see this is updated immediately, so :
1. If I want to update the remaining Stop order quantity, it is as simple as setting in Position.Quantity when a partially filled occurs, isn't it....or, Would I have to set a variable for the previous Position.Quantity and substrat the PartFilled quantity of the Exit order??
Comment