Gold Scalper Pro Expert
- Experts
- Versione: 1.0
- Attivazioni: 5
[b]Gold Scalper Pro Expert[/b]
An automated scalping Expert Advisor for MetaTrader 5, designed for XAUUSD (gold). It combines signals from four timeframes (M1, M5, M15 and M30), a set of candle pattern checks, and a self-learning scoring model that adjusts its weights from closed trades.
[b]Key advantages[/b]
[list]
[*] [b]Multi-timeframe confirmation:[/b] a trade needs agreement from several timeframes, which filters out many weak signals.
[*] [b]Candle pattern detection:[/b] recognizes engulfing candles, morning and evening stars, hammers, shooting stars, three soldiers or crows, and marubozu candles.
[*] [b]Real SuperTrend calculation:[/b] trailing ATR bands computed on every timeframe.
[*] [b]Adaptive scoring:[/b] an online learning model weights each indicator according to how well it has worked in recent closed trades. The weights are saved between restarts and can be reset.
[*] [b]Market regime detection:[/b] labels the market as trending, ranging, mixed or squeezing, and blocks entries in tight squeezes unless a strong candle pattern appears.
[*] [b]Fast exits:[/b] closes positions as soon as the profit target is reached.
[*] [b]Protection tools:[/b] breakeven stop, trailing profit lock, per-trade loss cap, basket stop, daily drawdown limit, loss-streak cooldown, spread filter and news filter.
[*] [b]Live dashboard:[/b] a full-screen panel with timeframe bias, AI probabilities, signal status, risk gauges, open trades and an event log. It resizes with the chart.
[/list]
[b]How it trades[/b]
The EA checks the market several times per second. It opens a trade when the scoring model shows a clear edge, the spread is acceptable, a live one-minute candle moves in the trade direction, and at least two of the higher timeframes agree. The first trade can open with a slightly lower confidence threshold. Additional positions are added only when the basket is in profit and the market has moved away from the last entry.
[b]Input parameters[/b]
[i]Capital and risk[/i]
[list]
[*] [b]InpUseFixedBase[/b] (false): if true, the daily starting balance is the fixed value below. If false, it uses equity at the start of each day.
[*] [b]InpBaseCapital[/b] (100.0): fixed starting balance, used only when the option above is true.
[*] [b]InpDailyTargetPercent[/b] (15.0): the EA stops opening trades once this daily gain is reached.
[*] [b]InpDailyDrawdownPercent[/b] (10.0): the EA stops trading for the day when this daily loss is reached.
[*] [b]InpMaxLossMoney[/b] (3.00): maximum loss allowed on a single position.
[*] [b]InpRiskReward[/b] (2.0): stop-loss size relative to the profit target, capped by the maximum loss above.
[*] [b]InpMaxBasketLoss[/b] (6.00): all positions are closed if the combined loss reaches this amount.
[*] [b]InpMinProfitMoney[/b] (0.40): minimum profit target per position.
[*] [b]Lot1 / Lot2 / Lot3[/b] (0.01 / 0.02 / 0.03): lot size for the first, second and third position.
[*] [b]MaxPositions[/b] (3): maximum number of open positions.
[*] [b]UseAutoLot[/b] (false): scales lot sizes with account balance. Use with caution.
[*] [b]AutoLotPerEquity[/b] (100.0): balance increment that adds one lot step when auto lot is on.
[*] [b]InpMaxConsecLoss[/b] (3): number of losing trades in a row that triggers a cooldown.
[*] [b]InpCooldownMinutes[/b] (10): length of the cooldown after a losing streak.
[/list]
[i]Entry and exit[/i]
[list]
[*] [b]TradeMode[/b] (Both): choose Both, Buy only or Sell only.
[*] [b]InpOrderGapPrice[/b] (0.50): minimum price distance from the last entry before a new one.
[*] [b]MinSecondsBetweenEntries[/b] (2): minimum seconds between entries.
[*] [b]FirstTradeImmediate[/b] (true): allows the first trade to open with a relaxed threshold.
[*] [b]ProfitOnlyAdds[/b] (true): new positions are added only when the basket is in profit.
[*] [b]InstantCloseOnTarget[/b] (true): closes a position as soon as its target is reached.
[*] [b]UseServerStops[/b] (true): sends stop-loss and take-profit levels to the broker.
[*] [b]UseBreakeven[/b] (true): moves the stop to the entry price once a set part of the target is reached.
[*] [b]BreakevenTriggerFraction[/b] (0.45): share of the target needed to activate breakeven.
[*] [b]UseProfitLock[/b] (true): trails the stop to lock in part of the profit.
[*] [b]LockStartFraction[/b] (0.70): share of the target needed to start the profit lock.
[*] [b]LockKeepFraction[/b] (0.55): share of current profit the lock keeps.
[*] [b]MaxSpreadOfTarget[/b] (0.35): skips trades when the spread would use too much of the target.
[/list]
[i]Indicators[/i]
[list]
[*] [b]FastEMA / SlowEMA / TrendEMA[/b] (8 / 21 / 50): moving average periods.
[*] [b]ATRPeriod[/b] (14), [b]RSIPeriod[/b] (14), [b]ADXPeriod[/b] (14), [b]StochK / StochD / StochSlow[/b] (5 / 3 / 3), [b]MacdFast / MacdSlow / MacdSignal[/b] (12 / 26 / 9), [b]BBPeriod[/b] (20), [b]BBDev[/b] (2.0).
[*] [b]SuperTrendMult[/b] (3.0): ATR multiplier for the SuperTrend bands.
[/list]
[i]AI brain[/i]
[list]
[*] [b]MinSignalScore[/b] (0.62): minimum rule-based confluence score.
[*] [b]MinAIProb[/b] (0.62): minimum model probability for a normal entry.
[*] [b]MinAIProbFirst[/b] (0.55): minimum model probability for the first entry.
[*] [b]AILearning[/b] (true): updates the model from closed trades.
[*] [b]AILearnRate[/b] (0.08): how quickly the model adapts.
[*] [b]WeightM1 / WeightM5 / WeightM15 / WeightM30[/b] (0.20 / 0.30 / 0.25 / 0.25): influence of each timeframe.
[*] [b]AIConfidenceBoost[/b] (0.08): extra score when three or more timeframes agree.
[/list]
[i]Filters and system[/i]
[list]
[*] [b]MaxSpreadPoints[/b] (40.0): no trades when the spread is wider than this.
[*] [b]UseSessionBoost[/b] (true): favors London and New York sessions.
[*] [b]UseNewsFilter[/b] (true): pauses trading around high-impact USD news.
[*] [b]NewsBlockBeforeSeconds / NewsBlockAfterSeconds[/b] (300 / 180): news pause window.
[*] [b]MaxDeviationPoints[/b] (60): maximum slippage allowed on orders.
[*] [b]MagicNumber[/b] (26100303): identifies this EA's trades. Change it if you run more than one copy.
[*] [b]RequireHedging[/b] (true): the EA only runs on hedging accounts.
[*] [b]ShowDashboard[/b] (true): shows or hides the dashboard.
[/list]
[b]Requirements[/b]
[list]
[*] MetaTrader 5 with a hedging account.
[*] Gold symbol (XAUUSD or a broker name containing XAU or GOLD).
[*] A VPS or stable connection is recommended for continuous operation.
[/list]
[b]Risk warning[/b]
Trading gold with leverage carries a high risk of loss. Past or simulated results do not guarantee future performance. The AI component is a learned scoring model and does not predict prices. Test on a demo account first and use position sizes you can afford to lose.
