Job finished
Specification
Timeframe: I possible within the next 12 hours.
I need an EA as an Rescue System. It´s a very easy one for the MT4
Trigger: One or more orders with a special Comment Var0 are opened.
For each of the orders:
Open reverse pending Orders (sell limit / buy stop) for the same symbol. If the order above is a sell order, the EA should open severall pending buy orders. And if the order above is a buy order, the EA should open several pending sell orders.
The Reverse pending Orders should be opened placed on this logic:
Pending Order 1: Order Limit is Open-Price of the main Order +/– Var1a (in Points). An Stopp loss is Limit/stop of the pending order -/+ Var1b (in Points). Lot size is Var1c.
Pending Order 2: Order Limit is Open-Price of the main Order +/– Var2a (in Points). An Stopp loss is Limit/stop of the pending order -/+ Var2b (in Points). Lot size is Var2c.
Pending Order 3: Order Limit is Open-Price of the main Order +/– Var3a (in Points). An Stopp loss is Limit/stop of the pending order -/+ Var3b (in Points). Lot size is Var3c.
Pending Order 4: Order Limit is Open-Price of the main Order +/– Var4a (in Points). An Stopp loss is Limit/stop of the pending order -/+ Var4b (in Points). Lot size is Var4c.
If the main orders is closed. The pending order is closed too.
The 4 pending orders should be opened for each order with the comment Var0
--------------
Example SELL:
I open
EURUSD
Sell
Price: 1.17438
The EA places the following pending orders:
EURUSD
Buy stopp
Price: 1.17438 + Var1a
S/L = Price – Var1b
Lot = Var1c
EURUSD
Buy stopp
Price: 1.17438 + Var2a
S/L = Price – Var2b
Lot = Var2c
EURUSD
Buy stopp
Price: 1.17438 + Var3a
S/L = Price – Var3b
Lot = Var3c
EURUSD
Buy stopp
Price: 1.17438 + Var4a
S/L = Price – Var4b
Lot = Var4c
--------------
Example BUY:
I open
EURUSD
BUY
Price: 1.17438
The EA places the following pending orders:
EURUSD
Pending Order
sell limit
Price: 1.17438 - Var1a
S/L = Price + Var1b
Lot = Var1c
EURUSD
sell limit
Price: 1.17438 - Var2a
S/L = Price + Var2b
Lot = Var2c
EURUSD
sell limit
Price: 1.17438 - Var3a
S/L = Price + Var3b
Lot = Var3c
EURUSD
sell limit
Price: 1.17438 - Var4a
S/L = Price + Var4b
Lot = Var4c