What is algorithmic trading? How algo trading works in crypto and beyond
BotIndex editorial team · Updated 6 Nov 2026 · Editorial policy
Algorithmic trading is trading in which a computer program follows a defined set of rules to decide what to trade, at what price, in what size and when, then sends the orders itself. Strategies range from trend following and mean reversion to arbitrage, market making and execution algorithms such as TWAP. It speeds up and standardizes decisions; it does not guarantee profit.
What is algorithmic trading?
Algorithmic trading is trading where a computer program follows a set of rules to decide what to trade, at what price, in what size and when, and then sends the orders itself. The rules can be as simple as “buy every time price falls 2%” or as complex as a statistical model reading dozens of data feeds.
The SEC’s 2020 staff report on the subject avoids a single narrow definition. It starts from the computer-science meaning of an algorithm, a finite, deterministic, effective problem-solving method that a program can carry out, and describes how algorithms now answer the core questions of trading: what to trade, what price to bid or offer, what size, which venue and when (SEC staff report, 2020). The same report quotes an academic definition: a tool that observes market information in real time and “automatically generates/carries out trading decisions without human intervention.”
You will also see it called algo trading, algorithm trading, automated trading, or black-box trading. In practice the terms overlap heavily.
Algorithmic trading vs trading bots vs AI
These three words get mixed up, so it helps to separate them.
- Algorithmic trading is the method: decisions and orders come from defined rules run by software.
- A trading bot is a packaged algorithm aimed at retail users. A grid bot or a DCA bot is an algorithm you configure through a form instead of writing code. See what is a crypto trading bot.
- AI or machine learning is one way to build the rules: the model learns patterns from data rather than following rules a human typed in. Most retail bots are not AI in this sense; they run fixed rules, sometimes with AI-suggested settings.
The CFTC warned in January 2024 that “AI technology can’t predict the future or sudden market changes,” and that fraudsters use AI hype to sell bots promising unreasonably high or guaranteed returns (CFTC release 8854-24). A more sophisticated algorithm is still an algorithm, not a forecast.
Common algorithmic trading strategies
Most algorithmic trading strategies fall into a handful of families. The SEC report, following the SEC’s 2010 concept release, groups short-term professional strategies into passive market making, arbitrage, structural and directional. For retail crypto users, the practical list looks like this:
| Strategy family | Core idea | Typical crypto tool | Main risk |
|---|---|---|---|
| Trend following | Buy strength, sell weakness | Signal or indicator bots | Whipsaws in sideways markets |
| Mean reversion | Buy dips, sell rallies inside a range | Grid bots | Price leaves the range |
| Arbitrage | Capture price gaps between related markets | Spot-futures or funding bots | Gaps close; fees and execution |
| Market making | Quote both sides, earn the spread | Market-making bots | Price moves against inventory |
| Execution algos | Split a large order to reduce impact | TWAP bots | Slower fills, not profit-seeking |
Trend following
A trend-following algorithm takes a position in the direction of an established move, usually using moving averages or breakouts. The SEC report calls these directional strategies: taking a long or short position in anticipation of a price move. Pionex and Bitget both list trend-following bots (Pionex review, Bitget review).
Mean reversion
Mean reversion assumes price tends to return toward an average. A grid bot is the most common retail example: it buys as price falls through preset levels and sells as it rises back. It does well in a sideways market and badly in a one-way drop, when it keeps buying.
Arbitrage
Arbitrage strategies, in the SEC report’s words, seek to capture pricing discrepancies between related products or markets and depend on prices diverging and converging, not on direction. In crypto the common form pairs a spot position with an opposite perpetual futures position to collect funding payments. OKX and Crypto.com both offer arbitrage bots of this type. Compare options in our arbitrage bot ranking.
Market making
Market makers post buy and sell orders on both sides of the book and earn the spread. The SEC report notes they are vulnerable to adverse selection, prices moving quickly against their quotes. Hummingbot describes itself as an open-source framework for crypto market makers (Hummingbot).
Execution algorithms: TWAP and VWAP
Some algorithms do not try to make a profit at all; they try to buy or sell a large amount cheaply. The SEC report lists the standard broker algorithms: VWAP (volume-weighted average price), TWAP (time-weighted average price), implementation shortfall and percentage of volume. In crypto, Crypto.com’s TWAP bot splits a large order into equal parts over time to reduce slippage, and Pionex, OKX and Binance also list TWAP tools.
Algorithmic crypto trading vs traditional markets
Crypto algo trading uses the same ideas as stock market algorithms, but the environment is different.
- Hours. Crypto exchanges trade around the clock, every day. There is no closing bell, so a bot is exposed overnight and on weekends by default.
- Market structure. The SEC report describes US equities as highly fragmented, with fifteen national securities exchanges and over thirty alternative trading systems. Crypto liquidity is split across many independent exchanges with their own rules, fees and country restrictions.
- Access. Retail crypto traders can run algorithms directly on an exchange with a few clicks. In stocks, most retail access goes through a broker’s tools or API.
- Fees. Per-order fees in crypto are significant for high-turnover strategies. Spot fees in our data run from 0.05% per side on Pionex to 0.40% / 0.80% on Kraken (Kraken review).
- Leverage. Many crypto exchanges offer perpetual futures with high leverage; OKX lists up to 100x on its futures grid. Leverage adds the risk of liquidation.
Spot algo trading
Spot algorithmic trading means the algorithm buys and sells the asset itself, with no borrowing. Losses are limited to what you put in, which makes spot the sensible starting point.
Algorithmic trading software: your options
There are three practical routes into algo trading software.
1. No-code platforms. Exchange bots and cloud platforms let you pick a strategy and fill in parameters. Exchange bots on Pionex, Bybit, OKX and KuCoin are listed as free; cloud platforms like 3Commas connect several exchanges by API key for a subscription. Coinrule offers an IF-THEN rule builder with templates. This is the best route for most beginners; see our beginner ranking.
2. Scriptable platforms. HaasOnline adds custom scripted bots and backtests on top of preset bots, from $11.99/mo across 19 exchanges.
3. Open-source frameworks and self-hosted software. Freqtrade is a free, open-source Python bot with backtesting, dry-run and parameter optimization (Freqtrade docs). Hummingbot is Apache 2.0 licensed and aimed at market making. Gunbot is commercial self-hosted software from $29/mo for 25 exchanges. We have not reviewed the open-source frameworks; they suit people comfortable with Python, servers and API keys.
Whichever route you take, read API key safety for trading bots before connecting anything to an exchange.
Intraday algo trading vs longer horizons
Intraday algorithmic trading opens and closes positions within the same day, often many times. Longer-horizon algorithms hold for days or weeks, or simply buy on a schedule.
The horizon changes what matters most:
- Intraday: fees, spread and execution speed dominate. Example: a strategy that turns over its whole position 20 times a day at 0.10% per side pays fees equal to 4% of the position every day. A small edge per trade can disappear entirely.
- Longer horizon: strategy logic and risk control dominate; fees and latency matter less.
At the extreme end is high-frequency trading. The SEC report notes there is no statutory definition of HFT, but lists typical traits such as very high-speed programs, co-location next to exchange servers, very short holding periods and many cancelled orders. Retail bots do not compete on that field.
Risks of algorithmic trading
Overfitting
The biggest trap for anyone building algorithmic trading strategies is the backtest. If you test enough parameter combinations on past data, one will look great by chance. In a 2014 paper in the Notices of the American Mathematical Society, Bailey, Borwein, López de Prado and Zhu showed that “high simulated performance is easily achievable” after backtesting a relatively small number of strategy configurations, that the more configurations tried the higher the chance of overfitting, and that overfit strategies can lead to negative expected returns out of sample (Bailey et al., 2014).
Practical defenses: keep the rules simple, test on data you did not tune on, count how many variations you tried, and run the strategy small or in a simulated mode before adding real money.
Latency and execution
Your algorithm sees prices a moment late and its orders arrive a moment later. The SEC report describes exchanges letting participants place servers next to matching engines precisely to cut this “latency.” For a retail bot, latency mostly shows up as slippage: fills worse than the price that triggered the trade, especially in fast or thin markets.
Fees
Every order pays a fee, and many strategies trade often. Model your real costs with the bot fee calculator before you start, not after.
Technical and operational failure
Bugs, bad updates and outages hit professionals too. The SEC report recounts how a software error at Knight Capital in 2012 sent millions of erroneous orders in about 45 minutes and cost the firm more than $460 million. Set position limits, use stop-losses where your tool supports them, and know how to switch everything off.
Leverage
Algorithms on futures multiply both gains and losses, and a fast move can trigger liquidation before the rules react. Start on spot.
Does algorithmic trading work?
Algorithms work in the sense that matters to institutions: they execute rules faster, cheaper and more consistently than people. Whether your own algorithm makes money depends on the strategy, the market, and costs, and nobody can promise that in advance. Treat any seller of guaranteed algo returns as a warning sign, start with a simple spot strategy, and compare platforms in our rankings using sources linked on every review and our methodology.
FAQ
Does algorithmic trading work?
Algorithms reliably do what they are told: they execute rules quickly and consistently, which is why most professional trading is now automated. Whether a given strategy makes money is a separate question. Research by Bailey, Borwein, López de Prado and Zhu shows that strong backtests are easy to produce by trying many settings, and that overfit strategies tend to disappoint out of sample.
Is algorithmic trading the same as a trading bot?
A crypto trading bot is one kind of algorithmic trading: a packaged algorithm, such as a grid or DCA bot, that you configure through a form. Algorithmic trading is the wider field and also covers custom-coded strategies, institutional execution algorithms and high-frequency trading.
Is there free algorithmic trading software?
Yes. Several crypto exchanges, including Pionex, Bybit, OKX and KuCoin, list their built-in bots as free, so you pay only trading fees. Open-source frameworks such as Freqtrade (Python, with backtesting and a dry-run mode) and Hummingbot (Apache 2.0, aimed at market makers) are free to download but need technical setup.
What is spot algo trading?
Spot algorithmic trading means the algorithm buys and sells the actual asset, for example BTC for USDT, without leverage. It is the lower-risk starting point compared with algorithms on futures, where leverage can lead to liquidation.
Can I do algorithmic trading on stocks with BotIndex picks?
BotIndex currently reviews crypto trading bots only. The concepts on this page apply to stocks too, but we do not rank stock brokers or stock algorithm software and make no recommendations there.
Sources
- SEC — Staff Report on Algorithmic Trading in U.S. Capital Markets (August 2020) ↗checked 6 Nov 2026
- Bailey, Borwein, López de Prado & Zhu — Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance (Notices of the AMS, 2014) ↗checked 6 Nov 2026
- CFTC — Customer Advisory Cautions the Public to Beware of Artificial Intelligence Scams (Release 8854-24) ↗checked 6 Nov 2026
- Freqtrade — Documentation home ↗checked 6 Nov 2026
- Hummingbot — Homepage ↗checked 6 Nov 2026
Not financial advice. Trading bots do not remove market risk.