Module 1 · Sub-module 3 of 5

Order Types and Execution

The mechanics of buying and selling — from basic market orders to advanced conditional orders. Master these tools and you control precisely how your trades get filled.

⏱ ~1.5 Hours 📖 Foundations 🎯 Beginner–Intermediate
Learning Objectives

After this sub-module you will be able to:

1. Explain the bid-ask spread and how it affects your trading costs.
2. Use market, limit, stop, and stop-limit orders correctly.
3. Understand trailing stops and how they lock in profits.
4. Read a Level 2 order book and interpret depth of market.
5. Recognize when each order type is — and isn't — appropriate.

The Order Book: Where Prices Are Made

Before we discuss individual order types, you need to understand the structure they operate within. The order book (also called Level 2 data or depth of market) is a real-time ledger showing every outstanding buy and sell order for a security, organized by price.

The left side shows bids — orders from buyers willing to purchase at a given price. The right side shows asks (or offers) — orders from sellers willing to sell at a given price. The gap between the highest bid and the lowest ask is the spread.

Sample Order Book — AAPL
Bids (Buyers)
$189.982,400 shares
$189.975,100 shares
$189.963,800 shares
$189.958,200 shares
$189.941,600 shares
Asks (Sellers)
$190.003,100 shares
$190.014,500 shares
$190.022,200 shares
$190.036,700 shares
$190.041,900 shares
Spread: $0.02 (Best Bid $189.98 — Best Ask $190.00)

This $0.02 spread is typical for a highly liquid stock like AAPL. Less liquid stocks may have spreads of $0.05–$0.50 or more. The spread is an invisible cost you pay on every trade.

When you buy with a market order, you're matched against the best available ask. When you sell with a market order, you're matched against the best available bid. The spread is effectively a transaction cost — you buy at a slightly higher price and sell at a slightly lower price than the "midpoint" of the market.

For a $190 stock with a $0.02 spread, this cost is negligible — about 0.01% per trade. But for a $3 penny stock with a $0.10 spread, you're paying over 3% just to enter and exit. Spreads matter enormously for active traders and for anyone trading less liquid instruments.

The Essential Order Types

Market Order Essential

A market order tells your broker: "Buy (or sell) this security immediately at the best available price." It guarantees execution but not price. You will be filled against the best available orders in the book.

You place: Buy 100 AAPL at Market
What happens: Your order matches against the best ask ($190.00) and fills instantly. You pay $19,000.00.
If you wanted to sell: Your order would match the best bid ($189.98). You'd receive $18,998.00.
Strengths
Guaranteed execution. Instant. Simple. Best for liquid stocks when you need in or out immediately.
Risks
No price control. In fast-moving or illiquid markets, you may get filled at a much worse price than expected (slippage).

Limit Order Essential

A limit order tells your broker: "Buy at this price or better" (or "Sell at this price or better"). It guarantees price but not execution. Your order sits in the book until someone is willing to trade at your price — or you cancel it.

You place: Buy 100 AAPL, Limit $189.50
What happens: Your order joins the bid side of the book at $189.50. It will only fill if the ask price drops to $189.50 or below. It may sit unfilled for hours, days, or forever.
Sell example: Sell 100 AAPL, Limit $192.00 — only fills if someone pays $192.00 or more.
Strengths
Full price control. No slippage. You define the worst price you'll accept. Professional traders use limit orders for the vast majority of entries.
Risks
May never fill. If the price moves away from your limit, you miss the trade entirely. This can be frustrating but is almost always preferable to a bad fill.
The Golden Rule

Limit orders should be your default. Market orders are for emergencies — when you absolutely must get in or out right now regardless of price. For routine entries and exits, always use limit orders. The discipline of choosing a price forces you to think about what you're willing to pay, which is the foundation of good trading.

Stop Order (Stop-Loss) Essential

A stop order becomes a market order when the price reaches your specified trigger price. It's primarily used to limit losses — hence the common name "stop-loss." You set a price below your entry (for a long position) that says: "If the stock falls to this level, get me out."

