Quote from intradaybill:
Please guys, the OP was very polite. Maybe he has made some mistakes but we all have at some point in time, haven't we?
If you have a 10-minute bar where all these events can occur and you go into it flat, then you cannot know which event happened first unless you use tick data.
The only legitimate approach is to assume that you hit your stop. You cannot then initiate another position until the close of the bar but it can only be a MOC, not a stop or limit order.
This is the reason your equity curve is like you bought a T-Bill.