Martingale needed

I have an EA which I think could be profitable if it has a martingale system that has an option to control the maximum lot size and a risk management that doubles the starting lot size once the capital is doubled.

I appreciate your help to recode this…
Bid_Open_EA.rar (1.6 KB)