EES Hedger
EES Hedger is a hedging Expert Advisor that opens opposing positions to protect existing trades from adverse market moves. It dynamically manages hedge positions based on market conditions and account exposure, aiming to limit drawdown while preserving profit potential. The EA systematically creates offsetting orders when certain loss thresholds or market divergence criteria are met.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
Why this EA never traded: no entry rule survived the conversion.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Blow-up risk: No blow-up pattern found
- Has no stop loss or trailing stop
On its own this is not a typical blow-up pattern, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The core strategy of EES Hedger is protective hedging, automatically opening opposing positions when floating losses on existing trades reach a configured threshold. Entry conditions are triggered by account drawdown percentage or absolute loss amount, and may also incorporate price deviation indicators to determine when hedging is necessary. Exit conditions include closing hedge positions simultaneously with the main position, or independently closing hedges when they reach their own profit targets. Position sizing for hedge orders is typically proportional to the main position, adjustable via a user-configured hedge ratio parameter. Money management involves monitoring overall account risk exposure and increasing hedge intensity when total risk exceeds acceptable limits. The overall strategy is defensive in nature, suitable for volatile market environments but potentially increasing trading costs due to spread and swap charges.
Strengths
- Hedging strategy effectively limits directional risk exposure and reduces maximum account drawdown
- Flexible parameterized design allows users to adjust trigger thresholds and hedge ratios for different markets
- Provides an additional layer of account protection during extreme volatility or black swan events
- Systematic execution avoids emotional decision-making and ensures hedging discipline
Weaknesses
- Hedging increases trading costs including spread and overnight swap fees, which can erode profits over time
- May trigger hedges too frequently in choppy markets, leading to over-trading and cost accumulation
- Hedge positions without stop losses can themselves become new sources of risk
- Hedging may lock in floating losses rather than truly addressing the underlying directional judgment error
Possible improvements
- Add a volatility filter (e.g., ATR) to avoid unnecessary hedge triggers in low-volatility environments
- Implement intelligent hedge reduction logic, gradually decreasing hedge exposure when the main position direction proves correct rather than closing all at once
- Incorporate swap cost calculation to suppress hedging when carry costs exceed the potential protective benefit
Risk assessment
Overall risk: Medium
- Hedge positions without stop losses may amplify losses in extreme market conditions
- Frequent hedge triggers can lead to accumulated spread costs
- Lack of new bar detection may cause duplicate position opens within the same candle
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
HedgeTriggerPercent | 5.0 | Floating loss percentage to trigger hedge |
HedgeLotRatio | 1.0 | Hedge position to main position lot ratio |
MaxHedgePositions | 3 | Maximum allowed hedge positions |
CloseHedgeOnProfit | true | Auto-close hedge positions on profit |
HedgeMagicNumber | 123456 | Magic number for hedge orders |
StopLossHedge | 0 | Hedge position SL in points; 0=disabled |
Similar Hedging EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.