
A time bar closes when the clock says so. A range bar closes when price has traveled a set distance, however long that takes. That one difference changes how many bars you get, how noise looks, which patterns show up and, above all, what data you need before a backtest means anything. For most quant work the time bar is the stable reference frame, and a clean minute-bar history is what it stands on. Range bars are a second lens you add once that foundation is sound. We sell clean minute-bar history, so this article covers both bar types and then shows how to test a range-bar idea against a trustworthy time-bar baseline.
TL;DR
- Time bars sample the market at fixed clock intervals. Range bars sample it every time price covers a fixed distance, so quiet markets produce few bars and fast markets produce many.
- Time bars suit chart patterns, session analysis and any test that must line up with calendars, news and other instruments. Range bars suit short-term trading and clear support and resistance.
- Range bars can only be built from tick-level data, and their settings change backtest results. Time bars can be built from clean minute data and imported straight into MT4 or MT5.
- A sound workflow is to validate the idea on clean time bars first, then test the range-bar variant against that baseline.
Table of Contents
- How each bar is built
- What actually differs
- Why the difference matters for your data
- When to use which
- A backtest workflow that keeps the comparison honest
- Our perspective
- Start your backtest from a clean baseline
- FAQ
- Sources
How each bar is built
Time bars
A time bar collects all trading activity in a fixed interval. According to Linn Software's documentation on chart periodicity, the open is the first trade in the period and the close is the last. A one-minute bar covers one minute, a one-hour bar covers one hour, and the next bar begins when the interval ends. Charting platforms set upper limits on this, for example MultiCharts caps a time-based interval at 1,440 minutes, 30 days or 10 years depending on the unit.
The key property: the horizontal axis is uniform. Ten bars always span ten intervals. The vertical size of each bar is the variable, and it can be tiny in a dead overnight session or huge around a data release.
Range bars
A range bar flips this. The high-low distance is the fixed quantity and time is the variable. Per Linn Software, a bar needs a minimum high-low range. When the first tick breaks outside that range, a new bar opens at that price, and each bar closes at its high or low.
A concrete case from cTrader's documentation on range bars: take GBPJPY with a 10-pip threshold. Price drops 3 pips to 168.758, then rises 7 pips to 168.765. The cumulative movement in both directions reaches 10 pips, so the bar closes with a low of 168.758 and a high and close of 168.765. This is what separates range bars from Renko bricks, which need movement in one direction only.

Two details matter for testing. A range bar can exceed its set range when price gaps, but it can never be smaller, as Linn notes. And CQG's range bar documentation points out that in high-liquidity moments price can jump several ranges at once, producing a run of bars created at the same instant. Those bars are not real in the sense that you could have traded them as though they formed one after another.
What actually differs
| Feature | Time bars | Range bars |
|---|---|---|
| Closes when | A fixed interval ends | Price covers a fixed distance |
| Bar height | Varies | Essentially constant |
| Bar duration | Constant | Varies |
| Quiet market | Many small, similar bars | Few bars |
| Volatile market | Same count, larger bars | Many bars |
| Built from | Minute or finer data | Tick data |
| Aligns with calendars and news | Yes | No |
Time, price and noise
TradingView's support documentation on range charts states that range bars form only when price moves by a set amount regardless of elapsed time. It describes them as better suited to short-term trading and clearer in how they show support and resistance, while standard time bars better show the buyer and seller contest over a period and work better with chart patterns.

