Case study · Expert Advisors & Integrations

    Prop-Firm Compliant EAs

    MetaTrader 5 Expert Advisors built around prop-firm evaluation rules. Features hardcoded daily drawdown guards, trailing equity locks, and multi-timeframe indicator confirmations.

    Primary Tech
    MQL5 / C++
    Platform Target
    MetaTrader 5
    Architecture
    Multi-Timeframe EA

    Client work under NDA. Client names, trading data, performance figures and live screens are not shown. This page describes the problem, what we built and the technology used.

    01

    The client

    Traders on prop firm evaluations and funded accounts who automate their strategies in MetaTrader 5.

    02

    The problem

    Prop firm traders needed EAs that strictly adhered to drawdown rules to avoid violating their funded accounts.

    • One breach of a daily loss or maximum drawdown rule ends a funded account.
    • Each firm calculates daily loss differently, from balance or equity, at its own server time.
    • Watching equity by hand all day is not possible, and a fast move can breach a limit between checks.
    • Entries on a single timeframe gave too many trades against the larger trend.
    03

    Our approach

    We wrote Expert Advisors in MQL5 with the firm's rules built in. The rules are part of the EA itself, checked on every tick, and configured for each firm.

    04

    How we built it

    1. 1

      Daily drawdown guard

      The EA calculates the day's loss the way the firm does, from its reference balance or equity at the firm's server day start. It closes positions and stops trading before the limit, with a safety buffer.

    2. 2

      Equity lock

      A trailing equity floor protects open profit. When it is hit, or a profit target is reached, the EA closes everything and stops for the day.

    3. 3

      Multi-timeframe confirmation

      An entry needs agreement across timeframes, so trades are not taken against the higher-timeframe trend.

    4. 4

      Statistical research

      Filter settings were researched in Python with StatsModels before being coded into the EA.

    5. 5

      Clean order execution

      Orders are placed without EA names or comment tags in the trade history.

    05

    How we tested it

    • Strategy Tester runs on every tick based on real ticks.
    • Forward tests on demo accounts with each firm's rules configured.
    • Tests around the daily rollover and different server time zones, where loss calculations most often go wrong.
    06

    What we delivered

    • Compiled EAs with settings files for each firm's rules.
    • A setup guide for each EA.
    • Support after launch.
    07

    The result

    The traders run their strategies with the firm's loss rules enforced inside the EA on every tick, not checked by hand.

    Features

    • Daily drawdown guards
    • Equity lock automation
    • Multi-timeframe confirmation
    • Anonymized order execution

    Technology

    • MQL5
    • MT5
    • C++
    • StatsModels

    Start here

    Need something similar?