If you use MetaTrader 5, you have probably had an idea like this: "When the fast moving average crosses above the slow one and RSI is below 70, buy. Put the stop below the last swing low. Risk 1% per trade."
The idea fits in two sentences. Turning it into an Expert Advisor (EA) is a different story. MQL5 is a C++-like language with its own event model, order-handling API and quirks. For a trader or hobby developer who has never written it, the distance between "I know what I want" and "I have a file I can run in the Strategy Tester" can be weeks.
This article walks through one way to close that gap without writing MQL5 by hand: a visual, no-code builder. I work on this tool (mt5depot Builder), so I will be specific about what it does and clear about what it does not.
What an EA actually needs
Before touching any tool, it helps to write your idea down in three parts. Every EA, however complex, is some combination of these:
- Entry. What condition opens a position? For example: a moving-average crossover, an RSI threshold, or a Bollinger Band breakout.
- Exit. What closes it? A stop-loss, a take-profit, a break-even move, a trailing stop, or an opposite signal.
- Risk. How big is the position, and what are you willing to lose on one trade? Fixed lot size, or a percentage of the account, plus any limits you want.
If you cannot state all three in plain language, no tool will save you. If you can, the rest is translation, and translation is the part a builder automates.
Step 1: Build the logic from blocks
mt5depot Builder is a visual editor that runs in your browser, so there is nothing to install. You drag blocks onto a canvas: indicators, entry and exit conditions, and risk rules. According to the product page, the block library covers stop-loss, take-profit, break-even and trailing logic as reusable components, and it shows warnings for dangerous configurations before you export.
You can also start from a strategy template instead of a blank canvas. The templates include things like moving-average crossovers, RSI reversion and Bollinger breakouts, and you adapt the blocks to your own idea.
A sensible first project is deliberately boring:
- Entry: fast MA crosses above slow MA.
- Exit: fixed stop-loss and take-profit.
- Risk: a small, fixed position size.
Get that working end to end before adding filters. Every extra condition is another thing to test.
Designing in the editor is open to anyone. Saving projects to your account, compiling and running the strength test require signing in with a free account. Anonymous designs stay in your browser.
Step 2: Measure it before you trust it
This is the step people skip, and it is the one that matters most.
The Builder has a built-in strength test that runs your design against historical data, and a robustness matrix that evaluates it across major currency pairs. Both run in the browser, before anything touches your MetaTrader terminal.
Use them to look for problems rather than to confirm what you hope is true:
- Does the design behave sensibly on more than one pair, or only on the one you tuned it for?
- Does it fall apart when conditions change?
- Are you seeing a handful of lucky trades or a consistent pattern?
A design that only works in one narrow setting is usually fitted to the past rather than useful going forward. If the results disappoint you, that is a cheap discovery. Change the blocks and test again.
Step 3: Export the EA
When you are happy with the design, you compile it. On the free plan you download a compiled .ex5 file, ready to load into MetaTrader 5. On the Pro plan you can also download the editable .mq5 source code, which is structured and commented so you can read it, modify it and put it under version control.
Important detail about the free plan, quoted from the product pages: a free-tier .ex5 runs only on a new MetaTrader 5 account opened through the project's partner link and approved in your account's IB tab. Pro removes that restriction, so its .ex5 runs on any account.
I would rather you know that now than discover it after building something. If you want to run the file on an account you already have, the free tier is not the right fit for that purpose, and Pro is the option that lifts the restriction.
Step 4: Load it into MetaTrader 5 and test again
The Builder's tests run in the browser on historical data. Your terminal and your broker's data are the real environment, so test there too.
- In MetaTrader 5, open File > Open Data Folder, go to
MQL5/Experts, and copy the.ex5file in. - Refresh the Navigator panel (or restart the terminal). The EA appears under Expert Advisors.
- Open the Strategy Tester (View > Strategy Tester), select your EA, pick a symbol, timeframe and date range, and run it.
- Check the inputs the EA exposes, then compare the tester's behavior with what you designed. If trades open or close in ways you did not expect, go back to the blocks and fix the logic.
Once the tester looks reasonable, run the EA on a demo account for a while before you consider anything else. Real spreads, slippage, requotes and your broker's execution are things a historical test cannot fully reproduce.
Honest limits
A visual builder removes the syntax barrier. It does not remove the hard parts of trading.
- It is a development tool, not a trading product. The Builder generates code from your design. It does not place trades, connect to a broker or supply signals or advice. What you build, test and run is your responsibility.
- Backtests describe the past. Past and backtest results do not guarantee future results, and trading involves a real risk of loss. Treat test results as a way to find weaknesses, not as a promise.
- You still have to think. A tool can make a bad idea easy to build. Keep positions small, test on demo first, and understand every rule your EA follows.
-
Plans, in short. Free: the visual editor, every strategy template, the strength test and robustness matrix, and a compiled
.ex5(with the account condition above). Pro: a one-time licence that adds the editable.mq5source and lets the.ex5run on any account. Pricing and current details are on the site.
Wrapping up
Turning an idea into an EA comes down to three questions (entry, exit, risk), a visual design you can adjust quickly, testing that tries to break your idea rather than flatter it, and a demo run before anything else.
If you prefer to watch the steps, there is a how-to video: mt5depot on YouTube.
If you want to try the workflow yourself, the Builder is here: Open mt5depot Builder
Trading leveraged products such as CFDs carries significant risk and is not suitable for everyone. Nothing here is investment advice. The service is not directed at residents of the United States or other restricted jurisdictions.
Top comments (0)