Gold EA utilizes a 200-period EMA for trend direction and a 50-period EMA for entry signals, further filtered by RSI momentum and ADX volatility measures. The EA includes sophisticated trade management features such as ATR-based dynamic trailing stops, automated swap avoidance, and scheduled Friday exits. Risk is controlled through equity-based lot sizing, spread filters, daily drawdown limits, and hard stop losses. The repository lacks a README, but the code documentation is detailed.
Dual EMA trend and pullback entry logic
Volatility-adjusted trailing stops using ATR
Automated swap avoidance and end-of-day exit modules
Equity-based drawdown protection and risk scaling
Market regime filtering to avoid choppy price action
Read from v3.3.4.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSymbol
string
Symbol (empty = current)
InpTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
InpEmaFastPeriod
int
50
Pullback EMA
InpEmaTrendPeriod
int
200
Trend EMA
InpAtrPeriod
int
14
ATR period
InpRsiPeriod
int
14
RSI period for momentum filter
InpRiskPercent
double
0.25
% equity risk per trade
InpMaxPositions
int
1
Total positions for this symbol+magic
InpMaxSpreadPoints
int
50
Backtest-tuned default (see 3.2.2 test_data E08)
InpMinATR
double
0.8
Minimum ATR (price units) to allow entries
InpMinEma200Slope
double
0.0
Min EMA200 slope magnitude (price units) for entry
InpMaxEma200DistPct
double
0.0
Max abs distance (%) from EMA200 for entry
Show all 40 inputs
Name
Type
Default
Description
InpChoppyFilterEnabled
bool
false
InpChoppyAdxMax
double
25.0
Consider choppy if ADX < X
InpChoppySlopeAbsMax
double
0.03
And |EMA200 slope| < X (price units)
InpChoppyAtrRatioMax
double
0.70
And ATR/ATRavg < X
InpSL_ATR_Mult
double
1.5
Initial stop = ATR * mult
InpUseTakeProfit
bool
false
Optional fixed TP
InpTP_ATR_Mult
double
3.0
TP distance = ATR * mult (if enabled)
InpTrailStartATR
double
1.0
Start trailing after profit >= ATR*X
InpTrailATR
double
2.0
Fixed trailing distance = ATR*X (used when DynamicTrail=false)
InpDynamicTrail
bool
true
InpSmoothDynamicTrail
bool
true
InpDailyLossLimitPct
double
2.0
Daily drawdown from today's peak => stop entries
InpMaxDrawdownPct
double
10.0
Total drawdown from peak since EA start => stop entries
InpCloseAtEndOfDay
bool
false
InpEOD_Hour
int
23
Server time hour
InpEOD_Minute
int
50
Server time minute
InpSmartEOD
bool
false
InpSmartEODMaxRetries
int
3
Max retries per stage per ticket
InpFridayCloseEnabled
bool
true
InpFridayCloseHour
int
21
Server time hour to start evaluating Friday close
InpFridayCloseMinute
int
0
InpFridayKeepProfitATR
double
2.0
Keep position if floating profit >= ATR*X
InpFridayForceCloseLossATR
double
0.5
Force-close if floating loss >= ATR*X
InpSwapAvoidEnabled
bool
true
InpSwapAvoidCloseHour
int
23
Server time hour
InpSwapAvoidCloseMinute
int
55
Server time minute
InpSwapAvoidNoNewMinutes
int
30
Block new entries within N minutes before close time
InpSwapAvoidOnlyNegSwap
bool
false
A/B result: closing both directions performed better
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone ChenyuHeee/gold_ea from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n