cTrader's knowledge base adds that range bars produce more bars in volatile periods and fewer in quiet ones, and that they compress price by removing much of the noise. It also draws a useful interpretive line: a move beyond a 10-pip range is price expansion, not automatically a breakout.
The same page makes a sharper argument. Because a range bar reflects actual price activity, a signal built on it is not late by definition, whereas a time-based signal can only appear after the price movement has already happened. Whether that edge survives costs and slippage is exactly what a backtest should answer.
The uneven x-axis
The cost of dropping time is that bar spacing stops meaning anything on the clock. In cTrader's own example, five range-bar units span almost five hours, while the next five cover just over four. Any indicator that assumes equal spacing, such as a moving average counted in bars, now means something different. A 20-bar average on a time chart is always 20 intervals. On a range chart it is 20 price excursions, which could be an hour in a fast market or a day in a slow one.
Why the difference matters for your data
This is where the choice stops being a charting preference and becomes a data problem.
Range bars need tick-level input
MultiCharts states that range-based charts can only be created from tick data. Its documentation also describes virtual bars added to fill gaps when price moves past the range of two consecutive bars, and a limit of 10,000 points per bar.
Platforms also vary in how deep that tick data goes. thinkorswim's range charts manual says range bars for the last 7 days come from tick data, days 7 to 14 from one-minute aggregates, days 14 to 194 from one-hour aggregates, and older history from daily aggregates. In other words, the further back you look, the coarser the underlying data, so the same range setting is built from different material at different depths of history. For a backtest spanning years, that is a hidden inconsistency.
Settings change the result
TradeStation's range bar documentation advises a range larger than the normal oscillation of the underlying data and evenly divisible by the minimum move. If the range is too small, real-time charting can create more bars than historical reconstruction. Its example: a 10 to 12 point oscillation with a range of 1 gives six bars live and two historically. It states that strategies back-test and automate reliably only with an appropriate range value and a 1-tick underlying interval.
That means two people running "the same" 10-pip range-bar strategy can get different results from different data vendors, different platforms or different underlying intervals. The range is a parameter you must calibrate and document, not a constant of nature.
Candle data hides intrabar order
Even on time bars, aggregation hides detail. A preprint from RWTH Aachen's mathematics institute points out that with only open, high, low and close, the price at a specific moment is not known. Some order combinations, such as a limit entry with a stop and a target inside the same bar, can't be decided uniquely, so a backtest engine needs explicit rules for those cases. A range bar does not escape this: it simply moves the ambiguity into how ticks were grouped.
The practical consequence for time bars is that the quality of each OHLC bar is the whole game. A missing bar, a weekend artifact or a bad spike distorts every indicator built on top. Our guides on handling missing bars and on removing weekend bars from forex data walk through the checks.
When to use which
The search results and most platform guides frame this as a contest. In practice, the question is what you are trying to learn.
Use time bars when:
- You trade around sessions, scheduled releases or rollover, where the clock itself is information.
- Your strategy relies on classic chart patterns, which TradingView notes work better on standard bars.
- You compare several instruments or build portfolios, since a common time axis makes returns and correlations line up.
- You need a result you can reproduce exactly from a shared file.
Use range bars when:
- You trade short-term and want support and resistance, trendlines and reversals drawn on price rather than on a clock.
- You want to filter out low-volatility chop without writing a separate filter.
- You have the tick data and a documented construction setting to build them consistently.
Use both when: a time-bar model identifies the regime or the session, and a range-bar view times the entry. This is a common way to combine them, and it only works if both are tested against data you trust.
For a broader view of non-time sampling, including volume and dollar bars, see our post on six bar aggregation methods. If you want a plain-language walk through of the price-based versus fixed-interval distinction from the market-reading side, there is a useful explainer on price-based and fixed-interval bars.
A backtest workflow that keeps the comparison honest
If you want to know whether range bars improve your edge, change one thing at a time.
- Fix the baseline. Run the strategy on time bars with clean data. Choose the interval deliberately; a signature plot can show whether 1-minute and 5-minute bars tell different stories.
- Check bar integrity. Gaps, duplicates and weekend bars change indicator values. Confirm the series is complete before you read any result.
- Respect platform limits. MT4 caps how many bars you can load, which can quietly truncate a test. Our note on MT4 max bars covers how to avoid broken runs, and the piece on 20,000 bars being roughly ten weeks of intraday history shows how short that window is.
- Build the range-bar variant. Pick a range above the instrument's normal oscillation and divisible by its minimum move, as TradeStation advises, and write the setting down.
- Compare on the same period and costs. Same dates, same spread and commission assumptions. Judge the range variant by its difference from the baseline, not in isolation.
- Vary the range. If the edge appears at one range value and disappears at its neighbors, it is a fitted artifact rather than a result.
The same discipline applies to minute data in general. Our posts on tick versus minute data and on improving minute-bar backtesting accuracy set out what each can and cannot resolve.
Our perspective
We collect minute-bar history ourselves, and our engineers verify it bar by bar. That is why we think the time bar deserves more respect than it gets in range-bar debates.
A range bar is a transformation. Its output is only as good as the series it was derived from and the setting you chose, and every extra layer is another place for a result to drift between two traders. A time bar is the common language: one minute is one minute in every platform, so a test can be repeated, audited and compared.
Our datasets run from 2014 across forex, metals, bonds and stock indices, delivered as one complete download that is ready to import into MT4 and MT5. We document adjustments, because a backtest you cannot reproduce is only an anecdote. Whether you then trade time bars, range bars or both, you start from a baseline you can stand behind.
Start
Start your backtest from a clean baseline
If you are comparing bar types, begin with a complete, clean minute-bar series. Our Historical Data page lists the datasets by asset class, each a one-time download that is ready to import into MT4 and MT5. If you would rather have access across the catalog, the Annual Plan is €119 per year. Our engineers answer support questions directly.
FAQ
Are range bars better than time bars?
Neither is better in general. Range bars show price movement independent of time and suit short-term trading, while time bars work better with chart patterns and line up with sessions and news. Pick by the question your strategy asks, and test both on the same period.
Can I build range bars from one-minute data?
Platform documentation says range charts can only be created from tick data, so a faithful range series needs ticks. One-minute bars are the right input for a time-bar test, and that is the cleanest way to set a baseline before you test a range-bar variant.
What range size should I use?
TradeStation advises a range above the normal oscillation of the data and above, and evenly divisible by, the minimum price move. Beyond that, test several neighboring values. If results hold across them, the setting is robust.
Why do my range-bar backtest and live results differ?
Construction can differ between historical reconstruction and real-time charting, especially with small ranges or coarse underlying intervals. TradeStation's documentation notes that higher underlying intervals can give real-time results inconsistent with backtests. Use the finest underlying interval and keep the settings identical in both modes.
Sources
- What is a Chart Periodicity? (Linn Software)
- Chart Resolution Settings (MultiCharts)
- Range bars in cTrader Web
- Range chart, cTrader knowledge base
- Range Bar (RB), CQG QTrader
- Understanding range charts (TradingView)
- Range Charts (thinkorswim)
- Range Bar Chart (TradeStation)
- Preprint, Institut für Mathematik, RWTH Aachen
- Price-based and fixed-interval bars
Recommended
- Six Bar Aggregation Methods Quants Can Calibrate for ML Backtests
- When 1 Minute vs 5 Minute Bars Mislead Quants, Run a Signature Plot
- Minute Bar Backtesting Accuracy: What It Is and How to Improve It
- Tick vs Minute Data: Which One Your Backtest Needs
Related resources
Explore BacktestMarket's Expert Advisor robots to put the ideas in this article into practice.

