Trading concepts

Order Types in Trading: Market, Limit, Stop and Time in Force

Market, limit, stop and stop-limit orders, sell stop versus sell limit, and the time in force that keeps an order alive, with the SEC's definitions, a real April 2025 gap that shows what a stop and a stop-limit did, and the exchanges' closing auction deadlines.

· Founder of PatternsWizard
Checked 8 min read
Sell limitsells at this price or higherBuy stopbuys if the price rises to hereBuy limitbuys at this price or lowerSell stopsells if the price falls to hereCurrent pricea market order fills here, nowAbove the priceBelow the price
On this page
  1. The main order types in trading
  2. Sell stop vs sell limit, buy stop vs buy limit
  3. What a stop did on a real gap
  4. Time in force: day, GTC, IOC and fill or kill
  5. Market on close and limit on close orders
  6. Entering an order
  7. Frequently asked questions

An order type is the instruction that tells your broker how to trade: at any price right now, only at a price you set, or only once the market reaches a trigger. The three basic types are the market order, the limit order and the stop order, and the stop-limit order combines the last two. A second instruction, the time in force, says how long the order stays live. This page gives the SEC's investor definitions, where each order sits relative to the price, a real gap that shows what a stop and a stop-limit actually did, and the closing auction deadlines from the exchanges' own documents.

Where each order type sits relative to the price

Sell limitsells at this price or higherBuy stopbuys if the price rises to hereBuy limitbuys at this price or lowerSell stopsells if the price falls to hereCurrent pricea market order fills here, nowAbove the priceBelow the price
Schematic, not market data.Limit orders wait for a better price than now, stop orders for a worse one. A market order trades at once at the best available price.

The main order types in trading

The definitions below quote Investor.gov, the SEC's site for individual investors.

  • Market order. "An order to buy or sell a security immediately. This type of order guarantees that the order will be executed, but does not guarantee the execution price." A market buy generally fills at or near the ask, a market sell at or near the bid.
  • Limit order. "An order to buy or sell a security at a specific price or better." A buy limit fills only at the limit or lower, a sell limit only at the limit or higher, and the order may never fill.
  • Stop order. Also called a stop-loss order, it is an order to buy or sell "once the price of the stock reaches the specified price, known as the stop price. When the stop price is reached, a stop order becomes a market order." The SEC's bulletin on stop orders adds that the stop price "is not the guaranteed execution price."
  • Stop-limit order. When the stop price is reached, the order becomes a limit order, so it controls the price but "may not be executed if the stock's price moves away from the specified limit price."
  • Trailing stop. A stop whose stop price follows the market by a fixed amount or percentage; it is covered on trailing stop.

What each order type becomes

OrderWhenWhat happensMarketsentexecutes nowprice not guaranteedLimitsentwaits at its limitor better, may never fillStopstop price hitbecomes a market orderprice not guaranteedStop-limitstop price hitbecomes a limit ordermay never fill
A diagram of the order logic, not market data: what each of the four orders becomes once it is sent, as the SEC bulletins quoted above describe it.

Some brokers trigger stops on the last sale price and others on quotes, the bulletin notes, so the same stop can trigger at different moments at two brokers. Linked orders, where one order sends another once it fills, are covered on OTO order, and orders that hide part of their size on iceberg order.

Sell stop vs sell limit, buy stop vs buy limit

The four resting orders differ by side and by where they sit relative to the current price. A limit order waits for a better price than now; a stop order waits for a worse one and then trades at market.

OrderPlacedTypical use
Buy limitBelow the priceBuy a pullback at a set price or better
Sell limitAbove the priceTake a profit at a set price or better
Buy stopAbove the priceBuy a breakout, or cap the loss on a short
Sell stopBelow the priceCap the loss on a long, or sell a breakdown

One mix-up to avoid is placing a sell limit below the price to protect a long: a sell limit below the market is marketable and sells at once. Protection below the price is a sell stop or a sell stop-limit. More on placing protective stops is on stop loss order.

What a stop did on a real gap

Gaps show what a stop does and does not do, because the next trade can be far from the stop price. The S&P 500 ETF closed at 536.70 on Thursday, April 3, 2025 (unadjusted daily prices from our data). Take a holder with a sell stop at 530 and, in a second account, a sell stop-limit with a stop at 530 and a limit at 528, both good until canceled. The next sessions:

SessionOpen, high, low, closeWhat happened
Fri April 4, 2025523.67, 525.87, 505.06, 505.28Opened below 530: the stop became a market order and sold near 523.67, 6.33 below the stop price. The stop-limit triggered too, but 528 was above every trade of the day: unfilled
Mon April 7489.19, 523.17, 481.80, 504.38Stop-limit still unfilled, the price 46.20 under the limit at the low
Tue April 8521.86, 524.98, 489.16, 496.48High below 528: still unfilled
Wed April 9493.44, 548.62, 493.05, 548.62The rally passed 528: the limit sell could fill at 528 or better

A stop and a stop-limit on a gap down

Stop priceLimitLast closeGap: the stop sellsat market, belowits stop priceStop-limit waitsbelow its limitFills onlywhen pricecomes back
Schematic, not market data. Shape of the four sessions in the text, drawn without prices.

