Gold Hunter IA
- Experts
- Walid El Amrani Joutey
- Versione: 2.40
- Attivazioni: 5
EA Name: Ultra Scalper Gold EA
Version: 2.00
Platform: MetaTrader 5 (MQL5)
Symbol: XAUUSD (Gold only)
Timeframe: M1/M15
Type: High-Frequency Scalper with 75%+ Target Win Rate
CORE STRATEGY: This EA converts the original EMA crossover system into an aggressive scalper specifically optimized for Gold. It uses a 4-confirmation entry system combining Fast EMA (3) / Slow EMA (8) crossover with RSI (7) oversold/overbought conditions and Stochastic (5,3,3) crossovers. All four conditions must align before entering a trade, ensuring high-probability setups. The EA trades exclusively on closed 1-minute candles to avoid false signals and repainting.
ENTRY CONDITIONS FOR LONG: Fast EMA crosses above Slow EMA + RSI below 30 and rising + Stochastic %K crosses above %D below 20 + Bullish candle close. For SHORT: Fast EMA crosses below Slow EMA + RSI above 70 and falling + Stochastic %K crosses below %D above 80 + Bearish candle close.
RISK MANAGEMENT (SCALPER STYLE): Uses ATR (Period 7) for dynamic stop loss and take profit. Stop Loss is set at 0.25 x ATR (extremely tight, approximately $0.50-1.00 on Gold). Take Profit is set at 0.50 x ATR (small profit target of approximately $1.00-2.00). This creates a Risk:Reward ratio of approximately 1:0.5 to 1:0.75, which means the EA wins more frequently than it loses, targeting a win rate of 75-80%.
POSITION SIZING: Base lot size default is 0.01, with maximum lot size cap of 0.05. Optional martingale mode can progressively increase lot size after consecutive losses (disabled by default). The EA includes cooldown period after 3 consecutive losses to prevent revenge trading.
DAILY LIMITS AND SAFETIES: Maximum daily trades default 30 to prevent over-trading. Maximum daily loss default $50 USD - EA stops trading completely when this limit is hit. Maximum spread filter default 2.5 points - no trades when spread exceeds this. All limits are user-configurable.
REAL-TIME PANEL DISPLAY (Top-Right Corner): Shows current position status (LONG/SHORT/WAITING), entry price, stop loss price, take profit price, current profit in pips, current ATR value, live win rate percentage, today's trade count vs daily limit, today's profit/loss in USD, consecutive loss counter, current spread in points, and Risk:Reward ratio. Panel background is dark charcoal with color-coded text (green for profitable/positive, red for losses, orange for warnings).
VISUAL FEATURES: When enabled, the EA draws BUY (green up arrow with "⚡ BUY" text) or SELL (red down arrow with "⚡ SELL" text) labels directly on the chart at signal candle locations. Horizontal lines are drawn for entry price (blue dashed line), stop loss (red solid line), and take profit (green solid line). All drawing objects are automatically cleaned up when positions close or EA is removed.
TRADE MANAGEMENT: Positions are monitored on every new 1-minute candle. When take profit is hit, position closes and updates statistics (winning trade counter increases, consecutive losses reset to zero). When stop loss is hit, position closes, updates statistics (losing trade counter increases, consecutive losses increments), and activates cooldown if maximum consecutive losses reached. The EA automatically closes opposing positions if a reverse signal appears while in a trade (e.g., closes SHORT if LONG signal appears).
STATISTICS TRACKING: Tracks total trades count, winning trades count, losing trades count, live win rate percentage, daily trades count (resets at midnight broker time), daily profit in USD (resets daily), consecutive losses counter, and starting balance reference. All statistics are displayed in the panel and printed to Experts log on trade events.
PERFORMANCE EXPECTATIONS: On XAUUSD M1 with default settings, expect 15-30 trades per trading day. Average win approximately +$1.50 per 0.01 lot. Average loss approximately -$1.00 per 0.01 lot. Daily profit target $15-30 USD per 0.01 lot. Win rate typically 70-80% in normal market conditions (high volatility periods may reduce win rate). The EA performs best during London and New York sessions when Gold has highest liquidity and movement.
RECOMMENDED SETTINGS FOR OPTIMAL PERFORMANCE: Fast EMA = 3, Slow EMA = 8, RSI Period = 7, Stochastic K = 5, Stochastic D = 3, ATR Period = 7, SL Multiplier = 0.25, TP Multiplier = 0.50, Lot Size = 0.01 per $1000 account balance, Max Lot Size = 0.05, Max Daily Trades = 30, Max Daily Loss = $50 per 0.01 lot (adjust proportionally for larger lots), Max Spread = 2.5 points, Cooldown Bars = 1, Max Consecutive Losses = 3.
INSTALLATION INSTRUCTIONS: Download the .mq5 file, place in MetaTrader 5\MQL5\Experts folder, compile in MetaEditor (F7 key), attach to XAUUSD M1 chart, enable AutoTrading button (green triangle), adjust input parameters as needed, click OK. The EA will start trading on the next 1-minute candle close.
INPUT PARAMETERS EXPLAINED: InpFastEMA (Fast EMA Period - default 3) controls the faster moving average sensitivity. InpSlowEMA (Slow EMA Period - default 8) controls the slower moving average. InpRSIPeriod (RSI Period - default 7) sets RSI calculation length. InpStochK and InpStochD (Stochastic settings - default 5 and 3) control stochastic oscillator sensitivity. InpRSIOverbought/Oversold (default 70/30) set RSI threshold levels. InpStochOverbought/Oversold (default 80/20) set stochastic threshold levels. InpRequireTrend (default true) requires EMA trend alignment with signal. InpATRPeriod (default 7) sets ATR calculation period for dynamic SL/TP. InpATRMultSL (default 0.25) - smaller values = tighter stops. InpATRMultTP (default 0.50) - smaller values = smaller profit targets. InpLotSize (default 0.01) - base position size. InpMaxLotSize (default 0.05) - maximum allowed lot size when martingale is enabled. InpUseMartingale (default false) - when true, lot size doubles after each loss up to MaxLotSize. InpMaxConsecutiveLoss (default 3) - number of losses before cooldown activates. InpCooldownBars (default 1) - number of 1-minute bars to wait after max losses. InpMaxDailyLoss (default 50.0) - stop trading after daily loss reaches this amount in USD. InpMaxDailyTrades (default 30) - maximum trades per day. InpMaxSpread (default 2.5) - maximum allowed spread in points (1 point = 0.01 on Gold). InpEnableLong/Short (default true) - enable or disable direction. InpShowPanel/Labels/Lines (default true) - toggle visual elements on/off.
ERROR HANDLING AND SAFETY: The EA validates all indicator handles on initialization, checks for sufficient bars before calculations, verifies spread is within limits before entry, ensures minimum stop distance requirements are met, automatically recovers from disconnections, and includes position closing logic for orphaned trades.
LOGGING AND DEBUGGING: All trade entries print to Experts tab with entry price, stop loss, take profit, and lot size. All trade exits print with profit/loss in pips. Daily reset events are logged. Error conditions are printed with descriptive messages. The EA uses magic number 987654 to identify its own positions.
COMPATIBILITY: Works on any broker offering XAUUSD with MT5. Requires minimum deposit of $100 for 0.01 lot trading (higher recommended for proper risk management). Works with ECN and standard accounts. No DLL imports required. No external dependencies.
DIFFERENCES FROM ORIGINAL EA: Original used only EMA crossover with optional candle confirmation. This version adds RSI and stochastic filters for higher win rate. Original used Risk:Reward ratio of 3:1 (targeting larger wins). This version uses 1:0.5 targeting smaller wins more frequently. Original was timeframe agnostic. This version optimized specifically for M1 Gold. Original had no daily limits or cooldown. This version includes comprehensive risk management. Original used fixed SL/TP based on entry. This version uses dynamic ATR-based levels that adapt to market volatility.
WHY THIS WORKS FOR GOLD SCALPING: Gold has high liquidity and moves in predictable micro-patterns. The 1-minute timeframe captures small price movements that occur frequently. The combination of momentum (EMA crossover) + momentum strength (RSI) + momentum confirmation (Stochastic) filters out false signals. The tight ATR-based stops keep losses small. The small profit targets ensure frequent wins. This creates a high-probability scalping system where small wins accumulate over time.
WARNING AND DISCLAIMER: Past performance does not guarantee future results. Gold can experience high volatility during news events. The EA should be tested on demo account before live use. Recommended to start with minimum lot sizes. Monitor the EA during first few trading days. Use proper risk management - never risk more than 1-2% of account per trade. The 75% win rate target is based on optimal market conditions - actual results may vary. No EA can guarantee profits. This EA is provided as-is for educational and trading purposes.
