Order type execution

Market participants rarely place a trade and get filled at the same instant. The path prices take between the time an order is placed and when it executes determines whether an order fires immediately, sits patiently, or never fills. This page demonstrates how five common order types behave as the market unfolds.

Order types at a glance

  • Market order: executes right away at the best price available.
  • Limit order: waits for a specific price or better.
  • Stop order: becomes a market order once price moves to a less favorable level.
  • Stop-limit order: arms at the stop price, then becomes a limit order with a constrained fill price.
  • Market-if-touched order: becomes a market order once price moves to a more favorable level.

Interactive order execution lab

Configure orders, then reveal the price path one day at a time to see when each order activates and how it fills. The price path follows a volatile geometric Brownian motion (GBM), so you can explore different price relationships.

Tip

How to experiment

  1. Choose the order type and side (buy or sell).
  2. Enter the price levels relevant for the order (limit price, stop price, etc.).
  3. Click Queue order to stage as many orders as you like.
  4. Drag the day slider to reveal the path and watch each order trigger, fill, or expire.
  5. Remove or clear orders at any point to try a new scenario.

Order log

What to observe

  • Market orders fill instantly upon placement—use them as a benchmark against conditional orders.
  • Limit orders wait for the market to reach their price; if the revealed path never touches, they expire unfilled.
  • Stop orders convert into market orders at the stop price, highlighting how protection can trigger during adverse moves.
  • Stop-limit orders show gap risk: once armed, the limit may never trade, leaving the order resting indefinitely.
  • Market-if-touched orders flip the logic of stops—use them to explore profit-taking levels that execute with market liquidity.

Takeaways

Placing orders while gradually revealing the price path underscores the difference between activation price and execution price. Market orders fill at the opening quote, limit orders demand favorable levels, stop-family orders protect against unfavorable moves (but can slip), and market-if-touched orders secure profits once a target is hit. Experiment with multiple orders at once—such as pairing a protective stop-limit with a profit-taking MIT—to see how combined strategies respond to the same price path.

Caveats and Simplifications

This simulation makes several simplifying assumptions for educational clarity:

  • Daily Prices: The simulation uses a single price point for each day (akin to a closing price). It does not account for intraday price fluctuations (highs and lows), which in a real market could trigger an order.
  • Guaranteed Fills: Limit orders are assumed to execute as soon as the market price meets the limit condition. In reality, execution is not guaranteed and depends on factors like order book depth and queue priority.
  • No Slippage: Market orders, including those triggered by stop and MIT orders, are assumed to execute at the exact price of that day’s time step. In live markets, especially fast-moving ones, they can experience slippage—the difference between the price when the order is submitted to the market and the final execution price.
  • Exchange-Specific Rules: The order types and validation logic shown here (such as the relationship between stop and limit prices) are common but not universal. Different exchanges and brokers may support different sets of orders or enforce their own specific constraints.