Algo Trading Explained: How It Works
By Daniel Kowalski — Director, Fixed Income Capital Markets · Published November 7, 2026 · 8 min read
Algo trading (algorithmic trading) means using a computer program to decide and place trades according to rules written in advance, instead of a person deciding each trade by hand. The program reads market data, checks its rules, and sends orders to a broker when the rules say so. It can be as simple as "hold this fund while its price is above its 200-day average" or as complex as systems that trade many times a second.
The rules do the deciding; the computer only makes sure they are followed exactly and on time. That is both the strength and the limit of algo trading: a good rule applied consistently can help, and a bad rule applied consistently does damage faster.
What is algo trading, exactly?
An algorithm is just a precise set of steps. In trading, the steps answer three questions: what to trade, when to trade it, and how much. Write the answers down so precisely that a computer can follow them with no further input, and you have a trading algorithm.
Algo trading is not new and not only for hedge funds. Banks and fund managers have used algorithms for decades, mainly to split large orders into small pieces so they do not push the price against themselves. A large share of daily volume on major stock exchanges now comes from automated systems of one kind or another. What has changed for ordinary investors is access: many brokers now let outside software place orders through an API, and paper trading lets anyone test rules with real prices and pretend money.
The terms overlap. "Algo trading", "automated trading", "systematic trading" and "trading bot" are used almost interchangeably. Strictly, a trading bot is the program that runs an algorithm, and algo trading is the practice. Our guide to what a trading bot is walks through the program's loop step by step, so this post focuses on the wider process and its risks.
How does algo trading work, step by step?
Most algo trading follows the same path from idea to live orders.
- Start with an idea. For example: "Assets that have been rising tend to keep rising for a while." That is the core of trend following.
- Turn the idea into exact rules. "On the first trading day of each month, buy the fund if its price is above its 10-month average; otherwise hold cash." No room for interpretation.
- Choose the data. Daily closing prices, hourly prices, or other measures. The data must match what the rules need and be clean, adjusted for splits and dividends.
- Backtest. Run the rules on past prices, including costs, to see how they would have behaved. This is where most ideas should be thrown away. See what backtesting is.
- Forward-test on paper. Run the rules on live prices with pretend money for weeks or months, to check the program behaves as the backtest suggests.
- Go live with limits. Connect to a broker with the least access needed, use an amount you can afford to lose, and keep a kill switch within reach.
- Monitor and review. Compare live results with the backtest and paper results. Big differences mean something is wrong: the costs, the code, or the idea.
Steps 4 and 5 matter most. A rule that looks wonderful on past data can fail as soon as it meets new prices.
The four parts every system needs
Rules with a reason behind them. Rules should rest on an idea that makes sense, not just a pattern that happened to appear in the data. "Trends persist because investors react slowly to news" is a reason. "Buy on the third Tuesday when the price ends in 7" is a coincidence waiting to fail.
Clean data. Errors in historical data create fake profits in a backtest. Stock splits are a classic trap: an unadjusted split can look like a 50% or 75% crash overnight.
Reliable execution. The program must place the orders it intends to, once, at sensible times. That means handling network failures without sending duplicate orders, refusing to act on stale signals, and checking that each fund can still be traded.
Risk controls. How much to put in each trade, when to stop, and how to shut everything down at once. How a trading bot places orders safely covers the checks a careful system runs before every order.
What kinds of trading algorithms are there?
Algorithms fall into a few broad families. They differ mainly in how often they trade and what they need to work. The table describes categories, not specific products.
| Type | What it does | Typical time frame | Realistic for an individual? |
|---|---|---|---|
| Execution algorithms | Split a large order into small pieces over time to reduce price impact | Minutes to hours | Built into many brokers; not a strategy in itself |
| High-frequency and market making | Profit from tiny, very short-lived price gaps | Fractions of a second | No: needs specialised hardware and very low costs |
| Trend following and momentum | Hold what has been rising; step aside when it falls | Days to months | Yes |
| Mean reversion | Buy after sharp drops, expecting a bounce | Hours to weeks | Yes, but can keep buying in a real collapse |
| Breakout | Wait for a quiet period, trade the move that follows | Hours to weeks | Yes, but sensitive to costs |
| Rotation and rebalancing | Move between a set list of assets on a schedule | Weeks to months | Yes |
The algorithms most ordinary investors can realistically run are the slower ones: trend, momentum, rotation and rebalancing. They trade less often, so costs and speed matter less. Momentum and trend following explains the most common family in plain terms.
What are the real risks of algo trading?
Algorithms remove hesitation, but they cannot remove risk. The main ones are these.
Overfitting. With enough tweaking, any rule can be made to look brilliant on past prices. The more settings a rule has and the more often it was adjusted to fit the data, the less its backtest means. Our post on overfitting shows how to spot it.
Costs. Every trade pays a spread, a commission or both. A strategy that trades often can lose most of its edge to costs that look tiny on a single trade.
Changing markets. A rule that worked in one kind of market can fail in another. Rising interest rates, a sudden crash or years of sideways prices can all break a strategy that looked steady.
Technical failure. Bugs, bad data, lost connections and broker outages can cause wrong or missing trades.
Large, long losses. An algorithm will follow its rules straight through a deep fall. Whether that helps or hurts depends on whether the rules are right.
A worked example: Gold Breakout
AlgolaneBots's Gold Breakout strategy shows several of these risks at once. It checks gold every hour, waits for prices to go quiet, then trades a breakout in the direction of the long-term trend, with a stop-loss that follows the price.
In a historical backtest (a computer test on past prices) from June 2004 to November 2026 at its default 3% risk per trade, it returned +22.1% a year with a worst fall of -55%. Gold simply held over the same dates returned +11.0% a year with a worst fall of -45%. The strategy's deepest fall ran from May 2018 to October 2019 and took 43 months after the bottom to recover. Nobody earned these returns, and future results will differ.
Its caveat is the key lesson: doubling trading costs cuts its yearly result roughly in half. A frequently trading algorithm lives or dies on costs, so the assumptions about spreads and fees deserve as much attention as the headline return.
Is algo trading better than trading by hand?
Neither approach is automatically better. They fail in different ways.
| Algo trading | Trading by hand | |
|---|---|---|
| Consistency | Follows rules exactly, every time | Prone to skipping, hesitating or doubling up |
| Speed | Acts on schedule, even overnight | Limited by when you are awake and free |
| Testability | Rules can be backtested and paper-tested | Hard to test judgement honestly |
| Flexibility | Cannot react to events outside its rules | Can respond to the unexpected |
| Typical failure | A flawed rule repeated without question | Emotional decisions under stress |
The algorithm's advantage is discipline, and its weakness is that it cannot tell when its own rules have stopped making sense. A person has the opposite problem. To go further into this trade-off, read rule-based vs discretionary trading.
How can an ordinary investor start algo trading?
You do not need to write code to try algo trading, but you do need to understand the rules you are running. A sensible path:
- Learn to read a backtest before trusting one. Look for the benchmark, the worst fall, the recovery time and the caveats. How to read a backtest is a good starting point.
- Paper trade first. Watch the algorithm on real prices with pretend money until its behaviour holds no surprises.
- Limit what it can do. A program that trades for you should be able to place trades and read positions, and nothing that lets it move or withdraw money.
- Decide your stop condition in advance. Write down what would make you pause it while you are calm, not in the middle of a fall.
AlgolaneBots is one way to do this without coding. It runs five fixed-rule strategies, the same for every customer, and publishes each one's historical backtest alongside its benchmark and its main weakness in the strategies section. It is software, not a broker or an adviser, and it never holds your money.
Key takeaways
- Algo trading means a computer follows rules written in advance to decide and place trades.
- The rules matter far more than the computer: automation makes a strategy consistent, not better.
- Slower families such as trend following, rotation and rebalancing are the most realistic for individuals.
- Overfitting, trading costs and changing markets are the main reasons algorithms fail.
- Backtest with costs, then paper trade on live prices, before risking real money.
This is general education, not personal financial advice.
Try algo trading on paper
The clearest way to understand algo trading is to watch an algorithm make real decisions on real prices. Start a free 90-day AlgolaneBots trial on a $10,000 paper account, with no card needed, and see how the five strategies behave before you decide anything.
Where the numbers come from: every strategy figure is from AlgolaneBots's own historical backtests, run on past prices with the method on how we test. Nobody earned them, and future results will differ. General market facts are checked against regulator and company sources. This guide is general information, not personal advice. Read the risk disclosure and how we write our guides.