AI Glossary / AI for business and adoption / Intermediate

Algorithmic trading

Algorithmic Trading (AI for business and adoption)

Definition

Algorithmic trading is the use of computer programs to place buy and sell orders in financial markets by following a defined set of rules. The rules can cover timing, price, order size and how to split an order. It is not the same as artificial intelligence, because many algorithms are fixed rule sets, though some firms add machine learning. Usage of the term varies between firms and regulators.

What it means

At its simplest, a person writes down a trading rule and lets software carry it out. The rule might say to buy a set number of shares evenly across the trading day, or to sell if a price falls below a set level. The program follows the rule without hesitation and without fatigue.

For a business reader, the key point is that the algorithm does the execution, not the judgment about whether the rule is a good idea. People still choose the strategy, set the limits and decide when to switch it off. AI can play a part in forming the strategy or in predicting prices, but a plain rule-based program counts as algorithmic trading too.

How it works

A typical system has four parts. A data feed supplies prices, volumes and sometimes news. A signal or rule turns that data into a decision, such as buy, sell or wait. An execution component turns the decision into orders and sends them to a trading venue. A risk layer checks each order against limits, such as maximum position size or maximum loss for the day.

The cycle repeats many times. The program reads new data, tests it against the rule, checks risk limits and places or cancels orders. Speed varies a lot. Some programs act in fractions of a second, while others run once a day to rebalance a portfolio.

Before going live, firms usually test a rule on past data, a step called backtesting. Past results do not guarantee future results, and a rule that fits history too closely can fail on new data. Many firms also run a trial period with small amounts or simulated orders before committing real money. Rules and oversight requirements differ by market and jurisdiction, so a firm should check what applies to it.

Three practical examples

  • Finance team: A company needs to buy a large block of foreign currency for a supplier payment. Instead of one big order that could move the price, a program splits it into small orders spread across the day and tracks the average price achieved.
  • Retailer: A retailer with a treasury function holds a small investment portfolio. A scheduled program rebalances it on the first of each month to restore target proportions, and a person reviews the report afterward.
  • Investment manager: A small fund uses a program that sells a holding automatically if it drops 8 percent from its recent high. The rule is simple, but it removes the temptation to hesitate during a sharp fall.

Think of it this way

Think of a thermostat. You set a target temperature, and the device switches the heating on and off to hold it, without you standing next to it. The analogy stops working because a thermostat reacts to one stable reading, while markets are shaped by other traders who may react to your own actions.

Worked example

A small fund wants to buy 10,000 shares and splits the order evenly across 5 hours of trading. Shares per hour: 10,000 divided by 5 equals 2,000. The program buys 2,000 shares each hour. Suppose the hourly average prices are 50.00, 50.20, 50.10, 50.40 and 50.30 dollars. Total cost: 2,000 times 50.00 is 100,000. 2,000 times 50.20 is 100,400. 2,000 times 50.10 is 100,200. 2,000 times 50.40 is 100,800. 2,000 times 50.30 is 100,600. The sum is 502,000 dollars. Average price: 502,000 divided by 10,000 equals 50.20 dollars per share. If the price at the start of the day was 50.00, the extra cost against that starting price is 0.20 times 10,000, which is 2,000 dollars. The fund compares that figure with what a single large order might have cost.

Illustrative case study

Fictional case: Harbor Lane Treasury, a made-up mid-sized distributor, built a simple program to convert foreign currency in small daily amounts. For two months it worked as planned. Then a data feed failed overnight and the program kept trading on a stale price, buying more than intended. The loss was small, but the team was alarmed. They added three controls: a check that rejects prices older than a few seconds, a daily cap on the amount traded, and an alert to a named person when either limit is hit. They also wrote a one-page procedure for switching the program off. After the change, a later feed outage triggered the alert, the program paused itself, and a person resumed it once the data was fixed.

Common misconceptions and mistakes

Algorithmic trading always means artificial intelligence. Many programs follow fixed rules with no learning at all. AI is one possible ingredient, not a requirement.

