Collection · MT5

XAU Reversal Pullback Engine

by adminberitakarya-Aji

This MetaTrader 5 expert advisor collection targets XAUUSD using contrarian reversal and pullback signals.

High risk

GitHub stars1
Forks0
Last update2 months ago8 Sep 2026
LicenceNone stated

Overview

XAU Reversal Pullback Engine combines EMA, ADX with directional movement, RSI, and pin bar or engulfing candlestick patterns, filtered by an embedded ONNX machine learning model and a timed pullback state machine. Risk controls include equity percentage or fixed lot sizing, multiple stop-loss and take-profit calculation modes, classic or step-lock trailing stops, and optional martingale averaging recovery with basket trailing. There is no README file in the repository, and the input parameters are documented in Indonesian.

Details

Input Parameters

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

NameTypeDefaultDescription
InpCustomSymbolstringCustom Symbol (kosongkan = otomatis chart, misal XAUUSD.vx)
InpUsePullbackbooltrueAktifkan Eksekusi Tunggu Pullback / Retest Contrarian
InpPullbackTimeoutSecint120Waktu Tunggu Koreksi (detik; default 120s = 2 menit)
InpPullbackDistModeENUM_PULLBACK_DIST_MODEPULLBACK_DIST_ATRMode Jarak Diskon Koreksi
InpPullbackATR_Multdouble0.20Multiplier ATR untuk Diskon Contrarian (jika Mode ATR, misal 0.2x ATR)
InpPullbackFixedPtsdouble50.0Jarak Poin Diskon Contrarian (jika Mode Fixed, misal 50 poin)
InpCancelATR_Multdouble0.25Batas Batal jika Lari Duluan (ATR Mult)
InpCancelFixedPtsdouble60.0Batas Batal jika Lari Duluan (Poin Fixed)
InpEMA_Periodint50EMA period
InpEMA_PriceENUM_APPLIED_PRICEPRICE_CLOSEApplied price
InpEMA_Shiftint0EMA shift
InpADX_Periodint14ADX period
Show all 40 inputs
NameTypeDefaultDescription
InpADX_Strengthint15Min ADX (kekuatan)
InpADX_UseDIbooltrueGunakan filter +DI / -DI utk konfirmasi arah
InpRSI_Periodint14RSI period
InpRSI_Overboughtdouble65.0RSI overbought
InpRSI_Oversolddouble35.0RSI oversold
InpRSI_PriceENUM_APPLIED_PRICEPRICE_CLOSEApplied price
InpTradeModeENUM_TRADE_MODEMODE_BOTHMode trading
InpIsBuyAllowedbooltrueIzinkan BUY
InpIsSellAllowedbooltrueIzinkan SELL
InpUsePinBarbooltruePin bar terkonfirmasi (Bar 1) utk reversal
InpUseEngulfingbooltrueEngulfing terkonfirmasi (Bar 1-2) utk reversal
InpMaxOpenPositionsint1Max posisi terbuka
InpMagicNumberint28282830Magic number (Reversal Engine)
InpUseMLFilterbooltrueAktifkan Filter Machine Learning (Node 3)
InpMLMinWinProbdouble0.35Min Win Probability agar order dieksekusi (0.35 - 0.65)
InpLotModeENUM_LOT_MODELOT_RISK_PERCENTMode lot
InpRiskPercentdouble1.0Risk % equity per trade
InpFixedLotdouble0.10Lot fixed
InpMaxRiskMargindouble30.0Maks % equity utk margin
InpUseMartingaleboolfalseAktifkan Martingale Averaging Recovery
InpMartiDistModeENUM_MARTI_DIST_MODEMARTI_DIST_ATRMode Jarak Averaging (ATR / Fixed)
InpMartiATR_Multdouble1.5Multiplier ATR (jika mode ATR)
InpMartingaleDistPtsdouble150.0Jarak Poin (jika mode FIXED)
InpMartingaleMultdouble1.5Pengali lot tiap level averaging (misal 1.5x)
InpMaxMartingaleStepint3Maksimal level averaging tambahan (default 3)
InpMartingaleProfitPtsdouble50.0Target profit TOTAL semua posisi (poin jika trailing off)
InpUseBasketTrailingbooltrueAktifkan Basket Trailing Profit (Martingale)
InpBasketTrailStartUSDdouble30.0[Basket] Start: Profit ($) trigger aktivasi basket trailing

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone adminberitakarya-Aji/xau 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.
  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

Super Trading Collection

by RoyluxuryTrading
24 stars

This repository provides a collection of MetaTrader 4 and 5 expert advisors, including the modular Super Trading Bot series and an AI-driven trading template. The EAs utilize various technical indicators like Bollinger Bands, Parabolic SAR, and moving averages for trend-following and scalping. Built-in risk management

MT4MT5 Collection Trend followingScalpingAI / machine learning High risk

This repository is a substantial collection of nearly five hundred Expert Advisors for the MetaTrader 5 platform. The library includes various automated strategies such as divergence detection using RSI and MACD, moving average crossovers, and zone recovery systems. It features a mix of trading robots, indicator-based

MT5 Collection Indicator crossoverMean reversionMartingale High risk
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

Hercules MQL5 Library

by herculeshssj
4 stars

This repository contains a collection of MetaTrader 5 expert advisors and utility scripts. It includes a variety of automated strategies such as mean reversion, Dunnigan NRTR, and experiments with artificial intelligence. The library also features utility tools for Telegram integration, search functions, and signal das

MT5 Collection Mean reversionAI / machine learningIndicator crossover High risk Archived
3 stars

This MetaTrader 5 expert advisor is an educational project implementing a martingale trading strategy. It uses Bollinger Bands to trigger entries and employs a grid-based approach to manage trades by layering additional positions at fixed intervals. The system features lot size multiplication after each layer to recove

MT5 Collection MartingaleGridMean reversion High risk

North East Way Collection

by Yogurt-Peng
2 stars

This repository contains a collection of MetaTrader expert advisors for MT4 and MT5, featuring various algorithmic trading strategies. The primary EA, North East Way, implements a multi-currency grid and martingale system focused on mean reversion for correlated pairs such as AUDNZD and NZDCAD. It manages risk through

MT4MT5 Collection Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way Collection

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