One of the many problems I am facing and I'm not coming out, is that you have created a condition occurred and where it comes into the position ...

This far so good, but when you enter tight stop loss, it is possible that the expert who read the same condition is still "good" and then what does?
Continue to open not care that he had just closed the position ...
From this, of course I can imagine how many operations are performed on the same bar ...
It may be that the condition is good for the first operation, but then inevitably incapperą in some operation to "limit" with its loss had hit the stop loss ...

I would like to understand how to avoid this ...
What should I add the code to make sure that I open a single operation on the bar in which the condition occurred?

Thank you ...