Forum

Stopping multiple trades on one bar

I'm fairly new at the MQL5 language and I've got a problem I can't find a solution to. I've got a couple of promising strategies but when things are a bit volatile I can enter a position that gets closed out rapidly and then re-enters again on the same bar. This sometimes happens two or three times