I looked at the log, and found that the entry was filled in three executions, 33, 100, 100, and 100. The SetStopLoss order was updated only twice and bring the StopLossOrder to 233 shares. (The setProfitTarget order was updated correctly, bring the shares to 333).
Luckily, I was watching the strategy and manually sold the remaining shares. However, this could be a big problem, because most of the time my strategy runs unattended.
Could you let me know what could cause this problem and how to prevent it from happening? Is this a bug you need to fix?
Hong
Comment