A simple question from a newbye

 

I created a simple EA based on 15 minutes chart..The sistem is the seguent:

- when Stochastic cross over its Moving Average then buy a lot

- when Stochastic cross under its Moving Average then close the long position

- when Stochastic cross under its Moving Average then sell short a lot

- when Stochastic cross over its Movinga Average then close the short position

But I saw that when it close a position, it attend the next bar to open a contrary position...It's possibile to make that it close the position and AT THE SAME MOMENT it open a contrary position? (Stop and Reverse)

Sorry for the question, but I very newbye

 

Nobody has never had this problem?