Need Help With My RSI EA Bot Want to Add Martingale

 
I want to add a Martingale Strategy that If Trailing SL Hit the next trade will be 0.02 lot and 2nd SL hit trade will be 0.04 and so on and my all trades closed on crossabove or below of 50MA.
Files:
RSI_EA.mq5  39 kb
 

Martingale is not a strategy. It's a betting system.

Hedging, grid trading, same as Martingale.
          Martingale, Hedging and Grid : MHG - General - MQL5 programming forum (2016)

Martingale, guaranteed to blow your account eventually. If your strategy is not profitable without, it is definitely not profitable with.
          Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum (2015)

Why it won't work:
          Calculate Loss from Lot Pips - MQL5 programming forum (2017)
          THIS Trading Strategy is a LIE... I took 100,000 TRADES with the Martingale Strategy - YouTube (2020)

 
Yeah I know it's risky but can you provide a  martingale system code or implement it on my code that I shared because I tried many times but continuously getting error?
 
Shahwaiz_190 # I tried many times but continuously getting error?

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
          No free help (2017)