I recommend you to read the section 'Betting: Martingale / Paroli' here:
https://fxdreema.com/instructions/builder/money-management
That should solve most of what you're looking for. However, if you let me take the liberty of offering some advice, I strongly recommend you NOT to focus on ANY martingale strategy. I created my own martingale EA and no matter how many different variants you use. Sooner than later you lose your money. All of it. 😕