Skip to main content
home

Example project · Algorithmic · Platform

MT5 Expert Advisor

A trend-following Expert Advisor with an EMA crossover signal, a higher-timeframe trend filter, ATR-based stop-loss, percentage-of-equity sizing and a trailing stop.

In the course curriculum

Project facts

Difficulty
Advanced
Technology
MQL5, MetaTrader 5
Category
Algorithmic, Platform
Status
In the course curriculum

Project summary

A trend-following Expert Advisor with an EMA crossover signal, a higher-timeframe trend filter, ATR-based stop-loss, percentage-of-equity sizing and a trailing stop.

Problem
Rules written in plain language are hard to apply consistently.
Approach
Translate a written rule set into an Expert Advisor, then test it in the MetaTrader 5 strategy tester.

Skills developed

  • MQL5
  • Risk management in code
  • Strategy Tester

Technology

  • MQL5
  • MetaTrader 5

Prerequisites

  • MQL5 syntax basics (Modules 1–2 of the MQL5 course)
  • MetaTrader 5 installed with a demo account
  • A written trend-following rule set

Deliverable

Source code and a Strategy Tester report with written commentary.

Project workflow

  1. Stage 1: Specify the rules

    Write the entry filter, stop-loss, position-sizing and trailing-stop rules.

  2. Stage 2: Code the Expert Advisor

    Implement the rules in MQL5 with clear inputs.

  3. Stage 3: Test in the strategy tester

    Run the Expert Advisor on historical data in the MetaTrader 5 strategy tester.

  4. Stage 4: Review the report

    Write commentary on the tester report, including its limitations.

AlphaSync practice

AlphaSync is a simulated practice environment for education. Simulated and paper-trading environments do not reproduce all the characteristics of live markets, such as execution, liquidity, costs and emotional pressure. Simulated results do not represent actual trading and do not predict future results. Screens show illustrative data.

Build this project in a course

Projects are completed inside Academy courses, with instructor feedback. Enquire about the course that includes this project.