Data Statistics
Data Statistics is the health check of one loaded data series. It answers three questions before you spend time on a backtest, an optimization or a generation run:
- Is there enough history, and is it what I expected?
- Are there holes in it, and does the provider's history simply close at those times?
- Are the spreads and the gaps between bars normal for this market?
The page is a report, not a validator. It does not block anything and it grades nothing: it gives you the numbers to decide whether the history is trustworthy enough for the test you have in mind, and to compare two providers of the same market.
The only control on the page is the market selector.
The page
Top to bottom:
| Area | What is in it |
|---|---|
| Page toolbar | The page's own market selector: Source, Symbol, Period. It reloads the series |
| Price chart | The loaded bars, newest at the right |
| Summary cards | Quality Score, Data Completeness, Average Spread, Average Gap |
| Symbol Information and Data Series | Which market this is, and how much of it is loaded |
| Ranges and Spread | How prices moved, and what the spread costs |
| Gaps and Data Quality | Where the holes are, and their share of the quality score |
Every figure is replaced when a load finishes. While a series is loading, or when the market has no data, the cards stay at 0.00% and 0 points, the tables show - or 0, and the app reports the data-loading message. Read the numbers only after the page has settled.
What the page measures
The figures describe the series the app loaded, not the file the provider sent:
- Data Horizon applies. The page loads the market exactly as the testing pages do, so the limits on the Data Horizon page are already applied. Its default Max data bars keeps 100,000 bars, which is why a long history usually reports a round 100,000 in Count of bars. To inspect a longer history, raise the cap there and come back.
- Symbol Settings apply. A Digits override rounds the prices in the series and rescales the point the page counts in; a Swap or Commission override changes nothing here. A Minimum spread override does not appear in the Spread table either: it is a floor charged when a trade is priced, so the spread figures here stay the series' own spreads.
- Times are the app timeline. Data start and Data end are GMT, or the labels an enabled Timezone shift gives them. The shift also moves what the page infers as the trading calendar, because the weekday and time-of-day of a bar are read from those labels.
- The market selector is this page's own. It starts from the market the Strategy Editor uses; changing it here does not change the market other pages test, and the choice is not saved — leaving the page and coming back reloads the editor's market.
The quality score, completeness, average spread and average gap come from the model the Data Horizon preview also uses (engine/lib/data-series-stats.ts), so the same market reports the same four figures on both pages. Everything else on this page — the missing-bar counts, the gaps, the ranges, the spread tails — is only here.
Reading the chart
The chart draws the loaded bars and opens on the newest ones.
| Action | How |
|---|---|
| Scroll through time | Drag the chart, or press the left and right arrow keys; Page Up and Page Down move a screenful, Home and End jump to the oldest and the newest bar |
| Zoom in and out | Turn the mouse wheel, or press + and - |
The chart is the same chart the Strategy pages draw, but it carries no indicators and no deals here: it is there to show the shape of the series the tables describe, so a suspicious maximum bar or a long flat stretch can be looked at where it happened. The keys are ignored while a select or an input on the page has focus.
Summary cards
| Card | What it reports |
|---|---|
| Quality Score | The composite health reading in percent: completeness, reduced by penalties for structurally broken bars and unexplained gaps |
| Data Completeness | Loaded bars as a percentage of the bars the series should hold, after the gaps the trading calendar explains are removed |
| Average Spread | Mean spread over the loaded bars, in points |
| Average Gap | Mean distance between a bar's open and the previous bar's close, in points |
The two card percentages carry two decimals and the two point figures whole points, the same formatting the Data Horizon preview uses.
Symbol Information and Data Series
| Row | Meaning |
|---|---|
| Company | The data provider's company name |
| Server | The server or data source the series came from |
| Symbol | The instrument |
| Count of bars | How many bars are loaded |
| Data start | Timestamp of the first loaded bar, on the app timeline |
| Data end | The end of the last loaded bar — one period after its own timestamp |
This is where a wrong provider, a stale file or a surprise bar cap is caught first. Two providers of the same symbol usually start at different dates: that alone explains a different score.
Ranges
| Row | Meaning |
|---|---|
| Minimum price / Maximum price | The lowest low and the highest high of the series, with the market's digits |
| Average body size / Maximum body size | Mean and largest absolute body, abs(close - open), in points |
| Average High-Low range / Maximum High-Low range | Mean and largest bar range, high - low, in points |
| Median High-Low range | The middle bar range, in points — less sensitive to a single spike than the average |
The two maxima are the rows to check after an unexpected loss or an odd backtest result: one bar several times larger than the average is usually a data defect or a news spike, and a stop or a target it touches fills where no normal bar would have reached.
Spread
All spreads are in points.
| Row | Meaning |
|---|---|
| Maximum spread / Minimum spread | The widest and the tightest bar spread in the series |
| Highest 1% average | Mean of the widest 1% of the bar spreads |
| Lowest 1% average | Mean of the tightest 1% of the bar spreads |
| Average spread | Mean spread over all loaded bars |
| Average no-gap spread | Mean spread of the bars that start exactly one period after the previous bar |
| Average gap spread | Mean spread of the bars that do not — the first bar after a break |
The gap and no-gap averages split the series into trading time and re-opening time. A gap bar is the first bar after a weekend, a holiday or any other pause, so it carries the wide re-opening spread; a series with an average spread of 8 points can still report an average gap spread of 60 points and be perfectly healthy. The 1% tails are where the news spikes sit: they say how bad the worst bars are, which matters for a strategy that trades into them.
The first bar of the series belongs to neither group — it has no predecessor to compare with.
Gaps
Gaps are measured between consecutive bars, in points.
| Row | Meaning |
|---|---|
| Average gap | Mean absolute distance between a bar's open and the previous bar's close |
| Maximum gap | The largest such distance in the series |
| Maximum days off | The longest interval between two consecutive bars, in whole days |
| Unexpected gap intervals | How many pauses the inferred trading calendar does not explain |
Maximum gap is a price gap and Maximum days off is a time gap: a weekend produces a time gap with almost no price gap, while a news bar can produce a large price gap with none. Maximum days off is rounded from the bar timestamps, so a break of two and a half days reports 3 days.
Unexpected gap intervals is the count the Data Quality table also lists as Irregular intervals: this table shows it beside the gaps themselves, the other beside the score it feeds.
Data Quality
These four rows explain the score.
| Row | Meaning |
|---|---|
| Estimated missing bars | Bars absent from inside the series, after the pauses the calendar explains are subtracted |
| Inferred expected pause bars | Bars a gap would have held but the inferred calendar says the market was closed |
| Irregular intervals | Pauses the inferred calendar does not explain — the same count the Gaps table shows |
| Inconsistent bars | Bars whose OHLC values contradict each other by more than one point |
Inferred expected pause bars looks large next to the other rows — around 40,000 for 100,000 bars of a 24/5 market — and that is normal. Every weekend is a break in the series, and this row counts the bars those breaks would have held. They are not missing data and they do not lower the score.
A bar is inconsistent when its high is below its low, open or close, or its low is above its open or close, by more than one point. A bar or two is a provider defect; a large count means the series is not what the page thinks it is, for example a file exported from another tool or a synthetic series.
How the quality score is formed
The score starts from completeness and subtracts structural penalties.
- Completeness = loaded bars / (loaded bars + estimated missing bars) x 100.
- Inconsistent penalty = (inconsistent bars / loaded bars) x 100 x confidence.
- Irregular penalty = (irregular intervals / intervals) x 100 x calendar weight x confidence.
- Quality Score = completeness - both penalties, never below zero, rounded to two decimals.
Confidence grows with the sample, so a few bad bars do not crush the score of a short series:
| Loaded bars | Confidence |
|---|---|
| 50 or fewer | 0.25 |
| 500 or more | 1 |
| Between | Linear from 0.25 to 1 |
The calendar weight is the share the unexplained pauses are charged at: 0.05 for forex and crypto, 0.15 for a session-based symbol. On very small samples the two penalties together are capped, so the score stays readable:
| Loaded bars | Penalty cap |
|---|---|
| 20 or fewer | 4 points |
| 200 or more | No cap |
| Between | Linear from 4 to 12 points |
The trading calendar the page infers
The page derives the market's expected closed times from the series itself, then judges every gap against them:
| Market | How expected pauses are inferred |
|---|---|
| Forex | 24/5. The Sunday open and the Friday close are taken from the bars, and the weekend between them is an expected pause |
| Crypto | Close to 24/7. Only the weekly slots that are active in fewer than 3% of the weeks in the series count as closed |
| Everything else | Session-based. A weekly slot counts as open from 35% of the weeks upwards; the rest are expected pauses |
On top of the weekly calendar, a day is treated as a holiday when it is January 1 or December 24, 25, 26 or 31 and the series holds 10% or less of that day's expected bars. Crypto skips the holiday rule, and the first and last days of the series are never judged, because a partial day at either end says nothing.
A worked example
EURUSD M15 from the MetaQuotes feed as the page reported it, with the defaults in place:
| Figure | Value |
|---|---|
| Count of bars | 100,000 |
| Estimated missing bars | 1,371 |
| Inferred expected pause bars | 40,021 |
| Irregular intervals | 233 |
| Inconsistent bars | 0 |
| Data Completeness | 98.65% |
| Quality Score | 98.64% |
Completeness is 100,000 / 101,371 = 98.65%. The only penalty is the irregular one: 233 intervals out of 99,999, charged at 0.05, is 0.01 of a percent. No bar contradicts itself, so the score is 98.64.
What is normal
- Around 98–99% is a healthy forex series. The remaining gaps are real: early Friday closes before holidays, and the half-days several markets take. A perfect 100% is rare and usually means a short, recent series rather than a flawless feed.
- A few unexplained pauses a month are normal for a 24/5 market, and each one costs hundredths of a percent. A series that reports an unexplained pause every few days is worth a look at Maximum days off and the chart.
- Read the counts, not only the score. A score of 98.6 with zero inconsistent bars reads very differently from 98.6 with an occasional contradictory bar and no gaps at all.
- Compare like with like. The same market, the same period and the same Data Horizon settings give comparable figures; two providers with different start dates or bar caps will not.
- The score is a hint, not a verdict. It helps you choose between two versions of a market and confirm that a series is sane before a long run.
Common problems
| Symptom | Cause |
|---|---|
| Count of bars is a round 100,000 | Data Horizon's default Max data bars cap, not the provider's history. Raise it on the Data Horizon page to load more |
| Every card reads zero and the tables are empty | The market has no data for the account you are signed in with, or the load failed. Switch the market, then check the Data Import page |
| Quality Score is lower than expected | Read the two rows under it: Estimated missing bars and Inconsistent bars. One large number explains the score |
| Completeness is below 100% although the gaps look like weekends | The inferred weekly calendar marks those slots as open, so it does not fit this provider's closed times. Check whether a timezone shift is enabled, then compare Data start and Data end with the chart |
| Unexpected gap intervals is high for a forex series | The feed closes early on some days. Check the chart and Maximum days off before blaming the provider |
| Average gap spread is far above the average spread | Normal: gap bars are the re-opening bars after weekends and holidays |
| All spread rows read 0 points | The series carries no spread data, as some imported custom files do |
| Prices differ from the MetaTrader chart | A Symbol Settings Digits override, or a timezone shift relabeling the timeline |