You own: 100 AAPL bought at $190.00
You place: Sell Stop at $185.00
What happens: If AAPL drops to $185.00, your stop triggers and becomes a market order. You'll be filled at the best available bid at that moment — which might be $185.00, $184.98, or in a fast market, $184.50.
The key risk: Once triggered, it's a market order with no price guarantee.
Strengths
Automates loss management. You don't have to watch the screen. Enforces discipline when emotions might prevent you from selling a losing position.
Risks
Can be triggered by temporary dips (getting "stopped out"), then the stock recovers. In fast crashes, execution may be far below your stop price (gap risk).

Stop-Limit Order Intermediate

A stop-limit order combines a stop trigger with a limit price. When the stop price is reached, instead of becoming a market order, it becomes a limit order at your specified limit price. This gives you price protection but introduces the risk that your order won't fill at all.

You own: 100 AAPL at $190.00
You place: Sell Stop-Limit, Stop $185.00, Limit $184.50
What happens: If AAPL drops to $185.00, a limit order to sell at $184.50 or better is activated. If the stock is trading between $184.50 and $185.00, you'll get filled. If it gaps below $184.50 instantly, you won't be filled — and you're still holding as the stock keeps falling.
Strengths
Price protection even on the exit. Prevents being filled at catastrophic prices during flash crashes.
Risks
Can fail to execute exactly when you need it most — during fast, gap-down moves. A stop-loss that doesn't fire is worse than no stop at all.

Trailing Stop Order Intermediate

A trailing stop automatically adjusts your stop price as the stock moves in your favor. You specify a "trail" — either a fixed dollar amount or a percentage — and the stop follows the stock's highest price. It never moves backward. This lets profits run while still providing downside protection.

You own: 100 AAPL at $190.00
You place: Trailing Stop, $5.00 trail
At purchase: Stop is at $185.00
AAPL rises to $200: Stop automatically moves to $195.00
AAPL rises to $210: Stop moves to $205.00
AAPL drops from $210 to $205: Stop triggers. You sell at ~$205 (market order).
Result: You captured $15/share of upside while protecting against a reversal.
Strengths
Lets profits run. No need to manually adjust stops as the price rises. Excellent for trend-following strategies.
Risks
Normal volatility can trigger the stop too early. If AAPL routinely swings $6–7 intraday, a $5 trail will get hit constantly. Setting the trail too tight is a common beginner mistake.

Time-in-Force and Conditional Modifiers

Every order you place has a time-in-force instruction that tells the market how long the order should stay active.

CodeNameBehaviorUse Case
DAYDay Order Expires at end of trading day if unfilled Default for most orders. Use unless you have a specific reason not to.
GTCGood Till Canceled Stays active until filled or you cancel (brokers typically cap at 60–180 days) Limit orders at prices you'd be happy to trade if reached anytime in the coming weeks.
IOCImmediate or Cancel Fills what it can immediately; cancels the rest When you want partial fills but don't want the unfilled portion sitting in the book.
FOKFill or Kill Fills entirely immediately or cancels entirely — no partial fills When you need the full position size or nothing. Common in options.
MOO/MOCMarket on Open/Close Executes at the market price at the opening/closing auction When you want to participate in the opening or closing print specifically.

Bracket Orders (OCO — One Cancels Other)

A bracket order combines your entry, profit target, and stop-loss into a single package. When you enter a position, you simultaneously set a limit order to take profits at a higher price and a stop order to limit losses at a lower price. Whichever triggers first automatically cancels the other.

Entry: Buy 100 AAPL at Limit $190.00
Profit target: Sell 100 AAPL at Limit $200.00 (take profit at +$10)
Stop-loss: Sell 100 AAPL at Stop $186.00 (cut loss at -$4)
Risk/Reward: Risking $4 to make $10 = 2.5:1 ratio ✓

Bracket orders are the disciplined trader's best friend. They force you to define both your target and your exit before the trade begins, when you're thinking clearly — not after you're in the position and emotions are running.

Cross-Reference

We'll build on bracket orders and risk/reward math extensively in Module 7 (Risk Management). For now, understand the mechanics — Module 7 will teach you how to set the right prices.

Execution Quality: The Hidden Cost of Trading

Zero-commission trading doesn't mean free trading. The true cost of a trade is determined by execution quality, which includes the spread, slippage, and the speed at which your order is filled.

