Do I need minute data to backtest, or is daily data enough?
Daily data is enough for a rule that decides once a day and trades at the open or the close with a market order. Minute data is needed when the result depends on what price did inside the day. A resting profit target, a stop, an exit at a fixed time of day and the price you actually get at the open all depend on the path inside the bar, and a daily bar does not store the path. It stores four prices and a volume.
The backtests on this site use minute-resolution consolidated US market data from 2021-01-04 to 2026-10-02, which is 5.74 years and 1,444 sessions, starting from $10,000 with no margin. The headline run has no fees or slippage, and cost runs add 5 and 10 basis points. The rules themselves decide once a day. Orders then fill on minute bars. The measurements below show where the two resolutions agree and where they part.
The text starts with what a daily bar contains, then use the measured overnight and intraday behaviour of SPY, TLT, IWM, TQQQ and UVXY to show how much of a fund's return lives in each part of the day. After that come the rule types that need the intraday path, the rule types that do not, and the limits of this comparison.
What a daily bar holds and what it hides
A daily bar has an open, a high, a low, a close and a volume. The high and the low say that price visited those levels. They do not say in which order. A bar can have fallen first and then rallied, or rallied first and then fallen, and the four prices look the same. For a rule that buys at the open and rests a target 7% above the entry, the order matters only if the high reaches the target. When it does, the daily simulator knows the target was touched at some point and has to decide whether the strategy exited there. When the same bar also reached the stop level, the simulator has to guess which came first.
A minute bar answers that question for most cases. A minute bar covers a 60-second slice, so a full day of them describes the day well enough to see whether the target was hit before the stop, and at what time. The data volume is larger, but the engine handles it. A multi-year minute backtest of a daily-decision strategy finishes in seconds on this platform.
Two things in the daily bar are exact. The close is the official close, and the open is the first print of the day. A rule that signals at the close and trades at the next open uses two numbers that a daily file contains correctly. That is why plain trend rules are often tested on daily files without much loss. The trouble starts when the rule needs a price between those two points.
How much of a fund's return happens between the close and the open
Daily files make the open and the close look like equal partners. The measured split is uneven. Over the window, SPY's log return divides into 49.65% earned overnight and 29.84% earned during the session. That is a 62.46% overnight share and a 37.54% intraday share. QQQ shows a similar shape, with a 64.64% overnight share and a 35.36% intraday share.
The other funds in the facts push the split further. TQQQ earned 74.87% of its return overnight and 25.13% intraday. IWM's overnight log return was 69.84% and its intraday log return was -27.57%, which puts its overnight share at 165.24% and its intraday share at -65.24%. Holding IWM only during market hours lost money over this window while holding it only overnight made all of the gain and more. TLT shows the same sign pattern with an overnight log return of -70.11% and an intraday log return of 18.78%, so its overnight share is 136.58%. UVXY lost in both parts, with a 45.66% overnight share and a 54.34% intraday share of a total that was deeply negative.
These numbers matter for the question of resolution because the fill price at the open is where the overnight move lands. A rule that buys at the first open of the week gets the gap, good or bad. SPY's average overnight gap was 0.44%, QQQ's was 0.59%, IWM's was 0.61%, TLT's was 0.54%, TQQQ's was 1.78% and UVXY's was 2.53%. A simulator that fills at the previous close ignores the gap and hands the strategy a price it could not have had. A simulator that fills at the first minute's price after the open uses the gap correctly. This is the cheapest accuracy gain of minute data, and it applies to strategies that never touch a limit order.
Close-based and open-based fills can differ by the gap on every single trade, and the sign of the gap is not random against the signal. A rule that buys after a down close often buys into a further gap lower when fear continues, and into a gap higher when the market bounces. A file that fills at the signal close avoids both outcomes.
Intraday range sets how often a target or stop is touched
The average intraday range is the distance from the day's low to its high as a share of price. SPY averaged 1.15%, TLT 0.94%, QQQ 1.58%, IWM 1.75%, TQQQ 4.74% and UVXY 7.03%. These numbers decide how often a resting order sits inside the day's range.
Take a stop that sits 3% below the entry. On SPY, with a typical range near 1.15%, the stop is far outside a normal day, and a daily close below it is nearly the same event as an intraday touch. On TQQQ, with a typical range of 4.74%, the same stop sits inside an ordinary day's range, so a daily-close simulation can miss exits that a minute simulation takes. The daily simulation sees a close above the stop level and keeps the position. The minute simulation sees the low trade through the stop and exits at the stop's fill price, and the position may then recover by the close. The daily file has a better-looking equity curve than anyone could have traded.
The effect runs in the direction the short answer states. Daily-bar tests of intraday-mechanics strategies guess at the path, and the guesses lean optimistic, because a stop that would have fired in reality can vanish from the daily record while a favourable path is easy to assume. The size of the error grows with the range. On a quiet fund the two resolutions are close. On the leveraged and volatility funds they can disagree on a large fraction of trades.
Profit targets and resting limit orders
A limit order fills only at its price or better. A profit target is naturally a resting sell limit, and DeployQuant maintains a strategy's take-profit at the broker in that form. In a backtest, a resting limit raises a precise question: did the market trade at the limit price, and when. On a daily bar, the test is whether the high reached the price. That is a reasonable first answer, and it hides two issues.
The first is the entry. If the strategy buys at the open and rests a target 7% above the fill, the target depends on the real fill price at the open. A daily file that uses the previous close as the entry sets the target in the wrong place whenever the open gapped. The second is the exit time. A rule that exits at a fixed time if the trade is losing needs prices at that time. A daily file has no 2pm price. It can only approximate the rule with the close, which changes what the rule does.
The weekly 7% target strategy contains all of these mechanics. It buys at the first open of each week, rests a +7% profit target and exits Thursday afternoon if the trade is losing. Across the 59 ETFs its median CAGR was 6.61% with a median max drawdown of 26.26%, and it made a median of 106 round trips. It beat buy and hold on 34 of the 59 funds. The rule has an entry at the open, a resting limit and a time-of-day exit, and none of the three can be represented faithfully by a daily bar. Its results came from minute fills, and the result would not be comparable if the exit had been moved to a close.
The dip buyer also uses a target. It waits for a 10% drawdown from the 20-day high, buys it and takes profit at +8%. Its median CAGR was 1.33% with a median of 2 round trips and a median max drawdown of 26.19%. It beat buy and hold on 22 of the 59 funds. With so few trades the exact fill matters less per run, but every one of them has an entry after a drop that is large enough to include gaps.
Stops and trailing stops
A stop is the mirror image of a target. The momentum breakout strategy buys after a +10% four-week burst and exits through a 10% trailing stop. Its median CAGR across the 59 funds was 0%, its median max drawdown was 20.1%, and it made a median of 6 round trips. It beat buy and hold on 21 of 59.
A trailing stop moves with the high water mark of the trade. To simulate it properly, the engine has to track the highest price since entry and test each new price against the stop. On daily data, the high water mark is the highest daily high, and the test is the daily low. That treats the high and the low of each day as if the high always came first, which loosens the stop in a rising market. On minute data the high water mark updates as the day unfolds, and the stop fires when the price at that minute is below it.
The trend with a trailing stop rule enters above the 200-day average and exits when a 15% trailing stop is hit. Its median CAGR was 2.61%, its median max drawdown was 31.15% and its median round trips were 4. A 15% stop is wide relative to the average range of most funds in the table, so the path inside the day matters less for it than for a 10% stop on a fund that moves 4% a day. The rule is a good example of one that sits between the two categories, daily in signal and intraday in exit.
Rules that work on daily closes
Many rules do not need the path. The golden cross holds while the 50-day average is above the 200-day. Its median CAGR was 2.05%, its median max drawdown was 21.84% and it made a median of 3 round trips. It beat buy and hold on 27 of 59 funds. There are only a few trades over the window, and each one is decided by the daily close.
The same holds for the SMA 10/50 trend, with a median CAGR of 2.12%, a median max drawdown of 23.02% and 17 median round trips, and for the EMA 12/26 trend, with 2.76%, 22.87% and 22. The 200-day regime filter owns an asset when it closes above its 200-day average and holds cash below, with a median CAGR of 1.84%, a median max drawdown of 22.16% and 18 round trips. The 3-month momentum rule had a 0% median CAGR, a 26.23% median max drawdown and 12 round trips. In each case, signals come from closes and trades happen at the next open with market orders, so a daily file would reproduce most of what the minute engine does.
The monthly cycle buys the first session of each month and sells the last. It had a median CAGR of 5.46%, a median max drawdown of 36.63% and 69 median round trips, and it beat buy and hold on 14 of 59. This rule needs only the open on the first day and the close on the last day, which a daily file holds exactly.
These strategies still run on minute data here. The benefit is a consistent fill model across the whole table, so the comparison between a limit-order strategy and a close-based one uses the same data. The point of the list is that the minute data is not the reason they work or fail. Their results would be close on daily bars.
RSI signals are daily-resolution measurements
The RSI rules compute from daily closes. SPY's RSI(14) was below 30 on 18 sessions and above 70 on 134 sessions over the window, and its RSI(2) was below 10 on 146 sessions. After the 18 RSI(14) readings below 30, SPY's median forward 5-day return was 3.74% and its median forward 20-day return was 2.86%. The baseline median across all sessions was 0.42% for 5 days and 1.73% for 20 days. The sample is small, with 18 observations, so the measurement shows direction and not a reliable edge.
TQQQ had 18 RSI(14) readings below 30 as well, followed by a median 5-day return of 10.3% and a median 20-day return of 6.9%, against baselines of 1.24% and 3.62%. TLT had 61 sessions below 30 and 56 with a measurable 20-day outcome, followed by a median 5-day return of 0.02% and a median 20-day return of -1.63%, against baselines of -0.14% and -0.6%. UVXY's 116 sessions below 30 were followed by -1.79% and -5.82%, against -3.53% and -11.36%.
The RSI mean reversion rule buys below 30 and sells above 70. It had a median CAGR of 2.98% across the 59 funds, a median max drawdown of 24.63% and 15 median round trips, and it beat buy and hold on 25. The RSI(2) snapback buys RSI(2) below 10 and exits above 70, with a median CAGR of 4.74%, a median max drawdown of 17.47% and 166 median round trips, beating buy and hold on 34. Both compute signals from daily closes, and the choice of data resolution changes only the fill price after the signal.
Lookahead bias and the daily file
A lookahead bias appears when a test uses information that was not available at the time of the decision. Daily files invite one particular form of it: a rule that needs today's close to decide and also trades at today's close. On a daily file, both prices sit in the same row, and a careless simulator fills the order at the price that produced the signal. A real strategy cannot act on a close that has not printed yet, and on the next open the price has moved by the overnight gap. The facts above give the typical size of that gap, from 0.44% on SPY to 2.53% on UVXY, applied to every trade.
Minute data does not remove the bias by itself, and it needs an engine that separates the signal time from the fill time. In this setup the rules decide on completed daily information and orders fill on minute bars after the decision. That makes the fill price one that a live strategy could have received, within the limits of a hypothetical test. The engine enforces the separation, so it does not depend on the strategy author remembering it.
What minute data costs in practice
The cost of minute data is storage and compute, plus thinner prints in illiquid funds. The median minute volume tells how many shares changed hands in a typical minute: 107,870 for SPY, 77,976 for QQQ, 285,786.5 for TQQQ, 46,034 for IWM, 35,636 for TLT and 1,145 for UVXY. Average daily dollar volume was about 30,453,859,411 for SPY and 458,284,172 for UVXY.
A minute with 1,145 shares printed is a thin minute. A simulator that fills a large order on that minute at the displayed price assumes depth that the minute does not show. For the $10,000 account used here, the order sizes are small relative to those volumes. The fill model is still an assumption, and the cost runs at 5 and 10 basis points exist for that reason. Minute data gives more resolution on the price at which an order could fill. It does not give a record of the liquidity behind the print.
Limits of this comparison
The test did not run each strategy twice, once on daily and once on minute data, and report the difference. The facts hold the minute-based results only, so the statements about optimistic daily simulation rest on how the rules work and on the measured gaps and ranges, not on a head-to-head run. The window is one stretch of 5.74 years that includes the 2022 drawdown, in which SPY fell 24.51% from the peak on 2022-01-03 to the trough on 2022-10-12 and TQQQ fell 81.68%. A longer window could change the medians.
The medians in the strategy list are medians across 59 funds, not the result of one fund. A median of 0% for two strategies describes the middle of a spread, and individual funds did far better or worse. Backtests are hypothetical. The headline run has no fees or slippage, and nothing here forecasts a future result or advises a trade. For how long a test window should be, see how many years a backtest should cover, and to see every template side by side, the strategy index lists them.
Frequently asked questions
Is daily data enough to backtest a moving-average strategy?
For a rule that signals on the close and trades at the next open with a market order, daily data holds the two prices it needs. The golden cross made a median of 3 round trips and the SMA 10/50 trend a median of 17 across the 59 funds, all decided by daily closes. The remaining difference is the fill at the open, which includes the overnight gap.
Why do daily backtests of stop-loss strategies look better than live results?
A daily bar stores the high and the low but not their order. A stop can be touched inside a day and the price can recover by the close, so the daily file keeps a position that the stop would have closed. On TQQQ the average intraday range was 4.74%, which puts many stops inside an ordinary day.
Do I need minute data for a profit target?
A resting target depends on whether price traded at the target after a real entry. The weekly 7% target buys at the first open of the week, rests a +7% limit and exits Thursday afternoon if losing. Its median CAGR was 6.61% over 59 funds with a median of 106 round trips, and a daily file cannot place the Thursday exit at a time of day.
How big is the overnight gap compared with the intraday move?
SPY's average overnight gap was 0.44% against an average intraday range of 1.15%. TQQQ's gap was 1.78% against a range of 4.74%, and UVXY's was 2.53% against 7.03%. A fill at the previous close ignores the gap, and the open fill includes it.
Does minute data remove lookahead bias?
Minute data helps when the engine separates the time of the signal from the time of the fill. Here the rules decide on completed daily information and orders fill on minute bars afterward. The engine enforces that order, so the result does not rely on the author's care.
Does a minute backtest take much longer to run?
On this platform a multi-year minute backtest of a daily-decision strategy finishes in seconds. The window here is 5.74 years and 1,444 sessions. The cost that remains is the data volume and the thin prints in funds such as UVXY, whose median minute volume was 1,145.
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.
Terms used here
Related questions
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.