PrecisionGold PRO Smart Fractal Breakout EA
- Experts
- Khac Thanh Bui
- Versão: 1.30
- Atualizado: 27 março 2026
- Ativações: 5
PrecisionGold PRO
An automated trading system for MetaTrader 5 that combines fractal breakout entries with a dual EMA trend filter and ADX momentum confirmation, designed for XAUUSD on the H1 timeframe.
PrecisionGold PRO is an Expert Advisor built around a fractal breakout strategy applied to Gold (XAUUSD). It identifies confirmed price fractals on H1, validates the breakout direction against a dual EMA trend computed on H4, and requires minimum ADX momentum and 24-hour volatility before placing a pending stop order. Risk per trade is calculated as a percentage of account balance or equity, with stop loss and take profit levels set dynamically using ATR. The EA manages open positions with an optional trailing stop and break-even mechanism, and includes a built-in dashboard for real-time monitoring.
Overview
On each new H1 bar, the EA scans for the most recent confirmed fractal high or low within a configurable lookback window. A fractal is considered valid when a specified number of bars on both sides of the pivot point are lower (for a high fractal) or higher (for a low fractal) than the pivot bar. The direction of the trade is determined by the relationship between the fast EMA and slow EMA on H4: a bullish configuration requires price to be above the fast EMA, which itself must be above the slow EMA; a bearish configuration applies the opposite condition.
Once a valid fractal and a confirmed trend direction are identified, the EA checks that the ADX reading on H1 exceeds the configured minimum level and that the 24-hour high-low range meets the minimum volatility threshold. If all conditions are satisfied and no open position exists, a pending stop order is placed beyond the fractal level with an offset, using ATR-based stop loss and take profit distances. Zone and total pending order limits prevent duplicate orders from accumulating near the same price level.
At each H4 bar close, the EA reviews existing pending orders. If the trend direction has reversed since the last bar, all pending orders are cancelled and the signal logic runs again. If only the fractal level has shifted, orders misaligned with the new fractal are cancelled and replaced. If neither has changed and no orders are active, the EA places a fresh order. This conditional review avoids unnecessary order churn while keeping the order book aligned with current market structure.
Key Features
- Fractal breakout entry: Pending stop orders are placed above confirmed fractal highs for buy entries and below confirmed fractal lows for sell entries, with a configurable offset to reduce false triggers at the fractal level itself.
- Dual EMA trend filter on H4: Entry direction is restricted to align with the H4 trend, defined by the relative position of a fast and slow EMA and the current closing price. Trades against the trend are not placed.
- ADX and volatility gates: The EA requires a minimum ADX reading on H1 and a minimum 24-hour price range before any order is placed, filtering out low-momentum and low-volatility conditions.
- ATR-based stop loss and take profit: Both the stop loss and take profit distances are calculated as multiples of the H1 ATR reading, with configurable minimum and maximum pip limits for the stop loss.
- Conditional pending order management on H4: The EA reviews and rebuilds pending orders only when the trend or fractal level actually changes, avoiding unnecessary cancellations during stable market conditions.
- Trailing stop and break-even: An optional trailing stop activates once profit exceeds a configurable ATR multiple and steps forward in ATR increments. An independent break-even feature moves the stop loss to the open price plus a configurable pip buffer once a separate ATR profit threshold is reached.
- Risk-based lot sizing: Lot size is calculated from the stop loss distance and a percentage of account balance or equity, with user-defined minimum and maximum lot limits and a margin check before every order.
- Session filter and daily trade limit: Trading is restricted to a configurable GMT session window, with optional weekend avoidance. A daily trade count based on executed deals prevents overtrading within a single session.
How It Works
On each new H1 bar, the EA checks whether the trading session and daily trade count allow a new entry. It then reads the latest indicator values and searches for a confirmed fractal within the lookback window. The trend direction is evaluated from the H4 EMA configuration, and the ADX and volatility readings are checked. If all conditions pass and no open position is active, a pending stop order is placed at the fractal level plus the entry offset, with stop loss and take profit calculated from the current ATR. After execution, the trailing stop and break-even logic run on every tick to manage the open position. At each H4 bar close, the pending order book is reviewed against the current trend and fractal state, with selective cancellation and replacement applied where needed.
Recommended Settings
The EA is designed primarily for XAUUSD on H1 with H4 as the trend timeframe. A spread limit of 100 points or above is recommended for Gold to avoid filtering out valid trading conditions during normal market hours. An ECN account type with a low base spread is preferable. A VPS is recommended to ensure uninterrupted execution and accurate pending order management across H1 and H4 bar transitions.
Input Parameters
Strategy Settings
- Magic number — Unique identifier for this EA's orders — Default: 10001
- Order comment — Comment attached to each trade — Default: PrecisionGold
- Maximum spread — Maximum allowed spread in points before trading is paused — Default: 40
Risk Management
- Risk per trade — Percentage of account balance or equity risked per trade — Default: 0.1
- Risk base — Use equity (true) or balance (false) for lot size calculation — Default: false
- Maximum lot size — Upper lot size limit regardless of risk calculation — Default: 0.1
- Minimum lot size — Lower lot size limit — Default: 0.01
Entry Settings
- Left bars — Number of bars to the left that must be lower (high fractal) or higher (low fractal) than the pivot — Default: 5
- Right bars — Number of confirmed closed bars to the right of the pivot — Default: 2
- Fractal lookback — Number of H1 bars to search for a valid fractal — Default: 30
- Minimum fractal distance — Minimum distance in pips between the fractal and current price — Default: 5.0
- Entry offset — Additional pips beyond the fractal level where the pending order is placed — Default: 2.0
Trend Filter
- Fast EMA period — Period for the fast EMA on the trend timeframe — Default: 50
- Slow EMA period — Period for the slow EMA on the trend timeframe — Default: 200
- Trend timeframe — Timeframe used for EMA trend evaluation and pending order review cycle — Default: H4
Momentum Filter
- ADX period — Calculation period for the ADX indicator on H1 — Default: 14
- Minimum ADX level — Minimum ADX reading required before placing an order — Default: 20.0
- ATR period — Calculation period for the ATR indicator on H1 — Default: 14
- Minimum volatility — Minimum 24-hour high-low range in pips required to allow entry — Default: 40.0
Exit Management
- Stop loss ATR multiplier — Stop loss distance expressed as a multiple of ATR — Default: 2.5
- Take profit ATR multiplier — Take profit distance expressed as a multiple of ATR — Default: 5.0
- Minimum stop loss — Minimum stop loss distance in pips — Default: 100.0
- Maximum stop loss — Maximum stop loss distance in pips — Default: 300.0
Trailing Stop
- Enable trailing stop — Activate the trailing stop mechanism — Default: true
- Trail activation — Profit threshold in ATR multiples required to start trailing — Default: 3.0
- Trail step — Step size for trailing stop adjustments expressed as an ATR multiple — Default: 2.0
Break Even
- Enable break even — Activate the break-even stop loss mechanism — Default: false
- Break even activation — Profit threshold in ATR multiples required to activate break even — Default: 2.0
- Locked profit at break even — Minimum pip buffer above the open price locked in when break even activates — Default: 50.0
Trading Filters
- Use session filter — Restrict trading to a defined GMT time window — Default: true
- Session open — Session start time in GMT (hh:mm format) — Default: 07:00
- Session close — Session end time in GMT (hh:mm format) — Default: 21:00
- Avoid weekend — Prevent new orders from Friday evening through Sunday — Default: true
- Weekend start time — GMT time on Friday from which trading is suspended — Default: 22:00
- Maximum daily trades — Maximum number of executed entries allowed per day — Default: 10
- Minimum gap between trades — Minimum minutes between two consecutive trade executions — Default: 30
Pending Order Control
- Maximum orders per zone — Maximum pending orders allowed within the same price zone radius — Default: 3
- Zone radius — Price zone radius in pips used to detect duplicate pending orders — Default: 3.0
- Maximum total pending orders — Maximum total pending orders allowed for this EA at any time — Default: 10
Dashboard
- Show dashboard — Display the real-time monitoring panel on the chart — Default: true
Past performance in backtesting does not guarantee future results. All trading involves risk. Test thoroughly on a demo account with your broker's conditions before running on a live account.

The seller was supportive and the bot works well thank you Tomy.