The system filters entries using a 200-period exponential moving average and an optional ADX momentum filter to avoid low-volatility periods. Trade signals originate from MACD, Stochastic, or moving average crossovers. Risk is managed through ATR-based stop loss and take profit levels, with position sizing based on a fixed percentage of balance. The robot includes specific circuit breakers for daily loss and total drawdown to suit proprietary trading firm rules and enforces a single-position limit.
ATR-based position sizing and risk management
FTMO-compliant daily loss and drawdown circuit breakers
Multiple toggleable entry signals via MACD, Stochastic, and EMA
Automatic time-based exits using a maximum bar count
Trend filtering via 200-period exponential moving average
Read from XAUUSD_TrendFollow.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
Timeframe (ออกแบบมาสำหรับ H1)
InpEMA_Trend
int
200
EMA trend filter period
InpEMA_Fast
int
9
EMA fast (cross)
InpEMA_Slow
int
21
EMA slow (cross)
InpUseADXFilter
bool
true
ใช้ ADX filter (ลด drawdown)
InpADX_Period
int
14
ADX period
InpADX_MinLevel
double
20.0
ADX ขั้นต่ำ (มี trend จริง)
InpUseMACDCross
bool
true
MACD line cross signal
InpUseStochCross
bool
true
Stochastic cross signal
InpUseEMACross
bool
true
EMA 9/21 cross signal
InpStoch_MaxLevel
double
60.0
Stoch ต้องต่ำกว่านี้ตอน cross
InpRiskPercent
double
0.25
เสี่ยงต่อเทรด (% ของ balance)
Show all 22 inputs
Name
Type
Default
Description
InpTP_ATR
double
6.0
Take Profit (เท่าของ ATR)
InpSL_ATR
double
1.25
Stop Loss (เท่าของ ATR)
InpATR_Period
int
14
ATR period
InpMaxBarsInTrade
int
60
ปิดออเดอร์อัตโนมัติหลัง N แท่ง
InpDailyLossLimit
double
4.0
หยุดเทรดเมื่อขาดทุนวันนี้ถึง % (buffer < FTMO 5%)
InpMaxLossLimit
double
8.0
หยุดถาวรเมื่อ DD ถึง % (buffer < FTMO 10%)
InpOnlyOnePosition
bool
true
เปิดได้ทีละ 1 ออเดอร์
InpMagicNumber
int
20260523
Magic number
InpSlippage
int
30
Slippage (points)
InpTradeComment
string
XAU_TrendFollow
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone maker-tung/xauusd-trend-follow 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
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
This MetaTrader 5 expert advisor automates the 9.1 trading setup popularized by Larry Williams, utilizing an exponential moving average to detect trend shifts. It enters trades based on price action relative to the moving average slope. The system includes built-in trade management features like partial profit taking,