Read a market's recording end to end before you trust a result on it — its ticks a year, traded and modelled days, holes, spikes, one-sided and zero-spread ticks, duplicates and ticks out of order, each with its definition.
01Why read it
A backtest is only as good as the ticks under it. A hole of two hours over a news release, a spike that never traded, a stretch where the ask equals the bid: any of them can make a strategy look better or worse than it is, and none of them shows on a chart at a glance. Data quality reads every tick of a market over a laboratory workbench's days and says what it found.
02Opening it
On a laboratory workbench, open a market's row menu in Market Watch and choose Data quality…. Bentrix reads every tick of that market over the workbench's days, Reading every tick of this market over the workbench's days…, straight from the store's own files on your computer. It downloads nothing and changes nothing.
03What it measures
| Figure | What it is |
|---|---|
| Digits | The decimals the store's prices carry |
| Point | The smallest price step of the store's prices, ten to the minus the digits |
| Ticks a year | Ticks stored, by the calendar year of their stamps. A year far thinner than its neighbours is worth a look |
| Traded days | Days of the workbench's span the store holds one-minute candles for |
| First day with ticks | The first traded day with a tick file, when traded days come before it. Those earlier days are modelled from candles (see tick models) |
| Modelled days | Traded days with no tick file, and their share of the traded days |
| Holes | Days of a tick file with hours the store graded missing; the first three are named |
| Spikes | Ticks whose mid moves away from the tick before by more than 20 times the day's median move, and comes back at the next |
| Both sides | The share of ticks with a bid and an ask both above zero |
| Zero spread | Ticks whose ask is not above their bid, and their share |
| Zero-spread stretches | Runs of such ticks lasting a minute or more, and the longest, in seconds |
| Duplicates | Ticks equal to the one before in stamp, bid and ask |
| Out of order | Ticks stamped before the one before |
04Reading it
- Modelled days replay from candles. A strategy that trades inside the minute behaves differently on them; test it on the real-tick days, or choose a tick model that says the same about both.
- Holes on the days your strategy trades most are where its result is least trustworthy. A missing stretch is never filled with invented prices: the replay stands at the edge of a hole, and the venue does not trade across it.
- Spikes and zero spreads can fill an order at a price nobody could have traded. If a result depends on a handful of fills at such moments, it depends on the data, not the strategy.
- Duplicates and ticks out of order are usually harmless, but many of them say the source wrote its file carelessly.
For your own files, the import sheet already counts the faults it saw in a file before you import it (see importing your own files). Data quality reads what the store holds afterwards, across every batch.
05From a program
data_quality with the workbench and the market, as Market Watch's Data quality… shows it.