Alfa clone EA
- Uzmanlar
- Sürüm: 1.10
- Etkinleştirmeler: 5
Overview
ALFA Clone EA is a MetaTrader 5 expert advisor designed for gold (XAUUSD). It is a momentum-based layering system: it waits for an unusually strong M3 candle, opens a position in the direction of that move, and adds further positions as the trade advances in profit. Each position carries its own stop loss, and the stop is trailed automatically once the trade is in profit.
The EA is built to run with almost no user configuration — lot size is the only parameter exposed in the properties window.
RECOMMENDATIONS
- Recommended Timeframe: The EA is designed to work on the 3M timeframe.
- Trading Instrument: This EA is optimized specifically for Gold (XAUUSD) and should be used only on this symbol.
- Recommended Deposit for Normal Risk: The minimum recommended deposit for trading with a normal risk level is $1,000.
- High-Risk Trading: If your deposit is $500 or lower, trading will already be considered high risk.
Key features
- Momentum entry — trades only when the current M3 candle moves far beyond the market's recent average range; quiet conditions are ignored.
- Directional layering — additional positions are opened only after price moves further in favor of the trade. The EA does not average down into losing positions.
- Per-position stop loss — every position is opened with a stop loss placed on the broker's server.
- Automatic trailing stop — once a position reaches a set profit, its stop follows price and never moves backwards.
- Exposure cap — the number of simultaneous layers is limited by a fixed maximum inside the code.
- Session protection — no entries during the first minutes after the market opens, or the last minutes before it closes.
- Trading-hours filter — entries are restricted to a fixed server-time window.
- Leverage guard — the EA does not trade on accounts below its minimum leverage requirement.
- On-chart dashboard — a text panel shows the timeframe, the market's average movement, the current candle's movement, and the movement required to trigger a signal.
- No external dependencies — pure MQL5, no DLLs and no custom indicators.
How it operates
- On every tick, the EA updates its dashboard on the chart.
- It manages any open positions first (trailing stop logic).
- It checks account leverage, trading hours, and session open/close boundaries.
- It compares the current M3 candle's range against the average range of recent candles.
- If the candle exceeds the momentum threshold, it determines direction from the candle's open and close.
- With no open positions, it opens the first layer in that direction with a stop loss.
- With positions already open, it adds a new layer each time price advances by the configured layer distance.
- The process stops at the maximum layer count, outside trading hours, or when leverage is below the minimum.
Inputs (parameters)
| Parameter | Default | Description |
|---|---|---|
| Lot size | 0.01 | Volume used for every layer. This is the only setting available in the EA properties. |
Fixed settings
All other values — magic number, maximum layers, layer distance, stop loss, trailing activation and distance, timeframe, ATR sample size and multiplier, trading hours, leverage minimum, and session buffers — are defined inside the source code and are not editable from the properties window. Changing any of them requires editing the code and recompiling.
Dashboard
The on-chart panel displays five lines:
- System name
- The selected timeframe
- The average movement of the last 100 candles
- The current candle's movement so far
- The movement required to trigger a signal
Operating requirements
- MetaTrader 5 with an XAUUSD symbol.
- Account leverage at or above the EA's minimum (1:100).
- A hedging account is recommended, since multiple layers can remain open simultaneously.
- Sufficient free margin for the maximum number of layers at the chosen lot size.
Limitations and notes
- The strategy holds multiple positions at once, so drawdown can increase quickly during a sharp reversal.
- Position sizing applies to all layers equally; there is no built-in equity-based or daily-loss stop.
- The momentum filter uses the current, still-forming candle, so signals can appear before the candle closes.
- Results depend on the broker's spread, execution, and the symbol's tick size — verify on a demo account first.
