GUIDE

Forex algorithmic trading: a practical guide

At retail scale, algorithmic trading means an expert advisor running fixed rules on MetaTrader. People who confuse it with high-frequency trading end up buying infrastructure they do not need for an edge they do not have.

Short answer

Algorithmic forex trading means a program executes a defined rule set automatically, in place of your judgement on each trade. At retail scale it runs on MetaTrader on a VPS, holds positions for minutes to days, and competes on discipline rather than speed. High-frequency trading is a separate business that needs colocation and capital no retail account has.

What algorithmic trading is, and how it differs from HFT

Algorithmic trading means the rules exist before the trade. That is the whole definition, and it is why the approach can be tested at all: you cannot replay a discretionary decision against history.

High-frequency trading is a different business. HFT competes on microseconds and needs servers colocated with the exchange and capital that retail does not have. Retail algorithmic trading competes on discipline, and any product selling you retail HFT is selling a category error.

Four families of algorithmic trading strategies

FamilyThe ideaFails when
Trend followingEnter with an established move, exit when it stallsMarkets range, giving many small losses
Mean reversionFade moves that stretch too far from averageA genuine trend begins
BreakoutEnter as price leaves a rangeThe break is false, which is often
Session or time basedTrade a specific window with known behaviourThe pattern that defined the window decays

Each family has conditions that suit it and conditions that punish it. That is why regime detection matters more than strategy selection, and why our own engine runs several strategies and scores each against its recent performance instead of committing to one. The reasoning is on the engine page.

The costs of running an algorithm

  • A machine that stays on. MetaTrader automates only while the terminal runs, so a VPS is a recurring cost.
  • Data quality. Backtests are only as good as the tick data behind them, and free data is often poor enough to invent results. An "overnight long gold" idea we tested was green on 52 of 82 months on a free historical feed and on 48 to 51 of 82 on Exness's own bars, with no swap. The free feed's entry prices were about $0.72 an ounce too cheap.
  • Spread and slippage. Model them honestly, or your tested edge will not survive a real broker.
  • Your own patience. The hardest part of running an algorithm is leaving it on through a normal losing stretch.

Build or buy

Building teaches you more and costs months. Buying is faster, but you have to judge a vendor you cannot inspect. Either can be the right call, and building your own EA versus buying one compares them.

If you are buying, the seven-point evidence test is the fastest filter. If you are testing anything at all, do it in the strategy tester and on demo before it sees money.

Common questions

What is algorithmic trading in forex?

Using a program to decide and place trades by rules set in advance, instead of deciding each trade yourself. In retail forex this almost always means an expert advisor running inside MetaTrader. Because the rules exist before the trade and are not made up in the moment, the approach can be tested at all.

Is algorithmic trading profitable for retail traders?

It can be, though usually for a different reason than people assume. The edge rarely comes from a cleverer strategy. It comes from executing a mediocre one consistently, without the hesitation, revenge trading and moved stops that cost discretionary traders far more than their choice of strategy does. Expect automation to bring a strategy closer to its tested result. It will not invent a better strategy.

Do I need to know how to code?

To build your own, yes: MQL5 for MetaTrader 5, which is close enough to C++ that a programmer adapts quickly. To run somebody else’s, no. Most retail algorithmic traders buy or download an EA and configure it. Knowing what the code does still helps, which is why a vendor who explains their logic is worth more than one who calls it proprietary.

Further reading

Build or buy?How our engine decides

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-19.