Here is about Once per bar: https://fxdreema.com/demo/mt4-once-per-bar I imagine the left situation. In the Condition block you can use whatever Stochastic values you want.
Here is another example that comes to my mind when someone talks about closing on opposite condition: https://fxdreema.com/demo/mt4-buy-sell- ... conditions