My system enters the market using signalNames. Once the entry triggers and I log it to my system in the OnExecute - I execute a sell stop and a target using the same signalName which I believed creates a OCO (I execute SetStopLoss and SetProfitTarget). The difference is the sell stop and targets are not sent to the exchange, preferring to use the simulated stops and targets.
When my target was hit yesterday [high of the day ], the system immediately sold the open order but the sell stop was not canceled. I was fortunate to be watching it since the sell stop was sitting open.
When the target is hit, the sell stop should be canceled if the signalName is the same yes?
Comment