What to Watch For

Price improvement. When your market order is filled at a better price than the displayed best bid/ask. Example: the best ask is $190.00 but your buy order fills at $189.99. Wholesale market makers (the ones paying for your order flow) are required to match or improve the displayed price.

Slippage. When your order fills at a worse price than expected. This happens most often with market orders during volatile moments — earnings releases, market opens, news events. If you place a market buy when the ask is $190.00 and you get filled at $190.15, you experienced $0.15 of slippage on 100 shares, that's $15 in real money.

Fill rate. For limit orders, what percentage of your orders actually execute? If you're consistently placing limits that never fill, you might be setting them too aggressively and missing opportunities.

Practical Tip

Most brokers publish Rule 606 reports showing where they route orders and Rule 605 reports showing execution quality statistics. Check these periodically. If your broker consistently delivers poor execution, the "free" commissions may be costing you more than a broker that charges a small fee but provides better fills.

Case Study

When Stop-Losses Fail: The August 24, 2015 Market Open

On August 24, 2015, the U.S. market opened sharply lower after a weekend of selling in Chinese markets. The Dow dropped over 1,000 points in the first minutes of trading. Many ETFs — including highly liquid ones tracking the S&P 500 — opened at prices 20–30% below their previous close, far below the actual value of their underlying holdings.

Traders who had stop-loss orders on these ETFs saw their stops trigger and convert to market orders — which then filled at the absurdly depressed opening prices. Some investors lost 20% in seconds on positions that recovered within minutes. The lesson: stop orders become market orders, and in illiquid or chaotic conditions, market orders can fill at horrifying prices.

This event reinforced why many experienced traders prefer stop-limit orders (accepting the risk of non-execution) or simply avoid holding stop orders over weekends and through known high-volatility events like earnings and major economic releases.

Choosing the Right Order Type: Decision Framework

ScenarioRecommended OrderWhy
Routine entry on a liquid stockLimit orderPrice control with near-certain fill close to current price
You must exit immediately (emergency)Market orderGuaranteed execution when speed matters more than price
Protecting a profitable positionTrailing stopLocks in gains while allowing further upside
Setting a stop-loss on a swing tradeStop order (liquid stocks) or Stop-limit (less liquid)Balances automation with price protection
Defining risk and reward before entryBracket / OCOEnforces discipline — target and stop set in advance
Buying on a dip that may or may not happenGTC Limit orderSits in the book for days/weeks waiting for your price
Participating in the opening or closing printMOO or MOCExecutes at the specific auction price
Knowledge Check
6 questions — this is a longer sub-module.

1. You want to buy 200 shares of TSLA, currently quoted at $245.00 bid / $245.05 ask. You want to pay no more than $244.50. What order do you use?

A limit buy at $244.50 guarantees you won't pay more than that price. Your order will sit in the book until the ask drops to $244.50 or below — or it may not fill at all if the price never reaches your level.

2. What is the primary risk of a stop-loss order?

Once triggered, a stop order becomes a market order with no price guarantee. During fast-moving markets, gaps, or the open, you may be filled significantly below your stop price.

3. In the AAPL order book example (Bid $189.98 / Ask $190.00), what is the spread and what does it represent?

The spread ($0.02) is the difference between the best bid and best ask. It represents the market maker's compensation for providing liquidity and is effectively a hidden transaction cost for the trader.

4. You buy 100 shares at $50.00 and set a trailing stop with a $3.00 trail. The stock rises to $62.00, then falls. At what price does your stop trigger?

The trailing stop follows the highest price reached. At the peak of $62.00, the stop was at $62.00 - $3.00 = $59.00. It never moves backward, so when the stock falls to $59.00, the stop triggers.

5. What does a bracket (OCO) order do?

A bracket/OCO order sets both a profit target (limit sell above entry) and a stop-loss (stop sell below entry). When one executes, the other is automatically canceled, preventing double execution.

6. Why do experienced traders generally prefer limit orders over market orders for routine entries?

Limit orders ensure you never pay more (or receive less) than your specified price. More importantly, they impose discipline — the act of choosing a price forces you to think about valuation and entry levels, rather than chasing the market.