By default bot can trade up to 22 martingale + 1 original position (Anchor).
As you are aware, the more positions it opens, the more margin it uses, the bigger the lot size. And if chart keeps going the wrong way, you might run out of money and get margin-call.
You can limit bot to only open a maximum number of martingales. In doing this, you will limit the account drawdown. In saying that, if you’re running out of martingale positions means bot will not be able to capture reversal. You can only hope that price goes back to your martingale price range before bot can take profit.