Collection · MT5

Xau Cloud AI Sniper

by Lamarrsdrip

Xau Cloud AI Sniper is an automated trading robot for MetaTrader 5 designed for gold trading.

High risk

GitHub stars1
Forks0
Last updateyesterday21 Sep 2026
LicenceNone stated

Overview

Xau Cloud AI Sniper utilizes a multi-layered entry pipeline involving a pattern engine, breakout detection, and trend alignment, often synchronized with external cloud-based market outlooks. The system features an AI-filter mode to validate trade candidates based on confidence scores. Risk management is handled through a tiered Equity Protection Factor (EPF) system that adjusts aggression or locks profits based on intraday performance. It supports both balance-proportional lot sizing and risk-based calculations using stop losses.

Details

Input parameters

Read from XauCloud_v6.28.7_ASTRA_REPAIRED.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLicensePINstring
InpAccountModeENUM_ACCT_MODEACCT_BALANCEDv5.8.4: original default risk preset for demo/cloud testing
InpTradeModeENUM_XAU_TRADE_MODEBALANCED_MODESAFE=stricter blocks, BALANCED=context-aware, AGGRESSIVE=allow clean B/continuation warnings
InpAdaptiveTransitionModeENUM_ADAPTIVE_TRANSITION_MODEADAPTIVE_TRANSITION_ACTIVEtransition context/management remains active
InpAllowAdaptiveReversalDirectEntryboolfalsev6.25.22: OFF by default after 30-day evidence; canonical M10 may still originate the direction
InpAdaptiveTransitionPresetIdstringXAUUSD_AI_Sniper_EA_v6.24.1_ACTIVE.setdeployment identity; chart/preset must preserve this exact production marker
InpTransitionPersistenceBarsint3closed M5 bars required before a directional lifecycle transition becomes authoritative
InpTransitionMatureThresholddouble60.0
InpTransitionExhaustThresholddouble70.0invariant: >=70 blocks every old-direction autonomous entry source
InpTransitionProbabilityThresholddouble57.0
InpTransitionReversalThresholddouble68.0
InpTransitionMinRewardPipsdouble1.20
Show all 40 inputs
NameTypeDefaultDescription
InpTransitionPreferredOppositeAtdouble80.0compact local reversal package may approve before HTF flips
InpTransitionFastConfirmSecondsint30dedicated high-exhaustion reversal confirmation, closed-bar/microstructure proven and anti-chase guarded
InpTransitionOldConfidenceCapdouble35.0successful opposite counter evidence during high exhaustion caps old confidence
InpTransitionCounterDecayMinutesint120successful counter evidence fades; it cannot remain permanently bullish/bearish
InpTransitionActiveExitAuthoritybooltruewhen ACTIVE, R manager remains sole broker-close owner and consumes transition recommendations
InpTransitionMaxOriginExtensionATRdouble2.00first reversal leg beyond this is consumed; wait for value reset instead of chasing
InpTransitionMaxValueDistanceATRdouble1.00correct direction is not enough when price is too far from local value
InpTransitionMaxConsumedPctdouble70.0percentage of origin-to-next-obstacle leg already consumed
InpTransitionPullbackResetATRdouble0.75evidence-based pullback from impulse peak required before same-opportunity re-entry
InpTransitionEvidenceWindowBarsint12bounded closed-M5 sequence: reclaim/retest/displacement may arrive on separate bars
InpTransitionOpportunityMaxBarsint36stale reversal watches expire; exhaustion authority remains until market reset
InpAIModeENUM_XAU_AI_MODEAI_FILTER_ONLYOFF=no AI calls | ADVISOR=AI logs an opinion only, never blocks/resizes | FILTER=AI may still block/reduce a weak-confid
InpJune18RestoreModeboolfalseTRUE: forces AI_ADVISOR_ONLY, keeps grade-only soft-bypass and no-limit daily locks off regardless of other settings, re
InpLotSizingModeENUM_XAU_LOT_SIZING_MODEJUNE_16_19_BALANCE_MODEJUNE mode restores balance-based lots; REAL mode uses OrderCalcProfit SL risk
InpJuneBalanceLotPer1000double0.070$3k A trade ≈0.21 before broker/margin/maxlot; B≈0.15, A+≈0.26
InpNoLimitTradingModebooltrueTRUE = no daily/profit/growth lock force-close, no daily pause, no cooldown stop-for-day
InpDisableAllDailyLocksbooltrueAlias/master override: bypass Daily Growth Lock, daily profit lock, retain-percent giveback locks
InpNoDailyLimitModebooltrueAlias/master override: bypass daily/weekly target/loss stop logic and daily pause logic
InpProfitGuardianboolfalsev5.1.3: DEFAULT OFF — tier risk-cuts + HTF trend lock + cooldown OFF (restores v4.9.7 aggression)
InpProfitLockbooltruev5.1.3: ALWAYS-ON safety net — runs INDEPENDENTLY of InpProfitGuardian
InpEPF_Enablebooltruemaster switch — set false to disable all EPF behavior
InpEPF_DailyT1Pctdouble5.0daily +5%: mild defense
InpEPF_DailyT2Pctdouble10.0daily +10%: moderate defense
InpEPF_DailyT3Pctdouble15.0daily +15%: capital preservation
InpEPF_DailyT4Pctdouble20.0daily +20%: ultra-defensive lockdown
InpEPF_PeakRetracePctdouble6.0% retrace from intraday peak (after >=5% peak) = jump 1 tier up
InpEPF_PeakMinPctdouble5.0ignore retrace gate until daily peak >= this %
InpEPF_ConsecLossWarnint3after N consecutive losses → bump 1 tier

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Lamarrsdrip/XauAI-Sniper from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

