RECOVERY TRADE SETTING
The Hedge Mode (or Recovery Mode) is the foundation of the Zone Recovery Hedging Mechanism.
When the market moves against your initial trade, instead of hitting a Stop Loss, the assistant opens an opposite (hedging) trade to balance your exposure and create a recovery zone.
From that moment, the EA works to close both sides in net profit once the total position reaches the recovery target.
This section explains how hedge trades are placed, how the recovery gap is calculated, and how the lot size and take profit for recovery trades are determined.
⚙️ Recovery Order Type
This defines how the EA opens the hedge (recovery) trade.
There are two modes available:
1. Pending Order Mode
In this mode, the assistant places a pending order (SELL STOP or BUY STOP) at a fixed distance (the Hedge GAP) from the initial trade.
For example, if your setting is Fix Hedge GAP = 300 points and Order Type = Pending, then when a BUY trade is opened, the EA immediately places a SELL STOP pending order 300 points below the entry price.
This approach maintains a perfectly accurate GAP distance, as the recovery order already exists in the market.
2. Instant Order Mode
In this mode, the assistant doesn’t place any pending orders.
Instead, it waits until the price moves the full Hedge GAP distance against your initial trade — then opens an opposite instant order.
Using the same example, a BUY trade with Fix Hedge GAP = 300 points will trigger an instant SELL when the price moves 300 points down.
Which Mode Should You Choose?
Pending orders provide more precise GAP spacing and are usually preferred for stable market conditions.
However, in fast-moving or volatile markets, pending orders can occasionally fail to trigger (for example, if price gaps past the pending level).
Instant orders don’t suffer from this issue but can experience minor slippage.
Choose Pending for precision or Instant for reliability during fast markets.
⚙️ Recovery GAP Type
Defines how the recovery trade’s distance (GAP) is calculated.
There are three options:
1. Fix GAP
Opens the hedge trade at a fixed distance from the initial order.
The input Fix Hedge GAP specifies that distance in points.
2. Dynamic GAP
Uses recent candle data (highs/lows) to calculate an adaptive distance for recovery trades.
This makes the GAP responsive to current market volatility.
You can control it with the following parameters:
-
Number of Candle (H/L) For DynamicGAP → How many recent candles are used to find the highest or lowest point.
-
Max Value For DynamicGAP → The maximum distance (in points) the recovery trade can open.
-
Minimum Value For DynamicGAP → The minimum allowed distance (in points).
💡 Example:
If Number of Candle = 6, Max = 500, and Min = 100, the EA checks the last 6 candles.
For a SELL trade, it will place a BUY STOP at the highest high among those candles.
When that BUY STOP activates, it will then look for the lowest low to place the next SELL STOP, continuously alternating directions as price moves.
3. Custom Fix GAP
Allows you to specify individual GAP distances for each recovery trade.
For example, 300;300;400;500 means your first two hedge trades will have a 300-point GAP, the third 400, and the fourth 500 points.
This gives you full control over the structure of your recovery zone.
⚙️ Max Recovery Trade
Specifies how many hedge trades can be opened in one recovery cycle.
Setting it to 0 allows the EA to continue opening trades as needed (limited only by free margin).
To limit exposure, set a maximum number of recovery trades.
⚙️ Lot Type (For Recovery)
These parameters control how lot sizes increase or adjust with each new hedge trade.
The assistant offers several flexible methods to calculate hedge lot sizes:
Lot Type (For Hedge)
Select the method used for lot calculation:
-
Multiple: Each new trade’s lot size is multiplied by a fixed factor.
-
Multiple Custom: Each hedge trade can use a different multiplier (defined manually).
-
Custom: Each hedge lot is defined individually.
-
Add Lot: Adds a fixed value to the difference between total buy and sell lots.
Multiple Lots (For Hedge)
The multiplier value used when Lot Type = Multiple.
Example: If your multiplier is 2, and your previous lot was 0.01, the next hedge trade will be 0.02 lots.
Add Lots (For Hedge)
The extra lot value added when Lot Type = AddLot is selected.
Example: If total BUY lots = 0.10, total SELL lots = 0.06, and AddLots = 0.02, then the next hedge order will be (0.10 − 0.06) + 0.02 = 0.06 lots.
Custom Lots (For Hedge)
Enter exact lot sizes for each hedge trade, separated by semicolons ( ; ).
Example: 0.02;0.03;0.06;0.10 .
Multiple Custom Lots (For Hedge)
Allows different multipliers for each hedge level.
Example: 2.0;1.8;1.6;1.4 — meaning the first trade doubles, the second increases by 1.8x, and so on.
⚙️ TakeProfit Type For Recovery
These inputs define how and when all trades in a recovery cycle close together in profit.
TakeProfit Type For Hedge
Specifies how the TP is calculated for the recovery phase:
-
In Points (Average): Closes all trades when the total average position reaches the set profit distance.
-
In Points (Fix Distance): Closes all trades at a fixed distance from the last opened trade, regardless of total cycle profit.
-
In Currency: Closes the recovery cycle once total profit (in account currency) reaches the target.
-
In Custom TP (Average): Same as Average, but each hedge trade can use different TP levels.
-
In Custom TP (Fix Distance): Same as Fix Distance, but each hedge trade can have custom TP distances.
TakeProfit For Hedge (Points/Currency)
The target TP value for the hedge cycle (in points or currency, depending on the selected mode).
TakeProfit Custom For Hedge
Defines individual TP levels for each hedge trade (separated by semicolons ; ).
This only applies if you are using a Custom TP mode.
📘 Example: How Average vs Fix Distance TP Works
-
In Points (Average)
Suppose you open a BUY 0.01 lot at 1.20300, and price drops 300 points, triggering a SELL 0.02 lot at 1.20000.
If your TP = 300 points, the EA calculates the combined profit/loss.
At around 1.19400, the SELL side gains +1200 points and the BUY loses −900 points, resulting in +300 net profit.
Both trades close together — guaranteed profit. -
In Points (Fix Distance)
Using the same setup, the EA closes all trades 300 points away from the last hedge (1.19700).
Here, the SELL gains +600 points, and the BUY loses −600 points — net 0.
Fix Distance TP doesn’t check the total cycle profit; it only respects the fixed distance.
💡 In summary:
Average Mode always closes the cycle in real profit.
Fix Distance Mode closes at a specific distance, regardless of net result.


