EURUSD Trend EA evaluates market conditions once per closed bar, checking alignment between 50-period and 200-period Exponential Moving Averages alongside an EMA slope confirmation check. Entries trigger when price pulls back to the fast EMA and closes back in the primary trend direction. Risk management features equity percentage position sizing, stop losses placed beyond recent swing points with an added ATR buffer, and target exits based on a customizable reward-to-risk ratio. The author notes this project is for educational reference and lacks session, spread, or news filters.
Read from EURUSD_TrendEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
EMA_Fast_Period
int
50
Fast EMA period (trend)
EMA_Slow_Period
int
200
Slow EMA period (trend)
ATR_Period
int
14
ATR period for stop buffer
ATR_Buffer_Mult
double
0.5
Stop buffer = ATR * this
Swing_Lookback_Bars
int
20
Bars to look back for swing high/low
Risk_Percent
double
2.0
% of equity risked per trade
Reward_Risk_Ratio
double
4.0
Target = stop_distance * this
Slope_Lookback_Bars
int
10
Bars back to confirm EMA slope direction
Magic_Number
ulong
20260815
Unique ID so this EA only manages its own trades
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone Babasato/MQ5-Project 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
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
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
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
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