algorithmic-trading · Lesson 1

What Is Algorithmic Trading?

How a computer following written rules places trades on its own — and why that's a tool, not a money machine.

5 min readBeginnerSean ShaReviewed by Sean ShaUpdated: July 2026
What Is Algorithmic Trading? — illustration of a cozy kitchen scene where a friendly figure writes a recipe card while a cheerf

Educational purposes only. This content does not constitute investment advice. Read our disclaimer

StockCram is not a broker-dealer, investment adviser, or financial institution. All content is for educational and informational purposes only and should not be construed as personalized investment advice. Consult a qualified financial professional before making investment decisions. Past performance does not guarantee future results.

TL;DR

Algorithmic trading means a computer program places trades automatically by following rules a person wrote — 'if these conditions are true, place this order.' It removes emotion and hesitation from the moment of execution and can watch far more markets than a human. But it never removes risk: a flawed rule just makes its mistakes faster, and around the clock. Most share volume on major exchanges is now placed by algorithms of some kind.

An Algorithm Is Just a Recipe

Strip away the mystique and an algorithm is nothing more than a recipe written for a computer: "if these conditions are true, place this order." A human decides the rules in advance; the software follows them exactly, without getting bored, tired, hopeful, or scared. That's the whole idea. Where a person might stare at a screen and hesitate, a program checks its conditions thousands of times a second and acts the instant they're met.

How algorithmic trading works: a person writes a rule once (IF this happens, THEN buy or sell), a computer follows it across the market every second, and it places the order on its own — automation removes emotion, not risk.
An algorithm is a recipe: a person writes the rule once, the computer follows it exactly and places the order itself. Automation changes who decides and how fast — it never removes the risk in the decision.

A rule can be simple enough to write on an index card — "if a stock's price crosses above its average price of the last 200 days, buy 10 shares; if it falls back below, sell them." It can also be a sprawling system weighing dozens of inputs. Either way, the machine isn't thinking. It's executing a plan a person already made.

The One-Sentence Version

Algorithmic trading is handing your pre-decided rules to a computer so it can place the orders for you — faster and without emotion, but never smarter than the rules themselves.

Discretionary vs. Algorithmic Trading

Most people picture a discretionary trader: a human who reads the news, studies a chart, and decides in the moment whether to buy or sell. Algorithmic trading moves that decision earlier in time. You still make the choices — but you make them before the trade, encode them as rules, and let the computer handle the clicking. Here's how the two compare across the things that actually matter:

DimensionDiscretionary (human decides live)Algorithmic (rules decide)
Who pulls the triggerA person, in the momentPre-written rules, automatically
SpeedSeconds to minutes to reactMilliseconds — reacts the instant conditions are met
EmotionFear and greed affect every clickNone at execution — but the rules can still be flawed
How many markets at onceA handful a person can watchHundreds or thousands, in parallel
Main failure modeHesitation, panic, second-guessingFollowing a bad rule perfectly, at scale

Neither column is 'better' — they trade different strengths. Automation fixes the emotion problem and creates a new one: a mistake, executed flawlessly and fast.

Notice the last row. Automation genuinely solves the discipline problem — the algorithm won't chicken out or chase a hot tip. But it will follow a broken rule with the same flawless obedience it follows a good one. That trade-off is the thread running through this entire course.

Who Actually Uses Algorithmic Trading?

It runs across a huge range of scale. At one end are giant institutions — hedge funds and market-making firms — running high-frequency systems that trade millions of times a day. In the middle are smaller professional quant shops. At the other end is a hobbyist running a modest script from a laptop. Today, algorithms of some kind place the majority of share volume on major U.S. exchanges, so even a buy-and-hold investor is trading inside a market shaped by them.

Automation ≠ an edge

A common myth is that automating a strategy makes it profitable. It doesn't. Automation changes how orders get placed — reliably and fast — not whether the underlying idea has any advantage. A losing strategy, automated, simply loses money more efficiently. The edge has to come from the rules; the computer only executes them.

A Simple Worked Example

Say you write one rule: "Each morning, if Stock XYZ opened at least 2% below yesterday's close, buy 5 shares; sell them at the end of the day." You've now described a complete, if crude, algorithm. A program can check that condition every morning at the open and act on it without you lifting a finger. It will never forget, never oversleep, and never talk itself out of the trade.

But look at everything the rule doesn't handle: what if the stock keeps falling all day? What if there's no buyer at the price you want? What if the 2% dip happens because the company just collapsed? A real system has to answer those questions with more rules — which is exactly why the rest of this course exists. The recipe is easy to start; making it robust is the hard part.

Sources & Further Reading

Educational use only

Educational content only. StockCram isn't a broker or adviser, and we have no affiliation with any institution or tool we mention. Nothing here is a recommendation to trade in any particular way.

Key Takeaways

  • An algorithm is a written recipe - It's an 'if these conditions are true, place this order' rule that a computer follows exactly — the human decides the logic in advance.
  • It moves the decision earlier in time - Instead of deciding live like a discretionary trader, you encode your choices as rules beforehand and let software handle execution.
  • Automation removes emotion, not risk - The computer won't panic or hesitate, but it will follow a flawed rule flawlessly — fast, at scale, and around the clock.
  • The edge lives in the rules - Automating a losing strategy just loses money more efficiently. Any advantage has to come from the logic, not the fact that it's automated.

Continue Learning

Frequently Asked Questions

It's letting a computer place trades for you by following rules you wrote in advance — for example, 'if a stock drops 2% at the open, buy 5 shares.' The program checks the condition and acts automatically, without emotion or hesitation. The human still makes the decisions; they're just encoded as rules beforehand instead of made live.

In discretionary (regular) trading, a person decides in the moment whether to buy or sell. In algorithmic trading, those decisions are made ahead of time, written as rules, and executed automatically by software. The main gains are speed and freedom from emotion; the main new risk is that a flawed rule gets followed perfectly, fast, and at scale.

No. Automation changes how orders are placed — reliably and quickly — not whether the underlying strategy has any advantage. A losing strategy, automated, simply loses money more efficiently. Any edge must come from the rules themselves; the computer only executes them.

Not necessarily. It runs across a wide range of scale, from giant institutions trading millions of times a day down to a hobbyist running a small script. That said, building a system that manages risk properly is genuinely hard, which is why the rest of this course focuses on the parts beginners tend to underestimate.

Very. Algorithms of some kind place the majority of share volume on major U.S. exchanges. Even investors who never automate anything are trading inside a market whose day-to-day mechanics are heavily shaped by automated systems.

Share