Market Order
A market order tells the broker to buy or sell now at the best price available. It is the simplest order type and the one with the most certain outcome in one respect: the order will be filled. What it does not fix is the price. The fill can land at the last quote, a little better, or meaningfully worse, depending on the spread, the depth of the book and how fast the price is moving.
The limit order is the opposite trade. A limit order names a price and waits, so it protects the price and gives up the certainty of a fill. A systematic strategy picks between the two depending on what matters more for that rule: being in the position, or the last few cents. The cost of the difference has a name, slippage, and DeployQuant's own backtest data shows how large the price risk of a market order can be on different funds.
The data covers 2021-01-04 to 2026-10-02, 1444 sessions, on six well-known funds: SPY, QQQ, TLT, TQQQ, IWM and UVXY. For each one it gives the average overnight gap, the average daily range, the dollar volume and the median volume per minute. Those four numbers describe what a market order meets when it arrives: how far the price moves between sessions, how far it moves inside a day, and how many shares trade each minute. The same data set includes buy-and-hold results for each fund, and the 12 strategy templates give a view of how much the number of orders changes the bill.
The backtest method matters for reading everything below. Decisions are daily and orders fill on minute bars. The headline run has no fees or slippage. The cost runs add 5 and 10 basis points per fill. A backtest fill is a model of a market order and not a record of one. A real fill can differ from the model in either direction.
What happens when a market order is sent
A market order goes to the market and takes whatever liquidity is on the other side. A buy order takes the lowest offers and a sell order takes the highest bids. If the order is small against the shares showing at the best price, it fills at that price. If it is larger, it works through several price levels and the average fill is worse than the first quote.
Three things set the result. The first is the spread, the gap between the best bid and the best offer. A market buy pays the offer and a market sell receives the bid, so a round trip pays the spread once. The second is depth, the number of shares waiting at each level. The third is movement: the price can change between the moment the order is decided and the moment it reaches the market. All three change from fund to fund and from minute to minute, which is why a single slippage figure is an assumption and not a measurement.
A market order fixes the execution and leaves the price open. In a liquid fund during a calm session that distinction barely matters. In a thin fund or a fast market it matters a great deal.
The opposite risk belongs to the limit order. A strategy that wants to be long and places a limit below the market may never be filled, and the missed trade can cost more than the spread saved. The take-profit side is where limits fit best: a profit target is naturally a resting sell limit, which is how DeployQuant maintains a strategy's take-profit at the broker.
How the backtests fill orders
Every backtest on this site is computed by DeployQuant's engine on minute-resolution consolidated US market data. Rules decide once a day and the resulting orders fill on minute bars. The headline run charges nothing for the fill. It assumes the order executes at the bar price, which is the best case for a market order.
Two cost runs are added for each backtest page. They charge 5 and 10 basis points of slippage on every fill. These are fixed assumptions. They are not recorded spreads and they do not change with the volatility of the day or the size of the order. Their purpose is to show how sensitive a rule is to execution quality, and they do that well. They do not tell you what a fill would have cost on a particular morning.
The starting capital is $10,000 and the templates put 98% of the sleeve into a position, so each order is small against the volume of the funds shown below. A $10,000 order is a very small part of the daily dollar volume of SPY, which averaged $30,453,859,411 in the data. The same order is a larger part of the thin funds. That is one reason the funds in this library differ in how closely a backtest fill can be trusted.
The buy-and-hold figures on every page follow the same convention. Buy-and-hold puts 98% of the account in at the first open, as the templates do, and holds to the end. It makes one fill, so execution costs are close to nothing for it, and every strategy that trades more often than that carries a larger cost burden by construction.
Gaps and ranges: how far the price moves while you wait
The overnight gap is the difference between one session's close and the next session's open. A rule that decides after the close and sends a market order for the next open fills at the open price, whatever the gap was. The average overnight gap in the data gives a sense of the size of that move on each fund.
SPY averaged 0.44% and QQQ 0.59%. TLT averaged 0.54% and IWM 0.61%. TQQQ, the 3x fund on the Nasdaq 100, averaged 1.78%, and UVXY, a volatility fund, averaged 2.53%. The same order of funds shows up in the average intraday range: SPY 1.15%, QQQ 1.58%, TLT 0.94%, IWM 1.75%, TQQQ 4.74% and UVXY 7.03%.
These are averages, so the typical session is calmer than the worst ones. They are still the right scale to compare against the slippage assumptions. The cost runs charge 5 and 10 basis points per fill. A fund whose average overnight gap is 1.78% moves several times that between close and open on a normal day, and the open itself is the first and noisiest print of the session. A market order at the open takes that print.
The gap also carries much of the return. The overnight share of log return was 62.46% for SPY, 64.64% for QQQ and 74.87% for TQQQ, so most of what these funds earned arrived between the close and the next open. A strategy that fills at the open captures the gap only on days it already holds the position. Some funds show an overnight share above 100%: 136.58% for TLT and 165.24% for IWM. In those cases the intraday share is negative, which means the funds lost ground during the trading day and made it all back overnight. For a rule that buys at the open and sells at the open, that pattern is worth knowing about before reading a result.
The annualized volatility figures fit the same picture: 16.41% for SPY, 22.39% for QQQ, 15.33% for TLT, 22.35% for IWM, 67.11% for TQQQ and 103.95% for UVXY. The price a market order receives is a draw from that spread of possible prices, and the wider the spread, the larger the uncertainty on any single fill.
Liquidity: how many shares trade each minute
Depth decides how much a market order moves the price. The data has two measures: average daily dollar volume and the median number of shares per minute.
SPY is the deepest. It averaged $30,453,859,411 of dollar volume a day, with a median of 107,870 shares a minute. QQQ followed at $18,772,024,579 and 77,976. IWM was $5,885,548,447 and 46,034, and TLT $2,159,787,473 and 35,636. TQQQ was $4,150,045,180 a day with a median of 285,786.5 shares a minute, the highest minute count of the six. UVXY was the thinnest: $458,284,172 a day and a median of 1,145 shares a minute.
UVXY is the clearest contrast. Its daily dollar volume is large in absolute terms, yet its median minute volume is the lowest of the six and its volatility is the highest. A market order in a fund with few shares trading per minute and a price that swings 7.03% in an average day has the widest range of possible fills, because thin minutes and large moves compound.
SPY sits at the other end, with a far higher median minute volume. A $10,000 market order there is a rounding error in a minute's volume, while in a thinner fund the same order is a more visible part of it. This is why the library carries funds with very different liquidity, and why a backtest that fills at the bar price is closest to a real market order in SPY or QQQ and furthest from one in a fund like UVXY.
More orders, more exposure to the fill price
The cost of market orders grows with the number of trades. Buying once and holding, as buy-and-hold does, pays the cost once at most on the way in. A high-turnover strategy pays it again on every entry and exit. The library shows the spread in order counts by taking the median number of round trips for each template across the 59 funds.
The RSI(2) snapback sits at the top with 166, followed by the weekly 7% target with 106 and the monthly cycle with 69. The trend and regime templates trade far less: the EMA 12/26 trend has 22, the 200-day regime filter 18 and the SMA 10/50 trend 17. At the bottom, the golden cross has 3 and the dip buyer 2. For rules at that end, the choice of order type hardly changes the outcome because they make so few fills.
The medians of CAGR for the top three are 4.74%, 6.61% and 5.46%. Across the individual backtest pages, the high-turnover rules lose a large share of their CAGR when slippage is added, and the low-turnover rules lose a fraction of a point. The same cost assumption weighs very differently on the two groups.
High turnover does not by itself produce a better or worse result. The snapback and the weekly target each beat buy-and-hold on 34 of the 59 funds, the highest count of any template, and the monthly cycle did so on 14. The other nine templates ranged from 20 to 27. Order count is a cost, and whether a rule earns more than that cost depends on the rule and the fund.
Market order and limit order in a systematic strategy
A rule that must be in the position by a certain time uses a market order. The entry in most of the templates is of this kind: when the condition is true at the open, buy with 98% of the sleeve. The point of the rule is to hold the asset while the condition holds, and a missed entry changes the test.
A rule that wants a specific price uses a limit order. The weekly 7% target is the example in the library: it buys at the first open of the week, rests a +7% profit target, and exits Thursday afternoon if the trade is losing. The resting target is a sell limit. If the price reaches it, the order fills at that price or better. If it never does, the rule exits by the time rule. The limit protects the price on the way out and the time exit supplies the certainty.
The two order types fail in opposite ways. A market order that fills badly costs money on a trade that happened. A limit order that never fills costs the trade that did not happen. The first cost is visible in the fill report and the second is visible only by comparing with what the price did next. A backtest model of slippage speaks only to the first.
The DeployQuant product reference describes two controls that apply to limit orders at the broker. Price bands refuse limit orders priced too far from the market, and per-order and per-position dollar caps limit the size of any single order, with caps that never block an order that reduces exposure. Both are risk controls on what an order can do, and neither changes how a market order fills. Dry-run mode runs the whole order flow without sending any order to the broker, which allows the order logic to be checked without a live fill.
Positions and cash on the platform are accounted from the broker's own fill reports, so the books follow what actually filled at the broker. For market orders that means the recorded price is the real fill price, which can differ from the price the backtest assumed.
Leveraged and inverse funds: the widest fills
TQQQ and UVXY are in the data as examples of what a market order meets when the price moves fast. TQQQ returned 291.92% over the window with annualized volatility of 67.11%. Its average up day was 3.01% and its average down day was -3.22%. Its drawdown ran to -81.68%, from 2021-11-19 to 2022-12-28, and recovered on 2024-12-04. Buy-and-hold on TQQQ returned a CAGR of 25.35% with a drawdown of 80.77%.
In a fund where a typical day moves 3%, a market order in the opening minutes can fill several tenths of a percent from the previous print, and that range is ordinary. The daily range of 4.74% on average and the overnight gap of 1.78% put the uncertainty of one fill on a different scale from SPY, where the average gap is 0.44% and the average range is 1.15%.
UVXY shows the extreme. It lost 99.94% over the window, its volatility was 103.95% and its average daily range was 7.03%. Buy-and-hold on UVXY ended with $216 from $10,000. The median minute volume of 1,145 shares is far below the others. Any rule that trades a fund like this with market orders is exposed to the full width of the spread and the size of the moves.
The leveraged and inverse funds on the site's backtest pages are tested with the same assumptions as the index funds. The headline run has no slippage and the cost runs add 5 and 10 basis points. On a fund like UVXY the cost runs still apply 5 and 10 basis points. The realized fill on such a fund can be far from those assumptions in either direction, and the backtest cannot say which.
A practical reading follows from the data. The more volatile and the thinner the fund, the less the 5 and 10 basis point runs resemble a real market order. For SPY, QQQ and TLT, with minute volumes in the tens of thousands of shares and gaps near half a percent, they are a reasonable proxy for the cost of crossing a tight spread.
What the data does and does not show
The numbers on this page describe the funds and the test window. They do not measure the spread or the market impact of any order, since the backtests have no quote data attached to fills. What they show is the environment a market order operates in: how far prices move between sessions and inside a day, and how many shares trade each minute.
The window is 5.74 years, from 2021-01-04 to 2026-10-02. It includes the 2022 bear market, the April 2025 selloff and the rebounds after each. SPY's worst drawdown in the window was -24.51%, from 2022-01-03 to 2022-10-12. QQQ's was -35%, from 2021-11-19 to 2022-11-03. TLT's was -44.06% and had not recovered by the end of the data. Fills during those stretches were harder than fills in calm months, and the fixed slippage assumption does not distinguish between them.
The cost runs are the tool to use for sensitivity. If a strategy's result survives 10 basis points per fill with a modest change, as the slow rules do, order type is a secondary question. If the result collapses at 5 basis points, as it does for some of the highest-turnover rules, the strategy depends on getting good fills and the backtest figure should be read as an upper bound.
None of this is advice to use one order type or the other. It is a description of what a market order is, what it meets in the market, and how the library's backtests model it. Backtests are hypothetical. Live trading involves risk of loss, and broker execution can differ from any model. For questions about order handling on a specific account, check with the broker.
Frequently asked questions
What is a market order?
A market order is an instruction to buy or sell immediately at the best available price. It ensures execution but not price. In fast markets or thin books the fill can be meaningfully worse than the last quote.
How is a market order different from a limit order?
A [limit order](/learn/glossary/limit-order/) executes only at a specified price or better, so it protects price and gives up certainty of a fill. A market order does the reverse. Systematic strategies tend to use market orders when being in the position matters more than the last few cents.
How much can a market order fill away from the quote?
It depends on the fund. In the data, the average overnight gap was 0.44% for SPY, 0.59% for QQQ, 1.78% for TQQQ and 2.53% for UVXY. The average daily range was 1.15% for SPY and 7.03% for UVXY. [Slippage](/learn/glossary/slippage/) is the name for the difference.
How do the backtests treat market orders?
Orders fill on minute bars at the bar price, with no fees or slippage in the headline run. The cost runs add 5 and 10 basis points per fill. These are fixed assumptions and not recorded spreads.
Which strategies are most affected by order costs?
The ones that trade most. The RSI(2) snapback has a median of 166 round trips across the 59 funds, the weekly 7% target 106 and the monthly cycle 69. The golden cross has 3 and the dip buyer 2. See the [RSI(2) snapback](/learn/strategies/rsi2-dip-snapback/) page for its results.
Is a market order safe in a thinly traded fund?
The data shows why it carries more risk. UVXY had a median of 1,145 shares per minute and an average daily range of 7.03%, against 107,870 shares and 1.15% for SPY. A thin book and large moves widen the range of possible fills. Check with your broker on how it handles orders in a specific fund.
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
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.