Hedge Zone Recovery
Opens one trade on a trend condition, then hedges with a capped number of opposite legs if price breaks the zone.
DRF_Hedge_Zone_Recovery_EA · version 2.01 · Strategy · MetaTrader 5
Or get every Expert Advisor, for life, for €150: see the bundle.
Test it on a demo account first. When everything works as you expect, use it on a real account.
It works on any symbol: point-based inputs scale to the symbol you attach it to.
Who it suits
Experienced traders who study recovery systems and accept that each added leg adds risk.
What it does
A recovery system with a hard cap on legs. It opens a single initial order, defines a recovery zone around the average entry and, if price breaks the zone against the net position, opens the opposite leg with a lot sized to help recover the loss.
How it works
- Initial order on a simple trend condition.
- Recovery zone around the average entry; a break against the net position opens the opposite leg.
- A hard cap on legs, so it cannot turn into an uncapped grid.
- Exit: a basket cash target with trailing on the whole set.
- Filters: session 03:00 to 21:00, spread cap 350 points, calendar news filter.
What is included
- The compiled Expert Advisor (.ex5) for MetaTrader 5
- A ready preset (.set) with the default values
- Free updates for life
- A DRF Key valid on up to 5 internet addresses at the same time
What is not included
- Anyone who cannot afford an open loss across several legs.
- The editable source code (ask about a source licence)
What you need
- MetaTrader 5 (the file is an .ex5 for MetaTrader 5, not MetaTrader 4)
- Symbol: any. Timeframe: The chart's timeframe.
- Allow
https://sync.donaldsonrf.comin Tools > Options > Expert Advisors (Allow WebRequest for listed URL), so the key can be checked
How to try it
- Attach it to a demo chart on the timeframe you want to test.
- Set a small lot size (0.01) and leave the other inputs at their defaults.
- Read the Experts and Journal tabs and the on-chart panel for the reasons it gives when it skips an entry.
- Move to a small live account only after you have seen it behave as expected on demo.
Results
No results are published for this Expert Advisor, and none are implied. Test it on a demo account first. Past results never promise future ones.
Buy once, keep it for life
- One payment, no subscription: yours for life, with free updates.
- Works on any symbol: forex pairs, indices, metals, crypto.
- One DRF Key, valid on up to 5 internet addresses at the same time (your computer, a VPS, a laptop...).
- Your files and key wait in your account, which you sign in to with just your email.
- EU consumers have 14 days to change their mind: see the Refund Policy.
Manual: every setting in plain language
Enter your DRF Key in the key input. The group "Any-asset scaling" controls how point inputs follow the symbol.
Donaldson R F Licence
- InpLicenceKey (default: (empty))
- Licence key
Identification
- InpMagicNumber (default: 770002)
- Magic number (different from the grid EA)
- InpTradeComment (default: DRFHedge)
- Text written in the comment field of each order.
Initial entry trigger
- InpFastMA (default: 20)
- Period of the fast moving average.
- InpSlowMA (default: 50)
- Period of the slow moving average.
- InpADX_Period (default: 14)
- ADX period (trend strength).
- InpADX_MinToEnter (default: 20.0)
- Requires a minimum directional strength to open the first leg
Recovery zone
- InpATR_Period (default: 14)
- Number of bars in the Average True Range (ATR).
- InpZoneWidthATRMult (default: 1.5)
- Zone width = ATR x this factor
- InpInitialLot (default: 0.01)
- Order size in lots for the first order of a series.
- InpLegLotMultiplier (default: 1.8)
- Lot factor of each new leg over the previous one
- InpMaxLegs (default: 4)
- Hard cap on legs (never let it grow unchecked)
Basket management (smart exit)
- InpBasketTargetUSD (default: 12.0)
- Cash target for the whole basket of orders, in account currency.
- InpTrailingStartUSD (default: 12.0)
- Basket gain at which trailing starts, in account currency.
- InpTrailingStepUSD (default: 5.0)
- Step of the basket trailing, in account currency.
- InpMaxBasketLossUSD (default: 100.0)
- Defensive hard stop for the basket
News filter (native MT5 calendar)
- InpUseNewsFilter (default: true)
- Pause new entries around scheduled news, using the MetaTrader 5 economic calendar.
- InpNewsMinutesBefore (default: 30)
- How many minutes before a qualifying news release new entries are blocked.
- InpNewsMinutesAfter (default: 30)
- How many minutes after a qualifying news release new entries stay blocked.
- InpNewsMinImportance (default: CALENDAR_IMPORTANCE_HIGH)
- The lowest calendar importance that counts as news for the filter (high, medium or low).
- InpCloseOnAdverseNews (default: true)
- Close the basket when adverse news arrives while it is losing.
- InpAdverseNewsMaxLossUSD (default: 30.0)
- Basket loss, in account currency, at which the defensive close applies.
Spread filter
- InpUseSpreadFilter (default: true)
- Switch the spread filter on or off.
- InpMaxSpreadPoints (default: 350)
- Maximum spread, in points, to allow opening/adding legs
Session filter
- InpUseSessionFilter (default: false)
- Switch the trading-hours filter on or off.
- InpSessionStartHour (default: 3)
- First hour of the day (server time) in which new entries are allowed.
- InpSessionEndHour (default: 21)
- Hour of the day (server time) at which new entries stop.
Any-asset scaling
- InpAutoScalePoints (default: true)
- Scale point-based inputs to this symbol's volatility (default values are tuned for a ~3000-point daily range) Leave on unless you know the symbol is much calmer or wilder than the usual daily range.
Related Expert Advisors
Risk Management
An overlay that closes positions when your daily or session loss limit is reached.
Open →Trend Pullback
Buys dips in an uptrend and sells rallies in a downtrend, using AO and ADX for the trend and an envelope for the entry.
Open →Frequently Asked Questions
- How many legs can it open?
- A fixed number set by an input; the cap exists so it cannot grow without limit.
- What is the zone?
- A price band around the average entry price; breaking it triggers the next leg.
- Is it safer than a grid?
- Not necessarily. The cap limits the count, but each leg is sized to recover the loss and so raises exposure.
- Do I need a DRF Key to run it?
- Yes. The file is free to download, but the EA checks a DRF Key against the licence server when it starts and then every hour. Plans and prices are on the DRF Key page.
- Which provider and account should I use?
- Any MetaTrader 5 account that offers the symbol. Test on a demo account first; the source does not tie the EA to one provider.
- Does it guarantee a result?
- No. Trading carries risk and an EA can lose money. The project holds no published performance figures for this EA, so none are shown.
- Which symbols does it work on?
- Any symbol your provider offers. Inputs that are measured in points scale automatically to the symbol's usual daily range, so the same preset behaves sensibly on a forex pair, an index or Bitcoin. Always test on a demo account first.
- Do I need a key to run it?
- Yes. After you buy, you receive a DRF Key. It works for life and on up to 5 internet addresses at the same time.
- Is there a subscription?
- No. You pay once and keep it for life, with free updates.
- Does it promise a result?
- No. Read the Risk Disclosure. Test on a demo account first; when everything works as you expect, use it on a real account.
Get Expert Advisor and coding news
New Expert Advisors, updates, price changes and videos, by e-mail. A short e-mail only when something is really new. One click to unsubscribe.
Protected by Google reCAPTCHA. The Google Privacy Policy and Terms of Service apply.