Moving stops too close to current price is always punished by brokers. You should use the 'on trade' tab blocs and options. There you can choose that a new trade is open at the exact moment it was closed by a SL.
On the other hand, please don't spend too much time with martingales. They never work in the long run.