Learn › Glossary › Limit Order

Limit Order

An order that executes only at a specified price or better: a buy limit at $50 never pays more than $50. Limits guarantee price but not execution — the market may never come to you. Profit targets are naturally expressed as resting sell limits, which is exactly how DeployQuant maintains a strategy's take-profit at the broker.

A limit order sets a price boundary. A buy limit at $50 will fill at $50 or lower and never higher. A sell limit at $50 will fill at $50 or higher and never lower. The order rests in the market until the price reaches the boundary, until it is cancelled, or until it expires. That gives the trader control over price and removes control over whether the order fills at all.

In the glossary's wording, a limit order fills only at the specified price or better. It secures the price and leaves the fill uncertain. The market order is the opposite choice. It guarantees that the order fills and gives up the price. Every strategy that trades has to pick one or the other at each decision, and the data from the 59 ETFs in this backtest set shows how large the cost of that choice can be on different funds.

The figures below come from 2021-01-04 to 2026-10-02, a window of 1,444 sessions, and from the market profiles of SPY, QQQ, TLT, TQQQ, IWM and UVXY. They do not measure limit-order fill rates directly. The backtests do not simulate a queue of resting orders, and the headline runs apply no fees or slippage. What the profiles can show is how far prices move within a day and overnight, how much volume trades per minute, and how often a target price gets touched in a typical month. Those measures decide whether a limit order is easy or hard to fill on a given fund.

How a limit order works

A limit order has three parts: a side, a quantity and a limit price. For a buy, the limit price is a ceiling. For a sell, it is a floor. If the market is already better than the limit, the order fills immediately at the market price, which is the price improvement the phrase "or better" refers to. If the market is worse, the order waits.

A resting buy limit below the current price fills when sellers come down to it. A resting sell limit above the current price fills when buyers come up to it. A limit priced on the wrong side of the market, such as a buy limit above the current ask, fills at once and acts like a market order with a price cap. That order type is often called marketable. It will take what is available up to the cap and can leave part of the order unfilled if the cap is reached.

Time in force controls how long the order rests. A day order expires at the close. A GTC order keeps working at the broker from session to session until it fills or you cancel it. An exit limit such as a profit target is usually GTC, so it is live at the opening bell and needs no new order each morning.

What a limit order gives up

Fixing the price has a cost. If the market never reaches the limit, the order stays unfilled and the position the strategy wanted is not taken. For an entry that means missing a trade. For an exit it means holding a position the strategy planned to close.

The risk is asymmetric in a way that is easy to miss. A buy limit placed below the market fills when the price is falling toward it. Orders that fill that way are, on average, orders for a price that is still moving down. Orders that never fill are the ones where the price rose away from the limit. A trader who relies on limit entries tends to get filled on the trades that went against them and to miss the ones that worked. The size of this effect depends on the strategy and the fund, and it is a reason to test an entry as a limit order and as a market order before choosing.

A market order has the reverse problem. It fills every time and pays whatever the book offers. On a liquid fund in a calm market that costs little. On a thin fund, or when prices move fast, the fill can land well away from the last quote.

How fund liquidity changes the choice

Volume per minute shows how easily an order can trade at or near the quote. SPY's median minute volume over the window was 107,870 shares. QQQ's was 77,976, IWM's 46,034 and TLT's 35,636. TQQQ's was 285,786.5, and UVXY's was 1,145.

UVXY's figure is far below the others. A fund with that little volume per minute has a thinner book, so a market order of a given size is more likely to move the price, and a limit order at a given price may wait longer for the other side. UVXY also swings the most of the six, with a 7.03% typical day and a 2.53% overnight gap. Its annualised volatility was 103.95%. A limit order on UVXY has a wide price range to work with, and the price tends to run through any boundary quickly.

SPY sits at the other end. Its average intraday range was 1.15% and its average overnight gap 0.44%. A limit set a fraction of a percent from the quote on SPY is a small price distance relative to the day's movement, and the fund trades enough volume that such an order competes with many others at the same price. The dollar volume was large for all six funds, but the minute volumes show the order of liquidity: TQQQ and SPY at the top, UVXY at the bottom.

How far prices move compared with a limit

Whether a resting limit fills depends on how far price travels in a session. Measured high to low, the typical day spans 1.15% of price on SPY and 1.58% on QQQ. IWM spans 1.75% and TLT 0.94%. TQQQ spans 4.74% and UVXY 7.03%.

A sell limit set 7% above an entry, the target used by the weekly 7% target template, is far larger than SPY's average daily range and close to one day of UVXY's. On SPY it needs a sustained rise. On UVXY a single day can reach it, in either direction. It buys at the open of the first session each week, leaves the +7% target resting, and sells on Thursday afternoon if the trade is under water. For the 59 funds the median CAGR was 6.61%, with a 26.26% median maximum drawdown and 106 median round trips. It beat buy-and-hold on 34 of 59.

