Adaptive Xauusd Hedgefund Expert
- Uzmanlar
- Sürüm: 3.21
- Güncellendi: 30 Kasım 2026
- Etkinleştirmeler: 10
Short description
Automated Gold expert advisor for MetaTrader 4 with Auto mode that switches between trend and reversal logic, volatility breakout entries, pending stop orders, a trailing stop and a live dashboard.
Full description
Adaptive XAUUSD Hedgefund EA for MetaTrader 4 trades Gold (XAUUSD) on the M1 timeframe. It waits for a volatility expansion, places a pending stop order, and protects the trade with a trailing stop. In the default Auto mode, the EA reads the market and chooses between trend following and reversal logic for you. You can also lock it to Trend or Reversal manually.
Auto mode (default)
The EA checks the last closed bar of the chart timeframe with three measurements:
- ADX, for trend strength
- Kaufman Efficiency Ratio, for how directly price is moving
- Bollinger Band width compared with its recent average
Each measurement votes for a trending or ranging market. When at least two of the three agree, the EA considers a switch.
To avoid flipping back and forth, the new regime must hold for several bars. There is also a minimum number of bars between switches. When the mode changes, pending stop orders from the old mode are removed. Open positions keep trailing as normal.
The dashboard shows the active selector, the live ADX, ER and Bollinger readings, the vote count, and the progress of a pending switch.
Manual override
Set Strategy Mode to Trend or Reversal to turn automatic switching off. The choice applies immediately.
Default settings
The default inputs are the preset for XAUUSD on M1. Attach the EA to an XAUUSD M1 chart and it is ready to run without changing any inputs. The defaults are not guaranteed to be the best settings for every broker, spread level or market condition. The Auto mode thresholds are starting values. Test them on your broker's data before trading live.
How it works
- A volatility filter requires the current bar range to exceed a set number of points.
- A moving average channel of the highs and lows defines the setup. In Trend mode, price above the channel prepares a Buy Stop and price below it prepares a Sell Stop. In Reversal mode the direction is inverted.
- Spread, the optional time window and the open order count are checked.
- A pending stop order is placed with a stop loss. It follows the market closer until it is triggered.
- After the fill, the stop loss trails price and only moves in your favor.
Features
- Auto, Trend and Reversal strategy selector, with Auto as the default
- Three-measurement regime detection with confirmation bars and a minimum gap between switches
- Optional indicator filters you can turn on or off: MMR (EMA, LWMA, MACD and RSI), SAR with ADX, Donchian channel, Awesome Oscillator, volatility and DeMarker. A DPO turning filter is available for Reversal mode.
- One order or position at a time, with a stop loss on every trade
- No martingale, no grid, no hedging
- Risk-based lot sizing or fixed lots
- Margin safety check at 90 percent of free margin
- Spread protection with commission estimate
- Optional time filter
- Live dashboard with account data, mode selector status, signal status, positions and statistics
- Daily Fibonacci levels for visual reference
Recommended setup
- Symbol: XAUUSD (or your broker's Gold symbol)
- Timeframe: M1
- Account: low spread or ECN
- Minimum recommended deposit: $500 USD (or the equivalent on a cent account), $1,000 or more preferred
- VPS recommended
- Test on a demo account first
- Avoid Sunday open trading if possible
Key inputs (defaults)
- StrategyMode: AUTO (options: AUTO, TREND, REVERSAL)
- Auto_ADXPeriod: 14
- Auto_ADXTrendLevel / Auto_ADXRangeLevel: 25 / 20
- Auto_ERPeriod: 20
- Auto_ERTrendLevel / Auto_ERRangeLevel: 0.35 / 0.20
- Auto_BBPeriod / Auto_BBDeviation / Auto_BBAvgBars: 20 / 2.0 / 100
- Auto_BBExpandRatio / Auto_BBSqueezeRatio: 1.20 / 0.90
- Auto_VotesNeeded: 2 (of 3)
- Auto_ConfirmBars: 3
- Auto_MinBarsBetweenSwitch: 10
- Auto_DefaultTrend: true (the first mode used if the regime is unclear)
- Auto_DeletePendingOnSwitch: true
- Filter: 960 points
- StopLoss: 5 points. The stop is automatically widened to your broker's minimum stop level if needed.
- Limit: 155 points
- Distance (trailing): 15 points
- RiskPercent: 2.0
- UseMM: true
- MAPeriod / MAMethod / MAShift: 27 / EMA / 26
- MaxSpreadPlusCommission: 100 points
- MagicNumber: 20241
- Optional filters: all off by default except DPO. The DPO filter only takes effect in Reversal mode.
Important notes
- The EA is designed for XAUUSD on M1. Other symbols and timeframes are not supported for live trading.
- Auto mode reads the chart timeframe. Its settings are timeframe-sensitive and would need retuning on any other timeframe.
- Auto mode reacts to past bars. A regime can change right after a switch, so it does not guarantee that the right mode is always selected.
- The defaults are the result of optimization on historical data. Results vary with broker, spread, execution speed and market conditions.
- The default risk of 2 percent per trade is aggressive on small accounts. Consider lowering RiskPercent.
Risk warning: Trading Gold and leveraged products carries a high level of risk. You can lose some or all of your capital. Past results and backtests do not guarantee future results. This is a software tool, not financial advice.
