Order typeBeginner

Limit Orders

A limit order is an instruction to buy or sell only at a specified price or better, giving you full control of the price you accept but no guarantee that the order will ever be filled.

Quick Answer

A limit order fills only at your price or better, so you control the price but risk never trading if the market moves away. Use it to enter passively or cap cost, accepting that in a fast Bank Nifty move your limit may be skipped entirely. It trades certainty of price for uncertainty of execution.

Definition: Limit Orders

Limit Orders are instructions to buy or sell only at a specified price or better, giving control over execution price but no guarantee of a fill.

Key takeaways: Limit Orders

  • A limit order guarantees price but not a fill — the opposite trade-off to a market order.
  • Passive limits can earn the spread but suffer adverse selection and queue risk.
  • Price-time priority means your place in the queue, and needless amendments, decide your fill.
  • Model limit fills conservatively in backtests — require the price to trade through you, not just touch it.

Limit Orders at a glance

Limit Orders — key facts at a glance, Indian algorithmic-trading context.
TypeOrder type (priced)
GuaranteesPrice, not execution
Fills atYour limit price or better
Failure modeSkipped entirely if the market moves away
Best whenControlling cost or entering passively
Rests inThe order book until filled or cancelled

Limit Orders in simple words

A limit order says 'trade me only at this price or better, otherwise wait'. If you place a buy limit below the current price it rests in the order book until a seller comes to your price. You control exactly what you pay, but you might sit unfilled while the market walks away from you.

What Limit Orders is for

Limit orders exist so a trader can control execution price, earn rather than pay the spread by providing liquidity, and place resting orders that work while unattended — the backbone of passive and market-making style execution.

Limit Orders — professional explanation

Price certainty, fill uncertainty

A limit order flips the market order's trade-off. You state the worst price you will accept — a buy limit fills at your price or lower, a sell limit at your price or higher — so the price is certain. What is uncertain is whether it fills at all. If the market never trades at your limit, the order simply rests and then expires, and you have missed the move entirely. This is the central risk of passive execution: opportunity cost, not a bad fill.

Passive versus marketable limits

A limit order is passive (liquidity-adding) when it is priced away from the touch — a buy below the best bid or a sell above the best ask — so it rests in the book and waits. It is marketable (liquidity-taking) when priced at or through the touch — a buy at or above the best ask — so it crosses the spread and fills immediately, behaving almost like a market order but with a price cap. The same order type serves opposite purposes depending only on where you set the price.

Queue position and price-time priority

The NSE matches on strict price-time priority: better-priced orders trade first, and among orders at the same price the one entered earliest trades first. When you post a passive limit, you join the back of the queue at your price level. Your fill probability depends on your position in that queue — every order ahead of you must be filled or cancelled before yours trades. Modifying an order's price, and on most systems increasing its quantity, loses your time priority and sends you to the back of the queue, which is why serious passive traders avoid needless amendments.

Why passive orders can be picked off

Resting a limit order is effectively writing a free option to the rest of the market: you will be filled precisely when someone wants to trade against you, which is often when information has just moved against your side. This adverse selection means a naively posted buy limit tends to fill just as the price is about to fall further. Market makers manage this by quoting tight two-sided prices, skewing quotes with inventory, and pulling quotes when they detect toxic flow.

Immediate-or-cancel and validity

Limit orders carry a validity: DAY (rests until the close), IOC (immediate-or-cancel — fills what it can right now and cancels the rest), or GTT-style persistent triggers offered at the broker layer on the NSE. An IOC limit is a common execution primitive for algos that want to take only what is available at their price without leaving a resting footprint. Understanding validity is part of controlling whether your order behaves passively or aggressively.

Modelling limit fills in a backtest

Backtesting limit orders honestly is harder than market orders because a fill is conditional. A common conservative rule is to assume a buy limit fills only if the bar's low trades strictly below your limit (not merely touches it), acknowledging queue position by requiring the price to trade through you. Assuming every touched limit fills is a subtle look-ahead-style optimism that overstates passive strategies, since in reality being at a price does not guarantee your place in the queue cleared.

How Limit Orders looks visually

Order Types on the Price LadderMarket — fills now at best priceLimit — only at set price or betterStop — becomes market once triggeredPrice →Sell Limit (above)Buy Stop (trigger)Market priceBuy Limit (below)
A passive buy limit resting below the touch versus a marketable limit that crosses to fill immediately.

Worked example: Limit Orders

Illustrative example (Indian market)

Nifty is trading with a best bid of 24,998 and best ask 25,002. You believe fair value is nearer 24,995, so you post a passive buy limit at 24,996 for one lot (65). Your order rests just below the touch and waits. If the market dips and a seller crosses down to 24,996, you fill at 24,996 — 2 points better than the mid and having paid no spread. But if Nifty rallies to 25,050 without ever printing 24,996, your order never fills and you have missed a 50-point move; your cost was zero rupees but a real opportunity. Had you instead priced the buy limit at 25,002 (a marketable limit), you would have filled immediately against the ask, capped at 25,002.

