Confluence Trend EA
- エキスパート
- Yuttapoom Gonkon
- バージョン: 2.0
- アクティベーション: 5
The EA uses a 3-layer confluence system before entering any trade:
1. <b>Trend Filter (EMA Cross)</b> — EMA50 vs EMA200 determines the current trend direction. Buy signals only trigger in uptrends; Sell signals only in downtrends.
2. <b>H4 EMA200 Bias Filter</b> — A higher timeframe filter ensures trades align with the dominant market structure. Long trades require price to be above the H4 EMA200; Short trades require price below it.
3. <b>RSI Momentum Confirmation</b> — RSI(14) must confirm momentum before entry. Buy requires RSI above 55; Sell requires RSI below 40. This prevents entering trades in exhausted or sideways conditions.
All three conditions must align simultaneously — no signal is taken unless full confluence is achieved.
<b>Risk Management</b>
- <b>ATR-Based Stop Loss</b> — Stop loss is dynamically calculated using ATR × 2.5, adapting automatically to current market volatility. No fixed pip stops.
- <b>Fixed Risk Per Trade</b> — Lot size is calculated so each trade risks exactly 1% of account balance (configurable).
- <b>2:1 Reward-to-Risk</b> — Take profit is set at 2× the stop loss distance by default.
- <b>Daily Drawdown Guard</b> — Trading automatically pauses for the rest of the day if daily drawdown exceeds the MaxDailyDD% threshold (default 5%).
- <b>Session Filter</b> — Only trades during high-liquidity sessions (default 07:00–20:00 server time), avoiding low-volume periods.
- <b>Spread Filter</b> — Skips entry if broker spread exceeds the maximum allowed (default 30 points).
<b>Key Features</b>
- Works on any timeframe (recommended M15)
- Optimized for XAUUSD but adaptable to other instruments
- One position at a time — no grid, no martingale
- Fully configurable inputs — adjust all parameters to your broker and risk tolerance
- Clean, readable journal logs for every trade and guard event
- Compatible with any MT5 broker
<b>Input Parameters</b>
RiskPercent — Risk per trade as % of balance (default 1.0)
FastEMA — Fast EMA period (default 50)
SlowEMA — Slow EMA period (default 200)
RSI_Period — RSI period (default 14)
RSI_BuyLevel — Minimum RSI for buy entry (default 55)
RSI_SellLevel — Maximum RSI for sell entry (default 40)
DisableShorts — Set true for long-only mode, recommended for Gold uptrend (default true)
UseH4Filter — Enable H4 EMA200 trend filter (default true)
H4_EMA_Period — H4 EMA period (default 200)
ATR_Period — ATR period for SL calculation (default 14)
ATR_Multiplier — SL distance multiplier (default 2.5)
RR_Multiple — Reward-to-risk ratio for TP (default 2.0)
MaxSpread — Maximum allowed spread in points (default 30)
MaxDailyDD_Pct — Daily drawdown limit % before pausing (default 5.0)
UseSessionFilter — Enable session time filter (default true)
SessionStartHour — Trading session start hour (default 7)
SessionEndHour — Trading session end hour (default 20)
SlippagePoints — Maximum allowed slippage (default 20)
<b>Recommended Settings</b>
Symbol: XAUUSD
Timeframe: M15
Minimum deposit: $200
Leverage: 1:100 or higher
Broker: Any ECN/STP broker with low spread on Gold
<b>Backtesting Results</b>
Tested on XAUUSD M15 from January 2025 to February 2026 using real tick data (100% quality):
- Net Profit: +$3,376 on $200 deposit (16.8× growth)
- Profit Factor: 1.46
- Max Balance Drawdown: 12.6%
- Sharpe Ratio: 2.56
- Total Trades: 1,248
<b>Important Notes</b>
- Past performance does not guarantee future results
- Always test on a demo account before going live
- Recommended minimum balance $200 for proper lot sizing
- Not suitable for brokers with spreads above 3 pips on Gold
