Collection · MT5

XauCloud Apex

by Lamarrsdrip

XauCloud Apex is an automated MetaTrader 5 expert advisor designed for gold (XAUUSD) trading using an exhaustion and reversal strategy.

GitHub stars1
Forks0
Last update5 weeks ago16 Oct 2026
LicenceNone stated

Overview

XauCloud Apex enters positions based on price impulse, liquidity sweeps, candle rejections, and micro break-of-structure confirmation. The EA features profit-side position layering across tiered margin allocations and manages open trades with a fixed price stop loss, master break-even triggers, basket profit ratcheting, and recovery exits. Additionally, it integrates with an external web control plane to handle license authentication, configuration synchronization, and telemetry reporting via WebRequest infrastructure.

Details

Input Parameters

Read from XauCloud-Apex-v3.10.0-LifestyleAstra.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpCloudURLstringhttps://xaucloud.iocanonical XauCloud license/heartbeat infrastructure
InpApexLicensestringONLY credential customer enters
InpConfigPollSecondsint8remote command/config sync
InpCloudTimeoutMsint2500bounded transport budget per request (APEX-AUDIT-002)
InpCloudTickBudgetMsint1200max WebRequest time this timer tick; Manage() always runs first
InpCloudDiagnosticsbooltrue
InpScanMillisecondsint250
InpRequireRemoteArmbooltrue
InpMagiclongAPEX_MAGIC
InpAstraBridgebooltrueDashboard owns enable/key/model; no OpenAI credential in MT5
InpAstraBackendURLstringhttps://apex.xaucloud.io
InpAstraTransportTimeoutMsint600One bounded bridge operation after protections
Show all 40 inputs
NameTypeDefaultDescription
InpAstraExportContextsboolfalseStrategy Tester only: causal NDJSON export, no provider calls
InpAstraTesterBrokerUTCOffsetMinutesint0Export only: historical broker time offset, set explicitly
InpTesterAccountProfilestringNORMALStrategy Tester only: NORMAL|UNLIMITED. Live profile always comes from the dashboard
InpNormalMarginPctdouble15.0NORMAL L1 confirmation/probe margin %
InpNormalL2MarginPctdouble50.0NORMAL L2 confirmed-add margin %
InpNormalL3PlusMarginPctdouble100.0NORMAL L3+ use up to this % of available margin
InpNormalReferenceLeveragelong0NORMAL fallback economic leverage (0=AUTO; used ONLY when the broker margin model is untrustworthy)
InpNormalTakeProfitPctdouble0.0NORMAL hard basket TP %; 0 = disabled
InpNormalFixedSLGoldMovedouble30.0L1 fixed XAU price SL distance; 0 = no broker SL
InpProfitRatchetEnabledbooltrueProtect basket profit after it reaches trigger
InpRatchetTriggerPctdouble180.0
InpRatchetLockPctdouble100.0
InpRatchetStepPctdouble100.0
InpRatchetLockStepPctdouble100.0
InpMasterBreakEvenEnabledbooltrue
InpMasterBreakEvenTriggerPctdouble50.0
InpRecoveryExitEnabledbooltrue
InpRecoveryExitArmPctOfSLdouble40.0
InpRejectReclaimedExtremebooltrueRefuse to submit once the live quote has reclaimed the setup's rejected extreme
InpRequireFreshTriggerbooltrueThe confirming bar must still be the latest closed M1 bar at submission
InpEntryExtensionModeApexGateModeGATE_SHADOWtrigger->fill distance gate
InpMaxEntryExtensionAtrdouble1.50...in ATR. Only used when the mode is GATE_ENFORCE.
InpMaxQuoteAgeMsint00 = disabled. >0 rejects a quote older than this at submission.
InpBosModeApexBosModeBOS_V371_CLOSE_OR_WICK
InpMaxAddsPerTriggerint1
InpAddRequireM3boolfalseOWNER DECISION: apply the M3 colour filter to continuation adds too
InpRequireFreshM3boolfalse
InpMaxBasketLotsdouble0.00 = unlimited total basket volume (v3.7.1 behaviour)

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Lamarrsdrip/XauCloud-Apex 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

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
1 stars

This MetaTrader 5 repository provides a collection of Expert Advisors and testing utilities organized by market, including Gold, Nasdaq, and Forex pairs. The repository contains various strategies such as daily high and low breakouts, intraday time-series momentum studies, moving average crossovers, Fibonacci break-of-

MT5 Collection BreakoutTrend followingMean reversion High risk

Gold Pro Scalper

by n30dyn4m1c
15 stars

This collection of MetaTrader 5 expert advisors focuses on mean-reversion and breakout strategies for gold (XAUUSD) on the M1 timeframe. The primary logic identifies statistical extremes using Z-Score calculations to trade price snap-backs. It includes a TickRobust variant designed to filter execution noise and a dual-

MT5 Collection Mean reversionBreakoutScalping
Updated 3 months ago MIT GitHub repository of Gold Pro Scalper
8 stars

This collection of Expert Advisors for MetaTrader 5 provides specific automated strategies for Gold, Bitcoin, EURUSD, and Nasdaq. The repository includes modules for ATR breakouts, Bollinger Band mean reversion, and opening range breakouts. Risk management is handled through a three-stage take profit system, automated

MT5 Collection BreakoutMean reversionScalping
6 stars

This collection provides MetaTrader 5 Expert Advisors sourced from MQL5 programming documentation. The primary tool, Unity Martingale, implements a multi-currency reversal strategy using breakout or pullback signals. It employs a martingale lot-scaling system that increases positions after losses based on a user-define

MT5 Collection MartingaleGridBreakout High risk
4 stars

This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato

MT5 Collection Trend followingBreakoutMean reversion High risk

More gold EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers