Order Types Explained: Market, Limit, Stop, Trailing Stop, MOC and Time in Force, With Worked Fills
A market order fills now at the best available price, a limit order fills only at your price or better, and a stop order becomes a market order once price touches it. On the same 300-share buy, a market order averaged US$50.0267, while a limit at US$49.95 waited for a pullback. Each type, with a worked fill, is below.
The short answer: you choose between certainty of fill and certainty of price
Every order type is a trade-off between two things. Either you are sure to be filled but not sure of the price (market, stop), or you are sure of the price but not sure to be filled (limit, stop-limit). Time-in-force settings such as day, GTC, IOC and FOK then decide how long the order lives and what happens to the part that does not fill.
The worked fills on this page all use one invented stock, XYZ, so you can compare them. The quote is bid US$50.00 for 300 shares, ask US$50.02 for 100 shares, then US$50.03 for 200 shares and US$50.05 for 500. The tape (the sequence of trade prices) later runs 50.02, 50.05, 50.12, 50.20, 50.08, 49.95, 49.90, and the bids then drop to 49.88 for 100 shares and 49.85 for 200. The numbers are an illustration, not a recording of a real security, and fees are left out.
| Order type | Executes when | Price you get | Can it fail to fill? | Main risk |
|---|---|---|---|---|
| Market | Immediately | Best available, may walk the book | Rarely | Slippage in thin or fast markets |
| Limit | Price reaches your limit or better | Your limit or better | Yes | Missing the move |
| Stop (stop-market) | Price touches the stop, then becomes market | Whatever is available after the trigger | Rarely | Gaps fill well past the stop |
| Stop-limit | Price touches the stop, then becomes limit | Your limit or better | Yes | No fill in a fast fall |
| Trailing stop | Price falls (long) by the trail amount from its high | Same as stop | Rarely | Trail too tight gets shaken out |
| Market on close (MOC) | At the closing auction | The official closing price | Rarely | You do not control the price |
| Limit on close (LOC) | At the close if the close is at your limit or better | The closing price | Yes | Close beyond your limit, no fill |
Market and limit orders: the same buy, two outcomes
Say you want to buy 300 shares of XYZ. A market order sends you to the best sellers first and keeps going until it is full. You take 100 shares at US$50.02 and 200 shares at US$50.03. The total cost is 100 x 50.02 + 200 x 50.03 = US$5,002 + US$10,006 = US$15,008, an average of US$50.0267. You pay the spread, and the bigger the order relative to what is displayed, the further you walk.
Now place a limit buy for 300 at US$49.95. It does not take the offer at US$50.02. It sits in the book, ahead of or behind others at the same price, until sellers come to you. On the tape, XYZ prints 49.95 and then 49.90, so your order fills at US$49.95 or better, for US$14,985. You saved about US$23 against the market order, but only because the price came back. If the stock had gone straight from 50.02 to 50.20, the limit order would still be waiting, and you would have missed an 18-cent move, US$54 on 300 shares (300 x 0.18).
Use a limit order when the price matters more than the fill: wide spreads, thinly traded stocks, options, and any time you do not want to walk the book. Use a market order when speed matters and the stock is liquid, such as a large-cap during regular hours.
Stop and stop-limit orders: a trigger, then an order
A stop does nothing until the market touches your stop price. A stop-market order then becomes a market order. A stop-limit then becomes a limit order at the limit you set. Brokers differ on what counts as touching the stop (last trade, bid, ask or mid), so check yours. Our stop versus stop-limit page works through a gap in detail.
Example on the same tape. You own 300 shares of XYZ with a sell stop at US$49.90. The tape prints 49.90, so the stop triggers and becomes a market sell. Bids are 49.88 for 100 shares and 49.85 for 200 shares, so you sell 100 at 49.88 and 200 at 49.85, for US$4,988 + US$9,970 = US$14,958, an average of US$49.86. That is US$0.04 a share, or US$12, worse than the stop price. You are out, which is what a stop is for.
A stop-limit with stop 49.90 and limit 49.85 would have filled the same, because the bids were at or above 49.85. Had the bids been 49.80, it would not have filled at all and you would still hold the stock. Neither is better in general; it depends on whether you fear a bigger loss or no exit.
Trailing stops: a stop that follows the price up
A trailing stop for a long position stays a fixed distance below the highest price since you placed it. The distance can be a dollar amount or a percentage. It moves up when price rises and never moves down.
Example. You buy XYZ at US$50.02 and place a sell trailing stop with a US$0.30 trail. The stop starts at 49.72. The tape runs to 50.12, so the stop moves to 49.82, then to 50.20 and the stop moves to 49.90. When price falls back to 49.95 and then 49.90, the stop at 49.90 triggers and becomes a market order. The stop rose from 49.72 to 49.90 without you touching it, cutting the most you can lose from US$0.30 to US$0.12 a share. A US$0.30 trail on a stock that moves US$0.40 a minute will probably be hit by noise; the trail should be wider than the stock's normal wiggle.
Check where your broker runs the trail. Some trailing stops live on the exchange, and some only on the broker's server, which may not work in extended hours or if the platform is offline.
Market on close and limit on close
A market on close (MOC) order is held until the closing auction and fills at the official closing price. On the TSX, the auction runs from 3:50 to 4:00 p.m. Eastern; see our TSX trading hours page. Your broker sets its own cut-off for entering and cancelling MOC orders, often earlier than the exchange, so confirm it.
Example: you submit a MOC to sell 300 XYZ. The stock closes at US$50.08, so you receive 300 x 50.08 = US$15,024. You did not choose the price. A limit on close (LOC) sell with a limit of 50.05 would have filled at 50.08, because the close was at your limit or better. A LOC sell with a limit of 50.10 would not have filled, because the close was below it.
MOC suits investors who want the closing price specifically, for example to match an index or a rule that uses the close. It is a poor fit for a trade that depends on timing during the day.
Time in force: day, GTC, IOC and FOK, with a partial fill
Time in force tells the market how long an order lasts and what to do with unfilled shares. Use the same order for all four. You want to buy 500 XYZ with a limit of US$50.03. Only 300 shares are for sale at that price or lower: 100 at 50.02 and 200 at 50.03.
| Time in force | What it means | Result for the 500-share order | Cost of the filled part |
|---|---|---|---|
| Day | Lives until the close of today's session | 300 fill now, 200 rest until close, then cancel | US$15,008 |
| GTC (good till cancelled) | Stays until filled or cancelled; brokers set an expiry limit | 300 fill now, 200 rest into later sessions | US$15,008 plus later fills |
| IOC (immediate or cancel) | Fill what you can now, cancel the rest | 300 fill, 200 cancelled at once | US$15,008 |
| FOK (fill or kill) | Fill everything now or nothing | Nothing fills, 500 cancelled | US$0 |
Which order to use, and who should avoid which
For a liquid stock in regular hours, a market order is fine for a small size. For anything that is thin, wide-spread or in extended hours, use a limit; our after-hours trading page explains why many brokers only accept limit orders there. If you must exit, use a stop (or a stop-limit when you are more worried about a bad fill than no fill). If you want to ride a trend and exit automatically, use a trailing stop with a trail wider than normal noise. If you need the closing price, use MOC or LOC.
Avoid market orders on illiquid names and around news, avoid stops that trigger on thin extended-hours prints, and avoid GTC orders you will forget: a stale limit order can fill weeks later at a price you no longer want. On a simulated prop firm account, fills may not match live trading; see our simulated versus live fills page. For futures, trading halts and price limits can stop an order from filling at all; see price limits and halts.
Frequently asked questions
What is the difference between a market order and a limit order?
A market order fills immediately at the best available price, so it almost always fills but the price can slip. A limit order fills only at your price or better, so the price is certain but the fill is not.
What happens when a stop order is triggered?
A stop-market order becomes a market order and fills at whatever price is available, which can be worse than the stop in a fast market. A stop-limit becomes a limit order and may not fill.
What is a trailing stop?
A stop that follows price by a set amount or percentage. For a long position it rises when price rises and never falls, so it locks in gains as price climbs.
What is the difference between IOC and FOK?
IOC fills whatever it can immediately and cancels the rest. FOK either fills the whole order immediately or cancels it entirely.
Is a GTC order good forever?
No. Brokers set their own expiry for good-till-cancelled orders, so check your broker. A resting GTC order can also fill later at a price you no longer want.
Sources
Provider documents behind this page, checked November 23, 2026.