The dip buyer rests a +8% target after a 10% drop from the 20-day high. That one managed a 1.33% median CAGR on 2 median round trips and finished ahead of buy-and-hold on 22 of 59 funds. The target is similar in size to the weekly template's, and the difference in results comes mostly from how often the entry occurs. Rare entries leave a resting limit with little to do.

Both templates use a profit target, which is a limit order sitting above the entry. The take-profit order entry describes it as a resting sell order that locks in a gain when reached. In DeployQuant a strategy's take-profit lives at the broker as a resting sell limit.

Gaps and the price improvement from a limit

A gap is the jump from one session's close to the next session's open. A sell limit above the market benefits from an upward gap, because the order fills at the open price if it is above the limit, which is better than the limit. A buy limit below the market benefits from a downward gap in the same way. The "or better" in the definition is where that value comes from.

The flip side is the stop order, which has no such protection. A stop that is triggered by a gap sells at the open, which is worse than the stop level. A limit order never fills at a worse price, but it also may not fill at all when a price gaps through the limit in the wrong direction. A sell limit placed as a stop-loss at a price below the market would be passed by a gap down and left unfilled, with the position still open. That is the reason protective exits are normally stop or market orders and profit exits are normally limits.

Overnight gaps averaged 0.44% for SPY and 0.59% for QQQ. IWM gapped 0.61% and TLT 0.54%. The leveraged TQQQ gapped 1.78% and UVXY 2.53%. Over the whole window, 62.46% of SPY's return arrived overnight, as did 64.64% of QQQ's and 74.87% of TQQQ's. IWM's overnight share was 165.24% and TLT's was 136.58%, which means the intraday portion of those funds' return was negative over the window. For a limit order that rests overnight, a large share of the movement happens while the market is closed, and the order is filled or passed at the next open.

Limit entries on oversold signals

Mean reversion rules often enter on a dip, and a buy limit is the natural way to try to enter lower. The profiles show how the dips behaved.

SPY closed with RSI(14) under 30 on 18 sessions. Five days later the median return was 3.74%, where an ordinary day's baseline was 0.42%. TQQQ had 18 such sessions too, followed by a 10.3% median 5-day return against a 1.24% baseline. IWM had 33, with a 1.78% median 5-day return against 0.18%.

A buy limit placed under the market on one of those days fills only if price continues down to the limit. On the funds above the median outcome after an oversold reading was a rebound, so the limit gives a cheaper entry on the sessions where the fall continued and no entry on the sessions where the rebound began at once. A market order buys on the signal and takes the rebound from the start.

TLT and UVXY behave differently. TLT had 56 oversold sessions. Its median 5-day return afterwards was 0.02% and its 20-day figure was negative 1.63%. UVXY logged 116 oversold sessions, and the median 5-day return after them was negative 1.79%. On a fund where dips keep going, a buy limit below the market fills often and then loses. The limit gave a better price and did nothing about the direction.

The RSI mean reversion template enters under 30 and leaves above 70 on RSI(14). Across the funds it had a 2.98% median CAGR, 15 median round trips and a 24.63% median maximum drawdown. Buy-and-hold lost to it on 25 of 59. The RSI(2) snapback uses a much shorter lookback: in at RSI(2) under 10, out above 70. Its median CAGR was 4.74% on 166 median round trips, with a 17.47% median drawdown, and it finished ahead of buy-and-hold on 34 of 59. Both enter on a signal and exit on a signal, so neither rests a limit order as a target.

A limit order as an exit

The use of a limit order that matters most in these templates is the exit at a profit target. Two features make it fit. The target is known when the position is opened, and a sell limit at that price can sit at the broker without the strategy watching it. It is also protected from slippage on the way out, since it fills at the target or better.

A trailing stop and a take-profit encode opposite beliefs about what happens after a gain, and the trailing stop versus take-profit question covers how the 59-fund results compare. The momentum breakout template uses a trailing stop and has no limit target. Its median CAGR was 0.0% and its median maximum drawdown was 20.1%, with 6 median round trips and 21 funds ahead of buy-and-hold. The trend + trailing stop template posted 2.61% median CAGR and 31.15% median drawdown. Those exits are stop-based, so the limit order has no role in them except as a possible profit exit added on top.

Trading was heaviest in the weekly target at 106 median round trips. The monthly cycle followed at 69, buying on the first session of a month and selling on the last. The monthly cycle has a 5.46% median CAGR and a 36.63% median maximum drawdown, and it was ahead of buy-and-hold on 14 of 59. It uses scheduled exits and no price target.

The leveraged and volatility extremes

