Savvy Nickel LogoSavvy Nickel
Ctrl+K

Algo Trading

Advanced Topics
Share:

Algorithmic Trading

Quick Definition

Algorithmic trading (algo trading) is the use of computer programs to automatically execute trades based on predefined rules, mathematical models, or statistical signals — without requiring real-time human decision-making for each order. It spans from simple execution algorithms that minimize market impact when filling large orders, to sophisticated quantitative strategies that generate and execute thousands of signals per day.

What It Means

Today, approximately 60-75% of all US equity trading volume is executed algorithmically. Algorithms have replaced human traders for routine order execution, market making, and systematic strategy implementation. The advantages are speed, consistency, elimination of emotional bias, and the ability to simultaneously monitor hundreds of markets and instruments.

Algo trading is not inherently high-frequency — a pension fund using a VWAP algorithm to spread a large order over the trading day is doing algo trading, as is a quantitative hedge fund running a factor model that holds positions for weeks or months.

Types of Algorithmic Trading Strategies

1. Execution Algorithms (Most Common)

Used by institutional investors to minimize market impact when filling large orders:

AlgorithmHow It WorksBest Use
VWAP (Volume-Weighted Average Price)Distributes order proportional to historical volume curveLarge orders; target average daily price
TWAP (Time-Weighted Average Price)Distributes order evenly over timeEven execution; ignores volume patterns
Implementation ShortfallMinimizes total cost vs. decision priceBalance speed vs. market impact
POV (Percentage of Volume)Trades as a % of actual market volumeScale participation to market activity
Iceberg/ReserveShows only a fraction of order size publiclyHide order footprint from other algorithms

2. Statistical Arbitrage

Exploiting statistical relationships between securities:

StrategyDescription
Pairs tradingLong one stock, short a correlated stock when the spread deviates from its mean
Mean reversionTrade toward historical average when price deviates significantly
Factor modelsGo long on stocks with strong factor signals (value, momentum, quality); short weak
ETF arbitrageProfit from discrepancies between ETF price and underlying basket value
Cross-exchange arbitrageExploit temporary price differences of same stock on different exchanges

3. Trend Following / Momentum

StrategyDescription
Moving average crossoverBuy when short MA crosses above long MA; sell on reverse
Breakout strategiesEnter positions when price breaks through support/resistance levels
Momentum factorLong recent outperformers; short recent underperformers
CTA (Commodity Trading Advisor)Trend following across futures: equities, bonds, commodities, FX

4. Market Making Algorithms

RoleDescription
Continuous bid/ask quotingPost limit orders on both sides; collect spread
Inventory managementAdjust quotes based on accumulated position
Risk controlsHard limits on position size, loss, and exposure

Quantitative Trading Firms

FirmStrategy FocusAssets/AUM
Renaissance TechnologiesStatistical arbitrage; Medallion Fund legendary returns$100B+ (Medallion: $10B)
Two SigmaMachine learning; systematic macro$60B+
D.E. ShawMulti-strategy quant; early internet investor$60B+
CitadelMulti-strategy; market making; quant$60B+
AQR CapitalFactor investing; risk parity; systematic macro$100B+
Winton GroupCTA; trend following$20B+
Man Group (AHL)CTA; systematic macro$170B+

Algorithm Backtesting: The Development Process

Building a trading algorithm requires rigorous validation:

  1. Hypothesis: Define the market inefficiency being exploited
  2. Data acquisition: Historical price, volume, fundamental, and alternative data
  3. Signal development: Build mathematical expression of the hypothesis
  4. Backtesting: Test signal on historical data; analyze returns, Sharpe ratio, drawdowns
  5. Walk-forward testing: Test on out-of-sample data not used in development
  6. Paper trading: Test in live market with simulated (not real) money
  7. Live deployment: Begin trading with real capital; monitor closely
  8. Ongoing monitoring: Verify live performance matches backtested expectations

Critical risk: Overfitting — a strategy optimized to fit historical data exactly but capturing noise rather than genuine signal will fail in live trading. The more parameters a strategy has relative to its data, the higher the overfitting risk.

Algorithm Risk Management

Risk TypeControl Mechanism
Position limitsMaximum position size per security and total
Loss limitsDaily/weekly loss thresholds that halt trading
Drawdown limitsStrategy paused if losses exceed X% from peak
Correlation limitsPrevent concentration in correlated positions
Fat tail controlsReduce position sizes during volatile periods
Kill switchHuman override to immediately halt all trading

The 2012 Knight Capital incident — where a software bug caused $440M in losses in 45 minutes before the kill switch was activated — demonstrated why kill switches and position limits are non-negotiable.

Regulation of Algorithmic Trading

RegulationRequirement
SEC Market Access Rule (2010)Firms must have pre-trade risk controls for electronic trading
FINRA Rule 3110Supervision of algorithmic strategies
MiFID II (Europe)Algorithmic trading requires registration; stress testing; circuit breakers
Consolidated Audit Trail (CAT)Records all orders; enables regulatory reconstruction of market events

Key Points to Remember

  • Algo trading accounts for 60-75% of US equity volume — the dominant execution mechanism
  • Execution algorithms (VWAP, TWAP) reduce market impact for large institutional orders
  • Quantitative strategies use mathematical models to generate systematic buy/sell signals
  • Renaissance Technologies' Medallion Fund (~66% gross annual return since 1988) is the most successful quant fund in history
  • Overfitting is the primary risk in strategy development — past performance on historical data does not guarantee live success
  • Kill switches and hard loss limits are mandatory risk controls after high-profile algorithm failures

Frequently Asked Questions

Q: Can individual investors use algorithmic trading? A: Yes — retail algorithmic trading platforms like QuantConnect, Alpaca, Interactive Brokers API, and Tradovate allow individuals to build and deploy algorithms. Retail algorithms are unlikely to compete with institutional HFT strategies, but systematic rules-based investing (rebalancing, momentum strategies, options selling) can be effectively automated. The barriers are falling: data, compute, and APIs are accessible at low cost.

Q: What is the difference between algorithmic trading and quantitative investing? A: Algorithmic trading focuses on execution — using algorithms to execute trades efficiently. Quantitative investing focuses on signal generation — using mathematical models to decide what to buy and sell. In practice they overlap: quantitative strategies require algorithmic execution to trade efficiently at scale.

Q: Why do some algorithmic strategies stop working over time? A: Markets adapt. When many participants use the same strategy, the edge gets arbitraged away. Crowded strategies (simple momentum, classic value) have seen diminished returns as more capital chases them. The most durable strategies exploit persistent behavioral biases or structural market features rather than temporary statistical patterns. Renaissance's Medallion Fund famously refuses to reveal its strategies precisely to prevent this crowding.

Back to Glossary
Financial Term DefinitionAdvanced Topics