What Is Algorithmic Trading? How It Works

Algorithmic trading is trading by predefined rules that software executes. How it works, common strategies, a short history, risks and FAQs.
Empty trading floor at dusk with rows of dark desks and city towers beyond the windows

November 26, 2026

Algorithmic trading (also called algo trading or automated trading) is a way of placing trades with preprogrammed instructions. The instructions take variables such as time, price and volume into account, and software carries them out without a person clicking each order.

It is a method rather than a single strategy, and it covers both slow systems and very fast ones.

How algorithmic trading works

An algorithm is a set of instructions for solving a problem. In trading, those instructions describe when to enter a trade, when to leave it and how large the position should be. The software monitors the market, and when conditions match the parameters that were set in advance, it places the buy or sell order.

A simple example from a published introduction: a program can be told to buy 100 shares when the price moves below a set level and to sell 100 shares when it moves above another. Nobody has to place those trades by hand. Real systems use more variables, but the logic is the same:

  • Entry rule: the conditions that open a trade.
  • Exit rule: the conditions that close it.
  • Position sizing: how large each trade is.
  • Execution: software sends the orders once the rules are met.

Before a strategy runs on real money, it is usually built in stages. Backtesting simulates hypothetical trades on historical data. Forward testing runs the algorithm on data it has not seen. Live testing compares actual live trades with the earlier results. The differences are explained in backtesting versus forward testing.

Common algorithmic trading strategies

Algorithmic trading is a method, not one strategy. Commonly named strategies include:

  • Trend following: trading in the direction of an established price move instead of against it.
  • Mean reversion: the idea that high and low prices are temporary and that a price tends to move back towards its average over time. The system first identifies a trading range, then computes the average price.
  • Arbitrage: taking advantage of a price difference between two or more markets, ideally with the matching trades placed at the same time to limit the exposure to price changes between the legs.
  • Market making: placing a sell order above and a buy order below the current price on a regular and continuous basis to capture the bid-ask spread.

Many strategies use technical indicators, such as moving averages. Some newer systems use machine learning, which lets a system adapt to current market conditions, instead of only following fixed pre-programmed rules.

Algorithmic trading versus high-frequency trading

The two are related but not the same. High-frequency trading (HFT) is a form of algorithmic trading with very high volumes and execution times measured in milliseconds or less. Algorithmic trading as such is available to small and large players alike, for example through open-source libraries in languages such as Python and R, although the learning curve can be steep for someone without a technical background.

Rule-based versus discretionary trading

In discretionary trading, a person decides each trade, case by case, based on judgement. In rule-based (systematic) trading, the decisions follow rules that were written down and tested beforehand, and software executes them. One argument for rules is that every decision can be measured and a strategy can be improved based on evidence. Another is that emotion plays no part in the execution. The trade-off: a rule can only react to what its author thought of in advance, and what worked in a test may not carry over to a real market. See rule-based and discretionary trading compared.

A short history

  • 1970s: the New York Stock Exchange introduced the "designated order turnaround" system (DOT), which routed orders electronically. An upgraded version, SuperDOT, followed in 1984.
  • 1980s: program trading, with pre-programmed entries and exits, became widely used between the S&P 500 stock and futures markets. Program trading was blamed by many for worsening the 1987 stock market crash, although the exact impact of computer-driven trading on crashes is still debated.
  • 1990s: electronic communication networks allowed stocks and currencies to trade outside traditional exchanges.
  • 2001: US stock prices moved from fractions of a dollar to a minimum tick of one cent, which changed market microstructure and encouraged algorithmic trading.
  • 2010: the May 6 "flash crash", in which US regulators said an algorithmic trade helped trigger a wave of selling, and the Dow Jones Industrial Average was down almost 1,000 points at its low that day, including a plunge of about 600 points that was recovered within minutes.
  • 2012: a software installation problem at Knight Capital Group sent erroneous orders into the market and led to a realised pre-tax loss of about $440 million.

Today, algorithms are used by banks, pension funds, mutual funds and hedge funds, which may need to spread out large orders or trade faster than a human can react, and they are also available to private traders. One 2019 study estimated that around 92% of trading in the foreign exchange market was carried out by trading algorithms rather than humans.

Advantages and risks

Commonly cited advantages:

  • Speed and accuracy: trades occur almost instantly, so prices have less time to move between the decision and the order.
  • Fewer human errors in carrying out an order.
  • Often lower costs, because no person has to place each trade.
  • Decisions follow the rules and are not driven by emotion.

Commonly cited risks:

  • System failure. A fault in software or connections can cause missed or erroneous orders. The Knight Capital case above is an example. For this reason, a person watching the system is often seen as sensible.
  • Over-optimisation (overfitting). When inputs are tuned too closely to historical data, a strategy can look right in testing and still fail in live markets. Developers try to limit this, for example with out-of-sample testing, by varying the inputs. A realistic test also accounts for slippage and commission; see how to stress test a strategy.
  • Market effects. Algorithmic trading can aggravate market problems, contributing to a sudden loss of liquidity and to flash crashes.
  • Opacity. Complex systems can behave like a "black box": it is not always clear why a system reacted to certain data.
  • Market conditions. Volatility and other changes in the market can make a strategy behave differently from what was expected.

Trading involves substantial risk, including the loss of capital.

About Growth One

Growth One - FZCO is a proprietary trading firm in Dubai Silicon Oasis, Dubai, that trades its own capital.

General information only: see the disclaimer page and the terms page. Market articles appear under Growth One insights.

Frequently asked questions

What is algorithmic trading in simple terms?

It is trading in which the rules for entering, exiting and sizing a trade are written in advance and software places the orders when the rules are met.

Is algo trading the same as automated trading?

The two terms are often used as synonyms. Another term you may see is black-box trading. All three names refer to software placing trades according to instructions set in advance.

Is algorithmic trading the same as high-frequency trading?

No. High-frequency trading is one form of it, defined by very high volumes and execution times measured in milliseconds or less. Algorithmic trading also covers slower systems.

Which markets use algorithmic trading?

It is widely used in equities, futures, cryptocurrency and foreign exchange markets. How large the automated share is differs from one market to another.

Does algorithmic trading remove risk?

No. It removes manual order entry and emotion from the execution, but systems can fail, strategies can stop working when conditions change, and losses can still be substantial.

Do you need to be a programmer?

Writing your own algorithm usually involves code, for example with open libraries in Python or R. Large trading firms employ specialists called quants, who typically have advanced degrees in mathematics, statistics, finance or computer science.