Hello,
I have a strategy that triggered a stop loss order "HALong_SL [email protected]" mid bar at the right tick, as you can see in the attached snapshot of the chart. However several things are out of sync:
1. Even though the chart displays the stop order was executed at the right tick right away, I didn't hear the "Order submitted" voice until bar close.
2. In control center, it shows no execution or order took place, and there are still 29 shares of SPY. How is there 29 shares of SPY in control center, it should be 19 shares to begin with, or 10 shares after profit target, or 0 shares after stop loss?
The stop loss was placed right after long entry as:
stopOrder = ExitLongStopMarket(barsInProgressIndex: 0, isLiveUntilCancelled: true, quantity: posQuantity,
stopPrice: initialStopPr, signalName: stopSignalName, fromEntrySignal: entrySignalName);
Then it trails up at each bar close as:
ChangeOrder(order: stopOrder, quantity: posQuantity, limitPrice: 0, stopPrice: stopPr);
And there've been no errors thrown in the process.
Can you please help me understand how the chart shows the timing of the orders/executions correctly, but in fact no execution took place, and the alert sound was at bar close ?
Thanks!

Comment