BisterOne2
- Experts
- Muchamad Sadam Madjid
- 버전: 5.0
Overview
Multi Confluence EA v5 is a fully automated Expert Advisor specifically engineered for scalping XAUUSD (Gold Spot) on M5 and M15 timeframes. It combines multiple confluence factors — Dual Timeframe trend analysis, ADX strength filter, RSI momentum, EMA crossover, and price action — to identify high-probability entry points while protecting capital through intelligent risk management.
This EA was built and refined through extensive backtesting on XAUUSD M5, achieving a Profit Factor of 1.34 with a controlled maximum equity drawdown of 2.97% over a 3-month test period (January–March 2026).
How It Works
🔍 Dual Timeframe Analysis
The core innovation of this EA is its two-layer trend system:
- H1 Timeframe → determines the overall trend bias using EMA 50. Entries are only allowed in the direction of the higher timeframe trend, preventing the EA from fighting the major trend.
- M5/M15 Timeframe → used for precise entry timing via fast EMA (8) and slow EMA (21) crossover signals.
This approach solves the most common scalping problem: getting whipsawed by short-term noise while the higher timeframe trend is clearly directional.
📊 Signal Confluence (5 Filters)
An entry requires at least 4 of 5 conditions to align simultaneously:
- H1 Trend — Price above/below EMA 50 on H1
- ADX Strength — ADX ≥ 20, confirming trend is strong enough to trade
- EMA Alignment — Fast EMA above/below Slow EMA on entry timeframe
- RSI Momentum — RSI within defined buy/sell zones (not overbought/oversold)
- Price Action — Current candle closes in the direction of the trade
⚡ ATR Spike Filter
The EA automatically detects abnormal volatility spikes (news events, economic releases) and skips entry when the current ATR exceeds the 10-bar average ATR by 2.5×. This prevents getting trapped in erratic price moves during high-impact news.
🕐 Session Filter
Configurable trading session hours. By default, the EA only trades during London and New York sessions (07:00–20:00 server time), avoiding the choppy Asian session where XAUUSD tends to consolidate without direction.
Risk Management
| Feature | Description |
|---|---|
| Fixed Lot / Risk % | Choose between fixed lot size or automatic position sizing based on account balance percentage |
| Max Open Trades | Default: 1 position at a time — no hedging, no overlapping positions |
| Anti-Hedge Protection | EA will not open a buy if a sell is open, and vice versa |
| Daily Drawdown Limit | Stops trading for the day if equity drops by a defined % from daily opening balance |
| Total Drawdown Limit | EA shuts down if total account drawdown exceeds threshold |
| Loss Streak Protection | Stops trading after N consecutive losses (default: 3), resets daily |
| Cooldown After Loss | Waits N bars before attempting the next entry after a loss |
| Daily Profit Target | Automatically stops new entries once the daily profit target ($20 default) is reached |
Trade Management
- Break Even — Moves SL to entry price + small profit buffer once trade reaches 1.2× ATR in profit
- Trailing Stop — Activates after 1.5× ATR profit, trails by 0.4× ATR steps to lock in gains
- ATR-Based SL/TP — Stop loss and take profit are dynamically calculated from current ATR, adapting to market volatility conditions
- Friday Auto-Close — All positions closed before weekend (configurable hour)
Backtest Results (XAUUSD M5 | Jan–Mar 2026)
| Metric | Value |
|---|---|
| Initial Deposit | $10,000 |
| Net Profit | $650.21 |
| Profit Factor | 1.34 |
| Win Rate | 57.57% |
| Max Equity Drawdown | 2.97% ($300) |
| Total Trades | 370 |
| Short Trade Win % | 65.60% |
| Long Trade Win % | 53.47% |
| Recovery Factor | 2.17 |
| Sharpe Ratio | 9.09 |
| History Quality | 98% |
Input Parameters
Trading
| Parameter | Default | Description |
|---|---|---|
| MagicNumber | 2024001 | Unique EA identifier |
| MaxSlippage | 50 | Maximum allowed slippage in points |
Trend — Dual Timeframe
| Parameter | Default | Description |
|---|---|---|
| TrendTF | H1 | Timeframe for trend bias |
| TrendEMA | 50 | EMA period on trend timeframe |
| FastEMA | 8 | Fast EMA for entry timing |
| SlowEMA | 21 | Slow EMA for entry timing |
Signal Filters
| Parameter | Default | Description |
|---|---|---|
| ADX_MinLevel | 20.0 | Minimum ADX to confirm trend strength |
| RSI_Buy_Min/Max | 45 / 65 | RSI range for buy entries |
| RSI_Sell_Min/Max | 35 / 55 | RSI range for sell entries |
| ATR_SpikeMulti | 2.5 | Skip entry if ATR > avg × this value |
Risk Management
| Parameter | Default | Description |
|---|---|---|
| RiskMode | Fixed Lot | Fixed lot or % of balance |
| FixedLot | 0.02 | Lot size for fixed mode |
| RiskPercent | 1.0 | % of balance risked per trade |
| MaxOpenTrades | 1 | Maximum simultaneous positions |
| MaxDailyDrawdown | 4.0% | Daily stop loss limit |
| MaxTotalDrawdown | 12.0% | Total account stop loss limit |
| MaxLossStreak | 3 | Stop after N consecutive losses |
| DailyTargetUSD | $20 | Stop new entries after reaching daily profit |
Trade Management
| Parameter | Default | Description |
|---|---|---|
| UseBreakEven | true | Enable break even |
| BE_StartATR | 1.2 | Activate BE at 1.2× ATR profit |
| UseTrailingStop | true | Enable trailing stop |
| Trail_StartATR | 1.5 | Start trailing at 1.5× ATR profit |
| SessionStart/End | 07 / 20 | Trading session hours |
| CooldownBars | 3 | Bars to wait after a loss |
Recommended Settings
Symbol: XAUUSD (Gold Spot) Timeframe: M5 or M15 Minimum Deposit: $500 (with 0.01 lot) Recommended Deposit: $1,000+ (with 0.02 lot) Broker: Low spread ECN/STP broker (spread < 30 points recommended) Account Type: Hedge or Netting
Dashboard
The EA includes a real-time on-chart dashboard displaying:
- H1 Trend direction
- ADX value and DI+/DI- levels
- Current RSI and ATR
- Session status
- Daily P&L vs target
- Loss streak counter
- Current signal status
Important Notes
- Past performance is not indicative of future results
- Always test on a demo account before going live
- Recommended to run on a VPS for 24/5 uninterrupted operation
- Works best during trending market conditions — performance may vary during extended sideways periods
- Optimized specifically for XAUUSD — use on other symbols at your own risk
Multi Confluence EA v5 — Precision scalping through multi-factor confluence analysis
