Wow that's pretty crazy...you really did dodge a bullet. You really have to be careful when placing trade orders. I had a similar thing happen to me on a daytrade that was moving against me where I wanted to exit the position with a loss and ended up doubling up on it because I accidentally clicked "buy" instead of "sell" only a couple minutes before the close. I wasn't so lucky to get out unscathed the next day. Just another lesson learned from this game lol.