-Enter long
-Submit market orders for two shorts, one to close the long, and one to enter the next trade
-Before step two is fully processed, Long's stop is filled (I'm guessing this is what happened. I guess I don't know for sure).
-The Close Position's order is filled, but now it's entering a new trade because there's no longer a position to close
-The short that was supposed to open this position now opens a second position. This one had no stop!
Is there a way to prevent this? Or recognize it and back out of the second position? I'm worried that if the strategy submits the order before the first position is closed, it might not realize it's entering twice. And I can't recreate the problem to test in Playback assuming it's an internet lag issue.
Thanks
Comment