This is really weird but it seems like one of my OCO positions wasn't auto-closed as it should have been since even though there's an IDEA open position, there are no corresponding pending orders related to it to close it (SL & TP). So, I'd shorted IDEA, the SL got hit, & it seems like the TP wasn't cancelled by your system, & then as the price continued to fall afterwards, the TP got executed as a fresh long-position. The position is still open, I tried to close it by sending a market-order but it only opens a separate position tagged as "intraday" while the "OCO" remains as it is. Thank God I was only testing my strategy with 1 share, imagine if it was a future, & the TP wasn't auto-cancelled by your system after SL being hit, & I'd this position floating in the air without me noticing it for a while.
I mean the whole point of OCO is that you can just put in the Entry, SL & TP, & it should do its thing without needing any attention from the trader but if things like these happen then it'll be very difficult for the traders to trust your system.
image album upload
image upload gif