Fill
A fill is the execution of an order: shares change hands at a specific price, in a specific quantity, at a specific time. An order is an instruction. A fill is the result. Every position an account holds and every dollar of profit or loss comes from fills, and nothing else counts as a trade until a fill happens.
One order can produce one fill, several fills or none. A buy order for 100 shares might fill 60 shares at one price and 40 at the next price, which gives two fills for a single order. A limit order that never reaches its price produces no fill at all. A strategy's real results are the sum of its fills, so a platform that cares about accuracy records each one with its price, its size and the rule that asked for it, then compares that record against the broker's own.
Below are the parts of a fill, the reasons its price drifts from the screen price, the way backtests approximate fills, and measured figures on SPY, QQQ, TLT, TQQQ, IWM and UVXY says about how much fills can move results. The numbers come from the same backtest window used across the library, 2021-01-04 to 2026-10-02, with $10,000 starting capital.
What a fill contains
A fill record has four parts that matter for a strategy: the symbol, the price, the quantity and the time. A fifth part, the link to the order and the rule that placed it, is what lets an owner ask later why a trade happened. The decision log keeps the prices and indicator values the strategy saw at each decision, so a fill can be read beside its reason.
The price is the one part that is not known when the order is sent. A strategy decides at one moment, the order travels to the broker, and the fill comes back at whatever price the market offered when the order reached the front of the line. For a small order in a liquid fund that gap is tiny. For a large order, a thin fund or a fast market it can be a real cost.
Quantity is the second uncertainty. A market order normally fills in full, but it can fill in pieces at different prices. A limit order can fill partly and leave the rest resting. When a strategy sizes a position from the fill it actually got, instead of the number it asked for, its books stay correct. In live trading, DeployQuant takes positions and cash from the broker's fill reports, which keeps its books tied to the executions that really happened.
Time matters because a daily-decision strategy still fills on a specific minute. The backtests in this library decide once a day and fill on minute bars, which is why a rule that says "buy at the open" gets the price of the first minute and not a price from the close the day before.
Why the fill price differs from the quote
Two things separate the price a strategy saw from the price it got: the spread between the buyer's price and the seller's price, and the movement of the market during the delay. A related term, slippage, is the difference between expected and actual price. It covers spread, market impact and delay, and a backtest that assumes perfect fills overstates results by roughly the round-trip slippage times the trade count. High-turnover strategies are flattered most.
The order type sets how much price risk the fill carries. A market order is an instruction to buy or sell immediately at the best available price. It makes sure the order executes and puts no limit on the price. When the market moves quickly or the book is thin, the fill can land well away from the last quote. Systematic strategies use market orders when having the position matters more than the last few cents.
A limit order reverses the trade-off. It sets a price the fill cannot be worse than, and it can wait forever without filling. The weekly 7% template in this library rests a limit order 7% above its entry price. That order only fills if the fund trades up to that price. When a fund gaps over the limit, the fill comes at the better price, which is why some trades under that template ended above 7%.
The measured gaps in the data show how large the effect can be. Take the overnight gap, the move from a close to the next open. It averaged 0.44% on SPY and 0.54% on TLT, 0.59% on QQQ and 0.61% on IWM, then 1.78% on TQQQ and 2.53% on UVXY. Any rule that decides after the close and fills at the next open lives with that gap. The average intraday range, the distance from the day's low to its high, was 1.15% on SPY, 1.58% on QQQ, 0.94% on TLT, 1.75% on IWM, 4.74% on TQQQ and 7.03% on UVXY. A fill at the wrong end of that range on UVXY is a different size of error than the same mistake on TLT.
Fills at the open and the overnight gap
Most of the strategies in the library trade at the open. A decision made on yesterday's close fills at today's first minute. The overnight move therefore sits between the signal and the fill, and it belongs to the fund's return whether or not the strategy owns it.
The share of total return that came overnight was 62.46% for SPY, 64.64% for QQQ, 74.87% for TQQQ and 45.66% for UVXY. On TLT the overnight share was 136.58%, and on IWM it was 165.24%. A share above 100% means the intraday part was negative: IWM gained 69.84% in overnight log return and lost 27.57% intraday, so everything the fund made came between the close and the next open. TLT lost 70.11% overnight and made 18.78% intraday, the mirror image.
For a strategy this matters in a plain way. A rule that buys at the open and sells at the close owns the intraday part only. On IWM that part was negative over the window. A rule that holds overnight owns both parts. The fill time decides which part of the return a strategy receives, and a backtest that fills at the wrong time reports a different strategy.
How much volume sits behind a fill
Whether a fill moves the price depends on the size of the order against the volume trading. Dollars traded per day, on average, ranked SPY first at $30,453,859,411, then QQQ at $18,772,024,579, IWM at $5,885,548,447, TQQQ at $4,150,045,180, TLT at $2,159,787,473 and UVXY last at $458,284,172. The median minute traded 107,870 shares on SPY, 77,976 on QQQ, 285,786.5 on TQQQ, 46,034 on IWM, 35,636 on TLT and 1,145 on UVXY.
The numbers on UVXY are the lowest of the six on both measures, and the fund is also the most volatile, with annualized volatility of 103.95%. A $10,000 order is small beside $458,284,172 of daily volume, yet the median minute carries only 1,145 shares, so the price a fill gets in a fast minute can differ from the last print. SPY at the other extreme has a median minute of 107,870 shares, and a small order disappears into that.
The same reasoning applies to the funds in the rest of the library. Thinly traded funds have wider spreads and fills that move the price. The cost runs in the backtest pages charge a flat 5 or 10 basis points per trade and do not model a spread that widens in a thin market, so the real cost on those funds can differ from either run.
How a backtest produces fills
A backtest has no market to trade against, so it has to assume a fill. DeployQuant's engine evaluates daily-decision rules on minute-resolution consolidated US market data and fills orders on minute bars, with no margin. The headline run has no fees or slippage. Cost runs add 5 and 10 basis points per trade. Trade-list prices are adjusted for splits and dividends and so sit below the quotes of the day.
The assumption that matters most is that a fill happens at all. A backtest fills a limit order when the bar's price range reaches the limit, and it cannot know whether a real order sitting at that price would have been first in the queue. It also assumes the order size does not move the market. Both assumptions hold well for a $10,000 account in SPY and less well for a large account in a thin fund.
The fill count shows how much each assumption is used. The engine's own example run, the weekly TQQQ strategy on $1,000 from 2021-01-04 to 2026-06-09, ended at $13,603.38 with 520 fills from 597 orders. Orders and fills are separate counts, and the run recorded fewer fills than orders. The run took 1.90 seconds.
The templates in this library show the range of fill counts. The median number of round trips across the 59 funds is 2 for the dip buyer, 3 for the golden cross, 4 for the trend plus trailing stop, 6 for the momentum breakout and 12 for the 3-month momentum. It is 15 for RSI mean reversion, 17 for the SMA 10/50 trend and 22 for the EMA 12/26 trend. The 200-day regime filter has 18. The monthly cycle has 69, the weekly 7% target 106 and the RSI(2) snapback 166. Each round trip is two fills, so the fast templates pay the cost of a fill many more times.
Why fill count decides how much costs matter
A fixed cost per fill adds up in proportion to the number of fills. A rule with few fills can absorb a charge that would wipe out a rule with many. At the busy end sits the RSI(2) snapback with a median of 166 round trips, followed by the weekly 7% target with 106. The monthly cycle makes 69. The golden cross makes 3.
Median CAGR over the 59 funds was 4.74% for the snapback, 6.61% for the weekly target, 5.46% for the monthly cycle and 2.05% for the golden cross. Those are headline numbers with no charge on any fill. The pages for each fund report how those figures change at 5 and 10 basis points. A rule that makes its money from small gains per trade is the most exposed, because a fixed charge takes a large share of a small gain.
Comparing strategies without costs favours the ones that trade often. The honest comparison is the one that shows the headline result next to the cost runs, and it is the reason the backtest pages carry both.
Fills in live trading
In live trading the fill comes from the broker, and the platform has to take it as the truth. DeployQuant tags every order with the strategy that placed it and returns each fill to the sleeve that placed the order. A sleeve is one strategy's own slice of the account, with its own cash, positions and profit and loss. Several strategies can share one account, and they can hold the same symbol, with each one's share of the position tracked separately.
Before an order goes out it is checked against the cash of its own sleeve, which stops one strategy from spending money that belongs to another. A strategy that sells everything only sells its own positions. Live accounting follows the broker's fill reports, which means the platform's cash and positions match what filled and not what was requested.
Safety limits apply before the fill happens. Price bands refuse limit orders priced too far from the market. Per-order and per-position dollar caps limit the size of any single fill, and caps never block an order that reduces exposure. Dry-run mode goes through the whole order flow and sends nothing to the broker.
A live deployment needs a typed confirmation from the user before real money moves. Webull order errors on live accounts are sent to the user by email. Broker connections have trade and read permissions only and cannot withdraw or transfer money.
Fills and records
Each fill is a dated record with a price and a quantity, which is the information a brokerage statement and a tax preparer work from. How fills are treated for tax depends on the account type, the holding period and the rules where the account owner lives. The question on taxes for automated trading covers the general idea. Check the details with a tax professional or the broker.
The practical point is that automated strategies can produce a large number of fills. A template that makes 166 round trips on a fund generates hundreds of dated records in a year of trading. The decision log and the broker's records are the two places those fills are written down, and a good platform reconciles them against each other.
Reading fills in a backtest report
Three questions turn a list of fills into something useful.
First, how many fills did the strategy make, and what did each one cost? A report that shows the headline result and the 5 and 10 basis point runs lets a reader see how sensitive the result is to the fill assumption.
Second, at what time did the fills happen? An open fill takes the overnight gap and an intraday fill does not. On IWM the overnight part of the return was 165.24% of the total, so a rule that filled only at the close and sold only at the open would have owned something very different from one that bought the open.
Third, how did the fills compare with holding? Buy-and-hold has one fill. On SPY it made 14.56% a year with a maximum drawdown of 23.99% and ended at $21,820.48, from one buy order at the first open. On QQQ it made 16.7% and ended at $24,264.64. On TQQQ it made 25.35%, ended at $36,585.29 and fell 80.77% at the worst point. On TLT it lost 8.23% a year and ended at $6,106.38. On IWM it made 7.5% and ended at $15,145.24. On UVXY it lost 48.74% a year and ended at $215.70. One fill and no further trades set the baseline against which every additional fill has to pay.
Limits of the data
The figures on this page describe six funds over one window of 5.74 years, with daily-decision rules and minute-bar fills. They are hypothetical and show how large the gaps, ranges and volumes were. They do not predict future fills. Real fills depend on the broker, the moment of day, the size of the order and the state of the market, and a backtest can only approximate all four.
Frequently asked questions
What is a fill in trading?
A fill is the execution of an order. It is the moment shares change hands at a specific price and quantity. One order can produce one fill, several partial fills or none, and a strategy's real-world results are the sum of its fills.
What is the difference between an order and a fill?
An order is an instruction to buy or sell. A fill is the result. The engine's example run of the weekly TQQQ strategy sent 597 orders and recorded 520 fills, so the two counts can differ.
Why is my fill price different from the price I saw?
The spread, the delay between decision and execution, and the size of the order all move the price. Slippage is the name for the difference. On average the overnight gap was 0.44% on SPY and 2.53% on UVXY, so a fill at the next open can differ from the last close by that much.
What is a partial fill?
A partial fill is an order that executes in pieces, for example 60 shares at one price and 40 at another. Each piece is its own fill. A limit order can also fill part of its size and leave the rest resting.
How does a backtest decide that a fill happened?
DeployQuant's engine evaluates daily-decision rules on minute-resolution data and fills orders on minute bars. The headline run has no fees or slippage, and cost runs add 5 and 10 basis points per trade.
How do fills work when several strategies share one account?
Each order is tagged with the strategy that placed it, and each fill returns to that strategy's sleeve. A sleeve has its own cash, positions and profit and loss, so one strategy cannot spend another's money.
Do fills matter for taxes?
Each fill is a dated record with a price and a quantity, and brokerage statements are built from them. How they are taxed depends on the account and where the owner lives, so check with a tax professional or the broker.
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.