On the NSE, retail 'GTT' (Good Till Triggered) orders at brokers like Zerodha are a client-side wrapper: the limit order is only pushed to the exchange when a trigger condition is met, because the exchange itself does not natively hold multi-day resting orders for retail. This matters for algos — a GTT is not a true resting book order and will not hold queue priority the way a live DAY limit does.

Market order vs Limit order

Market order vs Limit order — Limit Orders, summarised for Indian F&O context.
AspectMarket orderLimit order
Fill certaintyNear-guaranteedNot guaranteed
Price certaintyNoneGuaranteed at limit or better
Spread costPays the spreadCan earn the spread if passive
Liquidity roleTakes liquidityAdds liquidity when passive
Speed to fillImmediateImmediate if marketable, else waits
Main riskSlippage / bad fillMissing the trade entirely
Queue positionNot applicableMatters — price-time priority
Best used forUrgent exits, liquid namesControlled entries, providing liquidity

Advantages of Limit Orders

  • Full control of the execution price — you never pay worse than your limit
  • Can earn the spread and even a rebate-like edge by providing liquidity passively
  • Rests unattended, so it works signals while you are away
  • Marketable limits give near-market speed with a worst-price safety cap

Limitations of Limit Orders

  • No guarantee of a fill — the market can move away and leave you flat
  • Passive orders suffer adverse selection: you fill when the move is against you
  • Queue position is fragile; modifying price or size costs your time priority
  • Opportunity cost of a missed trade is invisible on the contract note but very real
  • Partial fills can leave an awkward residual quantity to manage

Why Limit Orders matters in practice

  • Passive limit execution is how strategies reduce or eliminate spread cost, materially improving net returns for high-turnover systems
  • Fill probability, not just price, becomes a first-class variable an execution engine must model

How professionals treat Limit Orders

Quantitative execution teams treat the passive-versus-aggressive choice as a continuous decision, not a binary one. They post passive limits to capture spread when urgency is low and the alpha is durable, then become marketable — crossing the spread — as a deadline approaches or the signal risks decaying. Sophisticated desks model fill probability as a function of queue position, spread and volatility, and route child orders accordingly. The governing idea is that a limit order is a bet on both price and time, and both sides of that bet must be priced.

Common misconceptions about Limit Orders

Misconception: A limit order is guaranteed to fill.

Reality: A limit order guarantees the price but not the fill. If the market never trades at your limit, or the queue ahead of you is never cleared, the order simply expires unfilled and you miss the trade.

Common mistakes with Limit Orders

  • Assuming a resting limit will fill because the price 'reached' it, ignoring the queue ahead of you
  • Repeatedly modifying a limit's price, which resets time priority and pushes you to the back of the queue each time
  • Setting a buy limit so far below the market that it never fills, then wondering why the signal was missed
  • Backtesting limits as filled whenever the bar merely touches the price, overstating passive-strategy returns
  • Forgetting a passive fill happens when the market is moving against you, and treating the fill price as a bargain
  • Confusing a broker GTT wrapper with a true exchange-resting limit that holds queue priority

Limit Orders: frequently asked questions

What is a limit order?

A limit order is an instruction to trade only at a specified price or better. A buy limit fills at your price or lower and a sell limit at your price or higher, so you control the price but accept that the order may never fill.

Why did my limit order not fill even though the price reached it?

Because being at a price is not the same as clearing the queue at that price. Orders match on price-time priority, so every order entered ahead of yours at that level must fill first; if the price only touched your level briefly, the depth there may never have reached you.

What is the difference between a passive and a marketable limit order?

A passive limit is priced away from the touch so it rests and adds liquidity, waiting to be filled. A marketable limit is priced at or through the touch so it crosses the spread and fills immediately, behaving like a market order but with a worst-price cap.

Does modifying a limit order lose my place in the queue?

Changing the price always resets your time priority and sends you to the back of the queue at the new level. On most exchanges increasing quantity also loses priority, while reducing quantity usually keeps it, which is why disciplined passive traders modify as little as possible.

How do I backtest limit orders realistically?

A conservative rule is to fill a buy limit only when the bar's low trades strictly below your price, and a sell limit only when the high trades strictly above, so the price must move through you. Filling on a mere touch overstates how often passive orders actually execute.

What is a GTT order on the NSE and is it a real resting limit?

A Good Till Triggered order is a broker-side wrapper that pushes a limit order to the exchange only when a trigger price is hit. It is not a native multi-day exchange order, so it does not hold live queue priority the way a DAY limit that is already resting in the book does.

Sources & references

Published 10 July 2026. Educational content only — not investment advice. Markets and rules change; verify current conventions with SEBI, NSE/BSE and your broker.

Educational content only — not investment advice. Examples use illustrative numbers and simplified models. Algorithmic trading and derivatives involve substantial risk. See our Risk Disclosure and SEBI Disclaimer.