Spezifikation
i need an expert adviser to implement the concept of zone recovery hedging (like in picture)
with the following rules:
1- Time Frame All – Currency pairs any
2- Broker (5 Digit) all Calculation will be done using 4 digits (Ignore 5th digit or it will equal to 0)
3- Buttons for : a) Buy b) Sell c) Close All (at any time even if the TP/SL is not hit) (i.e. trade will close either by TP/SL or by Close all button)
4- Recovery Zone Gap = Manual
5- TP Multiplier = Manual
6- SL Multiplier = Manual
7- Nos. of trades = Manual (1 to 15)
8- Lot Sizes from 2nd – 15 = Manual
9- Spread = manual
10- First Trade = Manual
11- If First Trade = Buy then take profit = price + (Gap Zone x TP Multiplier-Spread) = Auto
12- If First Trade = Buy then Stop Loss = Price – (Gap Zone x SL Multiplier + Spread) = Auto
Then
13- Expert Advisor will Automatically put Sell Stop order as follows
14- Sell Stop (Price) = Buy Price – Gap Zone
15- Sell Stop (TP) = Buy Price – (Gap Zone x Stop Loss Multiplier)
16- Sell Stop (SL) = Buy Price + (Gap Zone x Take Profit Multiplier)
And so on whenever the price didn't reach take profit sell stop will be triggered and the system will put another pending buy stop order according to predefined Lot size defined earlier…etc.
Example
Buy
Eur/Usd Spread = 3
Gap Zone = 30
Take Profit Multiplier = 2
Stop loss Multiplier = 3
Buy Current Price = 1.0650
TP = 1.0650 + (Gap Zone x 2 = 60) - (Spread = 3)= 1.0707
SL= 1.0650 – (Gap Zone x 3 = 90) + (Spread = 3) = 1.0557
Pending Sell Stop
Sell stop (Price) = Buy Price (1.0650) – Gap Zone (30) = 1.0620
Sell Stop (TP) = Buy Price (1.0650) – (Gap Zone (30) x Stop Loss Multiplier (3) = 90
= 1.0560
Sell Stop (SL) = Buy Price (1.0650) + (Gap Zone (30) x Take Profit Multiplier (2)=60
= 1.0710