Collection · MT5

CodexBot Collection

by hungnm2527

This MetaTrader 5 repository provides a collection of expert advisors, including a specialized mean-reversion system for gold and silver.

High risk

GitHub stars1
Forks0
Last update6 months ago20 Mar 2026
LicenceNone stated

Overview

The primary strategy identifies liquidity sweeps of the first trading hour to time entries, utilizing multi-timeframe filters like ADX and candle wick ratios. It manages risk through automated lot sizing, breakeven triggers, and partial profit targets. The collection also includes distinct experts for smart money concepts, Heiken Ashi indicators, and martingale-based lot scaling, offering a variety of approaches for different market conditions.

Details

Author

hungnm2527 on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, SMC / ICT / price action, Martingale, Multi-strategy

Markets

Gold, Forex

Timeframes

M15-H1

Risk profile

  • Uses martingale lot scaling: losses can grow fast

Input parameters

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

NameTypeDefaultDescription
SymbolsListstringXAUUSD,XAGUSD
IncludeChartSymbolbooltrue
ConfirmTFENUM_TIMEFRAMESPERIOD_M15
MagicNumberint26012201
VerboseLogbooltrue
EntryStartHourint1
EntryStartMinuteint5
EntryEndHourint23
EntryEndMinuteint50
lotModeLotModeLotModeRiskPercent
FixedLotdouble0.01
RiskPercentdouble1.0
Show all 40 inputs
NameTypeDefaultDescription
MinLotdouble0.01
MaxLotdouble10.0
UseTPbooltrue
tpModeTPModeMidRange
RRdouble1.2
UsePartialboolfalse
PartialPercentdouble60.0
MoveSLToBE_AfterPartialbooltrue
runnerModeRunnerTPModeDailyOpen
RR2double2.0
UseBreakevenbooltrue
BE_TriggerPointsint120
BE_LockPointsint10
OneTradePerDaybooltrue
CooldownBarsAfterTradeint8
MaxConfirmBarsint12
UseADXFilterbooltrue
ADX_TFENUM_TIMEFRAMESPERIOD_H1
ADXPeriodint14
ADX_TrendThresholddouble28.0
UseYesterdayBreakoutFilterbooltrue
YesterdayBreakoutPointsint120
UseWickFilterbooltrue
MinWickRatiodouble0.45
MaxDeviationPointsint30
MinSLPointsint80
Default_SweepBufferPointsint30
Default_ConfirmInsidePointsint0

How to install it

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

NeoFL EA Collection

by neofinn
1 stars

NeoFL is a collection of modular MetaTrader 5 trading robots built on a shared algorithmic architecture. The library includes specialized engines for gold, forex, and candle level revisits. The primary Candle Revisit EA uses M5 price action analysis for entries while employing an M1 observer for trade protection. It ma

MT5 Collection SMC / ICT / price actionMartingaleMean reversion High risk
Updated 3 weeks ago None stated GitHub repository of NeoFL EA Collection

Introducao MQL5 Collection

by RafaelFenerick
75 stars

This repository is a collection of educational expert advisors for MetaTrader 5, developed as part of an introductory MQL5 programming series. It includes multiple standalone robots utilizing common technical indicators such as moving average crossovers, Bollinger Bands, and the Relative Strength Index. The primary exp

MT5 Collection Indicator crossoverMean reversionMulti-strategy High risk
Updated 4 years ago None stated GitHub repository of Introducao MQL5 Collection
16 stars

This repository contains a collection of MetaTrader 5 Expert Advisors and scripts developed for educational and testing purposes. It includes various automated robots based on technical indicators such as the Stochastic Oscillator, RSI, and Moving Average crossovers. The primary Stochastic EA manages entries using over

MT5 Collection Indicator crossoverMartingaleMean reversion High risk

EJ Trader MT5 Collection

by ejtraderPlugins
3 stars

This repository is a diverse collection of MetaTrader 5 Expert Advisors, featuring nearly 100 different scripts sourced from various origins. The library includes automated robots based on standard indicators like Bollinger Bands, MACD, Stochastics, and moving average crossovers, as well as channel trading systems and

MT5 Collection Indicator crossoverMean reversionBreakout High risk
Updated 8 years ago None stated GitHub repository of EJ Trader MT5 Collection

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

This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicators and Smart Money Concepts. The primary expert advisor, Behemoth Max, utilizes a combination of MACD, weighted moving averages, and exponential moving averages across multiple timeframes to identify entries. Ris

MT5 Collection SMC / ICT / price actionIndicator crossoverTrend following High risk

More collections

Need a broker for MT5?

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

Compare brokers