The stop did its job of getting out, at a worse price than its stop; the stop-limit did not protect anything for three sessions and only sold because the price came back. Had the price kept falling, it would still be open. Daily bars do not show the exact fill of a market order at the open, which depends on the opening auction and the broker, so treat 523.67 as an approximation.

Time in force: day, GTC, IOC and fill or kill

The time in force says how long an order stays live. Investor.gov's glossary defines the main ones:

  • Day order. Unless you specify otherwise, orders are "good only during that trading day"; day orders that do not execute during regular hours expire and do not carry into after-hours trading.
  • Good-til-canceled (GTC). Lasts "until the order is completed or canceled"; brokers typically cap how long it can stay open, and the limit varies by broker. On Nasdaq's own system, a GTC order stays live until canceled or until it is 365 days old.
  • Immediate or cancel (IOC). Must execute immediately; any part that cannot be filled at once is canceled.
  • Fill or kill (FOK). Must execute immediately in its entirety, or the whole order is canceled; no partial fill.
  • All or none (AON). Must execute in full or not at all, but can stay active until it executes or is canceled.

How long an order lives, by time in force

SentCloseIOCfills what it can at once, rest canceledFill or killall at once, or nothingDayexpires at the closeGTCuntil filled, canceled or broker's limitAll or nonewaits for one complete fill
A diagram of the order logic, not market data: how long each time in force keeps an order alive. The cap on a good-til-canceled order varies by broker.

Nasdaq's order type guide also lists time in force values tied to sessions, such as market hours (9:30 a.m. to 4:00 p.m. Eastern) and system hours (4:00 a.m. to 8:00 p.m.), and an expire time set by the trader. An order can fill in pieces at different prices unless it is FOK or AON; see partially filled.

Market on close and limit on close orders

A market on close (MOC) order buys or sells in the closing auction at the official closing price; a limit on close (LOC) order does the same with a price limit. Their deadlines are set by each exchange:

  • Nasdaq (Closing Cross FAQ): MOC orders must be received before 3:55 p.m. Eastern and LOC orders before 3:58 p.m., but an LOC order entered after 3:55 p.m. is re-priced if its limit is more aggressive than the 3:50 or 3:55 p.m. reference price; orders can be modified or canceled only before 3:50 p.m.
  • NYSE (auctions fact sheet): MOC and LOC orders can be entered, modified or canceled until 3:50 p.m.; after 3:50 p.m., new ones are accepted only on the side that offsets a published imbalance, and none can be modified or canceled.

Closing auction cutoffs on Nasdaq and the NYSE

3:503:553:584:00Nasdaqlast changeor cancellast MOCorderlast LOCorderNYSElast MOC or LOC, change or cancel;then only orders that offseta published imbalanceTimes p.m., New York, from each exchange's documents.
Deadlines from the Nasdaq Closing Cross FAQ and the NYSE auctions fact sheet, New York time; the spacing of the times is not to scale.

MOC orders suit anyone who needs the closing price; the trade-off is the same as for any market order: certainty of execution, not of price. Closing imbalances are explained on trading imbalance.

Entering an order

An order ticket asks for the same few fields whatever the platform: the symbol, buy or sell (and, for a short, sell short), the quantity, the order type, the limit or stop price where needed, and the time in force. Before sending, check three things: that the side is right (a sell limit below the price fills at once), that the price is on the right side of the market for the type, and that the time in force matches the plan, since a day stop disappears at the close. The bid and ask and the depth of market show what a market order would pay before you send it.

More definitions are in trading concepts.

Frequently asked questions

What are the main order types?

Market, limit, stop and stop-limit. Variants such as trailing stops, linked orders and hidden-size orders are built on these, and each can carry a time in force such as day or good-til-canceled.

What is the difference between a sell stop and a sell limit?

A sell limit sells at its price or higher and sits above the market; a sell stop sits below the market and becomes a market order when the price falls to it. One takes a profit, the other caps a loss.

Is a stop loss guaranteed?

No. The stop price only triggers a market order; on a gap the fill can be far below it. A stop-limit controls the price but may not fill at all.

What does time in force mean?

How long an order stays active: for the day, until canceled (GTC, usually capped by the broker), or only for an immediate fill (IOC and fill or kill).

When is the deadline for market on close orders?

On Nasdaq, 3:55 p.m. Eastern for MOC and 3:58 p.m. for LOC, with changes only before 3:50 p.m.; on the NYSE, 3:50 p.m. for entry, change or cancel, after which only orders offsetting an imbalance are accepted.

Sources

  1. Investor.gov (SEC), Types of Orders
  2. Investor.gov (SEC), Investor Bulletin: Stop, Stop-Limit, and Trailing Stop Orders
  3. Investor.gov glossary, Day Order
  4. Investor.gov glossary, Good-Til-Cancelled Order
  5. Investor.gov glossary, Immediate-Or-Cancel Order
  6. Investor.gov glossary, Fill-Or-Kill Order
  7. Investor.gov glossary, All-Or-None Order
  8. Nasdaq, Order Types and Time in Force guide (PDF)
  9. Nasdaq, Opening and Closing Cross FAQ (PDF)
  10. NYSE, Opening and Closing Auctions fact sheet (PDF)
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All trading concepts articles