Can anybody help me with a new code?

 
I need a code to work like this:
When a BUY order is closed at Stop Loss, a new SELL market order is opened at a double amount of the just closed order with the same SL and TP in PIPS like just closed order.
When a SELL order is closed at Stop Loss, a new BUY market order is opened at a double amount of the just closed order with the same SL and TP in PIPS like just closed order.
When any order is closed at TP, than it has to do nothing.
For any opened order I need to receive an email.
Thank you.

 
Ah . . . Martingale ? why not just burn your money ?
 
gserbezan:
I need a code to work like this:
When a BUY order is closed at Stop Loss, a new SELL market order is opened at a double amount of the just closed order with the same SL and TP in PIPS like just closed order.
When a SELL order is closed at Stop Loss, a new BUY market order is opened at a double amount of the just closed order with the same SL and TP in PIPS like just closed order.
When any order is closed at TP, than it has to do nothing.
For any opened order I need to receive an email.
Thank you.

You can use: https://www.mql5.com/en/code/10561

Or give all your money to charity ;)

 

Thank you,

The initial order is open manually and not randomly. I hope I'll not burn my money. Manually I do some pips daily.

I try to load the above code but after the message LOADED SUCCESSFULLY it is REMOVED.

Why?

 
Comments that do not relate to this topic, have been moved to "Off Topic Posts".