Home · Blog · How algo works
How algo works

Algorithmic trading: what it is and where it came from

Alisher Suyunzhanov9 October 2026 · 7 min read
Algo tradingHistorySimonsMT5Expert advisor
Algorithmic trading: what it is and where it came from

A trading algorithm is a set of rules written so that a computer executes them without you. Not a prediction, not artificial intelligence, not "a neural network sees the market". Rules. Everything else is the story of how rules beat intuition, and what follows from that for a person with $2,000 on an account.

What a trading algorithm is

Any trading system answers four questions: when to enter, when to exit, with what size and when not to trade at all. A person answers them anew every time — depending on mood and how much they have already lost today. An algorithm answers the same way at three in the morning and in the middle of a news release.

01Entrythe condition for opening a trade
02Exitstop, take, time, signal
03Sizerisk per trade as % of deposit
04Do not tradespread, time, news, drawdown
A hypothetical example from our practice. A bot on EUR/USD on an A Labs client's account did not open a single trade on 6 of 22 trading days in September: the spread filter kicked in. A person on those days would most likely have traded — "the market is open, after all". The fourth rule, "when not to trade", is what separates a system from gambling.

The program that does this is called an expert advisor in MetaTrader — EA. It reads prices, sizes the trade from the instrument specification and sends the order to the broker. It works best on CFDs: the market is open around the clock, all instruments are in one terminal. What a CFD is and why it suits algorithms — the basics are there.

History in five dates

1983

Thomas Peterffy, an options market maker, builds the first handheld computers for the exchange floor. The exchange bans computers; his staff run printouts from the office1.

1987

His firm Timber Hill, the future Interactive Brokers, connects computers directly to NASDAQ. Machines trade on their own, with no human between calculation and order. Interactive Brokers calls it the first fully automated trading system1.

1988

Mathematician Jim Simons launches the Medallion fund — more on it below.

January 2010

The SEC, the US regulator, writes: the equity market has moved from people on the floor to trading run by computers. The average trade is about 300 shares2.

6 May 2010

Flash crash. According to the SEC and CFTC report, one automated sell program of $4.1 billion in a nervous market drops the Dow by almost a thousand points in half an hour3. The program did exactly what it was told: sell by volume, ignoring price and time. It had no "when not to trade" rule.

2010

MetaQuotes releases MetaTrader 5, the MQL5.com site for robot developers and the MQL5 Wizard, which assembles an advisor without code4. What Peterffy built from scratch in 1987 becomes a tool available to any retail trader.

Jim Simons: what his track record showed

Simons is a mathematician who left science at 40 and launched the Medallion fund in 1988. The fund traded only on mathematical models, with no discretionary decisions. By WSJ journalist Gregory Zuckerman's reconstruction, over 30 years from 1988 to 2018 Medallion averaged 66% a year before fees and 39% after — with "5 and 44" fees, two to three times the market norm. Total trading profit — over $100 billion5. Simons died in May 20246.

Three things from this story matter for a retail trader, and none of them is about returns.

The fund is closed. Medallion has not accepted outside money since 1993 — only employees trade it. The most successful system in history is available to nobody outside.

The fund does not grow. Medallion could not get much bigger than $10 billion — strategies stop working when there is more money in them than the market can absorb. This is called a capacity limit, and every algorithm has one, including ours.

The fund is the exception, not the rule. Simons gathered dozens of scientists, thirty years of data and infrastructure no broker has. His track record proves that rules work better than intuition over a long distance. It is not a benchmark for a bot on MT5, and I would not trust anyone who compares their robot to Medallion.

How a retail bot differs from a fund's

Fund (HFT, quant)Retail bot on MT5
Competes onSpeed: microseconds, servers next to the exchangeDiscipline: not doing the extra thing
LatencyCritical50 ms does not matter
What decides the resultInfrastructure and dataWhether "what to do at spread 3 instead of 1" is written down
CapacityBillions, with a ceilingHundreds of thousands to millions, with a ceiling

Funds compete on speed: servers next to the exchange, a race in microseconds. A retail trader has no business there even with the best VPS. A retail algorithm competes not on speed but on discipline. Its advantage over a human is not seeing faster but not doing the extra thing: not doubling after a loss, not entering without a signal, not overholding. What the research says about how much people lose by hand and why — in "Algorithmic trading vs manual trading: what the numbers say".

One thing I am not sure about: what share of currency-market volume algorithms do today. Estimates vary so widely that I will not quote a number. The direction is not in doubt — the share has grown since 2010.

Bottom line. An algorithm is four rules executed without you: entry, exit, size, a ban on trading. The first robot on Wall Street — 1987; the market became algorithmic by 2010; the same year it became available through MT5. Simons proved that rules beat intuition over distance, and at the same time that every system has a ceiling. It is not algorithms that lose — it is algorithms without the fourth rule.

Four signs of a real algorithm

There are many robots for sale, and most are not an algorithm but an automated bet. Four questions before buying:

  1. Is risk per trade fixed? If size grows after a loss, that is martingale, and one streak will take the account.
  2. Is there a "do not trade" rule? A filter by spread, time, news. If the bot always trades, it was not around in May 2010.
  3. Does the live account resemble the backtest in character? Not in returns — in trade frequency and drawdown length. A backtest is a hypothetical result, but the live account should look like it. Checked on a demo account and on Myfxbook.
  4. Is the drawdown named in advance? Whoever knows their algorithm knows how much it can lose in a bad year and says so before being asked. How much to sit through and when to switch off — a separate article.

I would not run a bot on a live account without an answer to the second question. The other three are checked in a month on demo.

What next

For forty years algorithmic trading was a tool for those who could afford it. Since 2010 it costs the same as the MT5 terminal — nothing. What stayed paid is the time to check: a month on demo with the trade log open.

Risks

An algorithm executes the rules built into it, including wrong ones — on 6 May 2010 the whole market showed that. Trading through an advisor does not remove market risk, drawdown risk or technical risk: a lost connection, a stopped VPS, a settings error. Any backtest is a hypothetical result on historical data. Medallion Fund results are the historical data of a closed fund; they do not relate to A Labs products and are not a benchmark.

Trading involves risk of capital loss. Past performance is not indicative of future results. A Labs is a software developer, not a broker and not a financial adviser.

Tell us about your idea

The request takes 2 minutes. We reply within one business day and suggest the next step.

or message us on Telegram