TQQQ shows what a resting limit faces on a leveraged fund. Its annualised volatility was 67.11% and its average intraday range was 4.74%. The deepest drawdown was 81.68%, running 2021-11-19 to 2022-12-28 and recovered by 2024-12-04. A sell limit 7% above an entry sits close to one day of average range on that fund, so it fills quickly in a rising market. The same speed applies in reverse to a buy limit below the market in a falling one.

TQQQ's calendar returns show how much the path varied. Calendar returns ran 90.95% in 2021, then negative 79.07% in 2022, then 198.32% in 2023. After that came 58.22% in 2024, 34.36% in 2025 and 54.6% for 2026 so far. A profit target fills early in a year like 2023 and caps the gain at the target. In 2022 the target rarely filled, since the fund spent most of the year falling.

UVXY lost 99.94% across the window. Its CAGR was negative 72.83%, and the 99.95% maximum drawdown began 2021-01-29, ran to 2026-09-22 and never recovered. Its calendar returns were negative in every year. On a fund like that, a sell limit above the entry is the only exit that has a chance of filling, because the trend is down and the spikes up are short. A resting target caught on a fund that spikes and fades is how a limit order earns its keep, and UVXY's average up day of 5.15% against an average down day of negative 4.02% shows how large those spikes are. The up days were only 40.26% of sessions.

Price bands and limit orders in live trading

Limit orders are also used as a safety device. Live trading on DeployQuant adds price bands, which reject a limit priced far from the current market. A typo in a limit price, a stale quote or a strategy bug could send a buy limit far above the market, and that order would fill immediately at whatever the book offered. The band blocks it before it is sent.

Before an order leaves, it is compared with the cash of the strategy that wants it, which keeps one strategy from spending money belonging to another in the same account. There are dollar caps per order and per position, plus a limit on how many orders go out in one sync. A cap never stops an order that shrinks exposure. Dry-run mode walks through the full flow and sends nothing to the broker. Booked positions and cash follow the broker's own fill reports.

Live accounts can be connected at Webull, Charles Schwab and Alpaca, and paper trading on the live feed needs no broker at all. Webull has no working paper environment, so a new order flow is tried first in DeployQuant's own paper mode. A Webull order error reaches the account owner by email.

Limit orders in a backtest

These backtests use minute-resolution US market data, and orders fill on minute bars. Minute bars give a more accurate picture of a limit than daily bars, because a daily bar's high and low say that price touched a level but not when. A target can be touched in the morning and a stop after lunch, and the order of events changes the result. The minute versus daily data question covers that point.

The limits of the test are specific. The headline runs apply no fees and no slippage, and the cost runs elsewhere on the site add 5 and 10 basis points. A real limit order at a broker can rest behind other orders at the same price, so a price touch does not always mean a fill. A backtest that fills at the touch is slightly optimistic for limit orders and this test does not quantify by how much. Trade-list prices are adjusted for splits and dividends, which puts them below the quotes printed on the day. These are one window, one set of templates and daily decision rules.

Frequently asked questions

What is a limit order?

A limit order is an order to buy or sell at a specified price or better. A buy limit at $50 never pays more than $50. It guarantees the price but not that the order fills, because the market may never reach the limit.

What is the difference between a limit order and a market order?

A market order fills immediately at the best available price and guarantees execution, not price. A limit order guarantees price, not execution. On a thin fund like UVXY, with a median minute volume of 1,145 shares, the gap between the two can be wide, while on SPY with 107,870 it is small.

Is a profit target a limit order?

Yes, a profit target is a resting sell limit above the entry price. In DeployQuant a take-profit is kept at the broker as a resting sell limit. The weekly 7% target template uses one, and across 59 ETFs its median CAGR was 6.61%.

Why might a limit order not fill?

The price may never reach the limit. A buy limit below the market fills only if the price falls to it, so it can miss entries that rebounded at once. On SPY the median 5-day return after RSI(14) fell below 30 was 3.74%, which is the kind of rebound a low limit would miss.

Can a limit order be a stop-loss?

A limit can be set as a sell below the market, but a gap down can pass through the limit and leave the order unfilled. For that reason protective exits are normally stop or market orders. TQQQ's average overnight gap was 1.78%, and UVXY's was 2.53%.

How does DeployQuant protect against a badly priced limit order?

A price band rejects any limit priced far away from the current quote. Orders are compared with the strategy's cash and with dollar caps per order and per position. Dry-run mode goes through the whole flow and sends nothing to the broker.

Run a strategy that uses this yourself, free →

Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.

Related terms

Market OrderAn instruction to buy or sell immediately at the best available price.…Take-Profit OrderA resting sell order at a level above the entry price that locks in a …GTC (Good-Til-Canceled) OrderAn order that stays working at the broker across sessions until it fil…

Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.