1 stars

This repository features a collection of MetaTrader 5 Expert Advisors developed for strategy and risk-management research. It includes a multi-pair mean reversion grid system, a gold breakout robot using previous day levels, and trend-following strategies based on moving averages. The EAs incorporate extensive risk con

MT5 Collection Trend followingBreakoutMean reversion High risk

C Financial

by rafaelsoec
1 stars

C Financial is a MetaTrader 5 repository containing a large collection of expert advisor variants focused on trend-following and price action strategies. The primary scripts utilize technical indicators like Moving Averages, ADX, CCI, and Average True Range to detect market direction and volatility. It features modular

MT5 Collection Trend followingBreakoutIndicator crossover High risk
Updated 10 days ago None stated GitHub repository of C Financial

Algo Trading MQL Collection

by MRITUNJAYMADDHESHIYA
1 stars

This repository features a collection of MetaTrader 5 expert advisors implementing various technical strategies such as time-range breakouts, order blocks, and candle pattern recognition. The primary time-range EA identifies price extremes within a user-defined window to trigger entries on breakouts. It includes risk m

MT5 Collection BreakoutSMC / ICT / price actionMean reversion High risk
Updated 2 years ago None stated GitHub repository of Algo Trading MQL Collection

BotTrade ML

by soemsri
1 stars

This MetaTrader 5 expert advisor collection focuses on machine learning strategies, specifically Lorentzian Classification and Nadaraya-Watson Kernel Regression. It is primarily designed for trading gold on the H4 timeframe but offers configurable parameters for broader market use. The system supports both mean-reversi

MT5 Collection AI / machine learningMean reversionBreakout High risk
Updated 2 days ago MIT GitHub repository of BotTrade ML

This repository provides a collection of MetaTrader 4 expert advisors developed for algorithmic trading research. The library includes multiple distinct robots such as the Turtle strategy, Keltner channel candlestick patterns, and volatility-based breakouts. Each EA implements various risk controls including ATR-based

MT4 Collection Trend followingBreakoutMean reversion High risk Archived

Fujii MQL4 EA Collection

by FujiiKairi
1 stars

This repository is a collection of over forty MetaTrader 4 expert advisors covering various trading styles and market conditions. It features the EA31337 multi-strategy framework alongside specialized bots for currency strength, New York session breakout patterns, and Heikin Ashi trend following. The collection include

MT4 Collection Multi-strategyBreakoutTrend following High risk
Updated 6 years ago None stated GitHub repository of Fujii MQL4 EA Collection

More collections

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers