LiquidX Hunter
- Experts
-
Alexandre Vincent Traber
Algorithmic trading developer building Expert Advisors for MetaTrader 5. - Version: 2.0
- Updated: 23 July 2026
Overview
LiquidX Hunter is a breakout Expert Advisor built around Donchian Channel liquidity levels, combining ATR-based volatility filtering with a percentage-based take profit and a post-loss recovery filter. Designed and tested on XAUUSD, H1, it targets clean directional breakouts while avoiding re-entry into a market that has not yet moved away from a recent losing trade.
How it works
- The EA tracks the highest high and lowest low over a configurable Donchian lookback period.
- A trade opens when price breaks beyond the channel by a defined point offset — buy above the upper level, sell below the lower level.
- Stop loss is placed using an ATR multiplier, adapting to current volatility instead of a fixed distance.
- Take profit is set as a percentage of the entry price.
- An optional ATR trailing stop can lock in profit as the trade develops, only activating once a minimum ATR profit threshold is reached, and never sent when it would land too close to the market or to an existing take profit.
- After a losing trade, the EA waits until price has moved a minimum percentage away from the loss entry before allowing a new signal, filtering out immediate revenge entries.
- A spread filter blocks entries when the current spread exceeds a defined maximum, avoiding gap-open and abnormal-liquidity conditions.
- Position sizing is risk-based (% of account balance), with margin and broker volume-limit checks performed before every order.
Inputs
- Donchian Lookback Period: number of bars used to compute the breakout channel
- Entry Buffer (Points): distance beyond the channel level required to confirm a breakout
- Take Profit (%): target profit as a percentage of entry price
- Stop Loss ATR Multiplier: volatility multiplier applied to ATR for stop loss distance
- Enable ATR Trailing Stop: activates the trailing stop module
- Trailing Start (ATR): profit in ATR multiples required before trailing begins
- Trailing Step (ATR): distance maintained between price and trailing stop
- Base Risk (%): risk per trade as a percentage of account balance
- Recovery Distance (%): minimum price movement away from a losing entry before re-entry is allowed
- Max Spread (Points): maximum allowed spread for a new entry
- Magic Number: unique identifier for this EA's trades
- Trade Comment: label attached to every order
- Show Dashboard: toggles the on-chart live panel
- Dashboard X / Y Offset: panel position on the chart
Optimizer scoring system
LiquidX Hunter includes a custom OnTester scoring function designed to fight curve-fitting during optimization. Instead of ranking results by raw net profit, it scores the equity curve on smoothness (R²), profit speed (slope), stability between the first and second half of the test (split R² divergence), profit concentration in a single trade (skew penalty), drawdown depth and duration (Ulcer Index), capital efficiency (MAR ratio), and trade count reliability. Runs with negative profit, an insufficient profit factor, excessive drawdown, or too few trades are automatically disqualified before scoring.
Set Optimizer Criterion to Custom max to use this scoring system.
Recommended setup
- Symbol: XAUUSD
- Timeframe: H1
- Modeling: 1 Minute OHLC for optimization passes, Every Tick for final confirmation and live use
- A VPS with low latency to your broker is recommended for consistent execution
Screenshots
Live chart example on XAUUSD H1 showing the on-chart dashboard (balance, equity, EA net profit, live and all-time drawdown, state) alongside the ATR(14) indicator used for stop loss and trailing calculations.
Disclaimer
Past performance shown in backtests and screenshots does not guarantee future results. Test thoroughly on a demo account before live deployment. Trading involves risk of loss; use appropriate position sizing for your account.