An algorithm removes risk. It removes some human error but adds others, such as faulty rules, bad data and software bugs. Controls and monitoring are still needed.

A strategy that worked in backtesting will keep working. Backtests can overfit to the past. Markets change, so results need ongoing review.

Algorithmic trading is only for large banks. Smaller firms use simple versions, such as scheduled orders or automatic stop rules, often through their broker or platform.

Business use

To start, define the purpose in plain words: reduce cost, save staff time or enforce discipline. Begin with a simple rule, test it on past data, then run it with small amounts under human review. Confirm the legal and regulatory requirements that apply to your firm, since oversight rules differ by market and jurisdiction. Name one person who owns the program and can stop it.

Measure results against a clear benchmark, such as the average price you would have paid without the program. Track errors, rejected orders, how often limits are hit and how long it takes to switch the program off. Costs include software, data feeds, staff time and trading fees. Risks include faulty rules, stale data, losses that grow faster than people can respond, and overreliance on past results.

People also ask

Is algorithmic trading the same as high-frequency trading?

No. High-frequency trading is one type, marked by very fast, very frequent orders. Algorithmic trading also covers slow programs that run a few times a day or a month.

Can a small business use algorithmic trading?

Yes, in simple forms such as scheduled purchases, automatic rebalancing or stop rules offered by a broker or platform. Start small and keep human oversight.

What can go wrong with algorithmic trading?

Common problems include faulty rules, stale or wrong data, software bugs and strategies that fail when market conditions change. Risk limits and a way to stop the program quickly reduce the damage.

Check your understanding

In the worked example, how many shares does the fund buy each hour?

Answer: 2,000 shares, because 10,000 shares divided by 5 hours equals 2,000.

What was the average price per share in the worked example?

Answer: 50.20 dollars, because the total cost of 502,000 dollars divided by 10,000 shares equals 50.20.

Why did Harbor Lane Treasury add a check on how old a price is?

Answer: A stale price caused the program to buy more than intended. Rejecting old prices stops it from acting on outdated data.

Does algorithmic trading require machine learning?

Answer: No. Many programs follow fixed rules. Machine learning is optional.

Related terms

  • Machine learning
  • Automation
  • Human-in-the-loop
  • Overfitting
  • Predictive analytics
  • Backtesting
  • Risk management
  • Model risk

Learn next

Pick one routine financial task, such as a recurring currency purchase, and write the rule for it in plain words, including limits and a stop condition. Then read about overfitting and model risk to understand how rules fail, and about human in the loop to decide where a person should stay involved.

  • Human-in-the-loop
  • Overfitting

More in AI for business and adoption

  • AI vendor assessment - AI vendor assessment is a structured review of a company that sells an AI product or service, done before you buy and repeated while you use it.
  • AI washing - AI washing is the misleading presentation of a product, service or organization as using AI, or as benefiting from AI, beyond what the available evidence...
  • AIOps - AIOps means applying artificial intelligence and analytics to IT operations.
  • Anti-money laundering (AML) - Anti-money laundering (AML) is the set of laws, controls and procedures that regulated firms use to detect and report attempts to disguise the origin of...
  • Attribution modeling - Attribution modeling is the practice of assigning credit for a sale, sign-up or other goal to the marketing touchpoints that came before it.
  • Augmentation versus automation - Augmentation versus automation is the choice between using AI to support a person who still does the work and decides, and using AI to complete a task or...

Work in finance? Get the free CFO AI Prompt Pack: 7 prompts for finance leaders.

Sources

NIST, AI Risk Management Framework: https://www.nist.gov/itl/ai-risk-management-framework Russell and Norvig, Artificial Intelligence: A Modern Approach: https://aima.cs.berkeley.edu/ Gartner, Information Technology Glossary: https://www.gartner.com/en/information-technology/glossary The sources were consulted for general background on automated decision systems and risk management, and the examples, analogy, worked example and case are original educational illustrations. Checked 9 Nov 2026.

Previous: Algorithmic skeleton Next: Algorithmic transparency

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer