opening an another order without closing current order

 

Hi, 

I need help with my script.

I'm trying to develop a script with martingale technique. Where it places a buy order for 0.01 lot size, if this order goes loss (let's say 200th pip) , I want to open an another buy order for 0.02 lot size. if all together buy orders in profit, I want to close all the buy orders, else open another buy order on 400th pip.


if anyone knows that any script already available, please point me to it. Thanks in advance.

 

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

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