Informational Text – What Is Algorithmic Trading?
Algorithmic trading uses computer programs to execute trades automatically based on predefined rules. These rules might involve indicators (such as moving averages), price thresholds, or statistical patterns.
Algo traders use backtesting, where they test a strategy on past market data to determine whether it would have been profitable. Once a strategy performs well in backtesting, it can be automated to run live— without human emotion interfering.
Algorithmic trading ranges from simple moving-average systems to highly complex models using machine learning or high-speed execution. But at every level, the core idea is the same: translate a clear rule into code, then let the algorithm follow it consistently.
Scenario Example – A Moving Average Crossover Bot
You design an algorithm that buys a stock whenever the price crosses above the 20-day moving average and sells when it crosses back below. You test this rule on three years of historical data and discover it performs extremely well during trending markets but poorly when the price moves sideways.
You revise the rules to include a volume filter—only taking trades when trading volume is above average. After re-running the backtest, you see that the strategy now avoids many choppy periods and performs more consistently. Only after this process do you deploy the algorithm live.
Process Summary – How Algorithmic Trading Works
- Define a clear, repeatable trading rule.
- Translate the rule into code or trading platform logic.
- Backtest the rule on historical market data.
- Optimize the strategy by refining signals and filters.
- Deploy the algorithm in a live or simulated environment.
Key Vocabulary
- Backtesting – Testing a strategy using past market data to see how it would have performed.
- Signal – A condition that tells the algorithm to buy or sell (for example, a moving-average crossover).
- Slippage – The difference between the expected price of a trade and the price actually received.
- Latency – The delay between sending an order and having it executed in the market.
- Execution Speed – How quickly an algorithm can process data and send orders.
Cross-Strategy Vocabulary Use:
- Signal → momentum systems, trend-following systems
- Slippage → day trading, futures trading
- Latency → high-frequency trading (HFT), arbitrage strategies
Lesson Flow – How the Session Unfolds
Learning Target: I can describe how automated trading strategies work and explain the role of backtesting.
Essential Question: How do trading algorithms make decisions without human involvement?
Bell Ringer: Students examine a simple IF–THEN rule (for example, “If price > moving average, then buy”) and predict whether it produces a buy or sell signal in a short example.
Mini-Lesson: The instructor explains how rules-based trading removes emotional bias, shows examples of simple algorithms, and introduces why backtesting is necessary to avoid costly mistakes.
Guided Practice: Students work with the teacher to convert a written trading idea into a set of coded rules, identifying the signal, filters, and exit logic.
Independent Practice: Students sketch a personal algo strategy flowchart showing the signal, filters, and exit rules their algorithm would follow.
Closure: Learners respond to a quick prompt: “Why is backtesting necessary before running a strategy live?”
Exit Ticket: Define “signal” in your own words.

