Thanks, I think the problem I have is that the buy get hits in the beginning of the bar, then I want to get rid of the sell but in the in the _same bar it hits the sell before the next opens.
Is it possible to do the following in the same bar?
Still as Roberto said it is possible for your buy order to get filled and then price reverse and hit your sellshort order which will then close your long position for a loss and then open a short position all in the space of one bar.
You could do something using MTF like this on a faster time frame such as the 1 second time frame. This will however seriously limit the amount of data available for your backtest.