Can anybody help me with a new code?

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.

Simon Gniadkowski  
Ah . . . Martingale ? why not just burn your money ?
Point Zero  
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 ;)