Question
How many consecutive heads or consecutive tails should we expect to see somewhere in a fixed number of flips? How do streaks of up or down one-minute currency midpoint moves compare when a coin gets exactly the same opportunities? A run lasts until the sign changes or the observed stretch ends. Its length counts flips or signed moves.
Data
Research 013 supplies 13,270,116 eligible one-minute changes across 28 currency pairs. Its verified two-sided sample covers February and September of each year from 2019 through 2026. Of those changes, 419,238 had exactly equal midpoints. The seven majors here are the US dollar paired with the Australian dollar, euro, pound sterling, New Zealand dollar, Canadian dollar, Swiss franc and Japanese yen.
HistData made the source files available without warranty and states “Use the data at your own will and risk.” The centre retained the quotes internally and reports aggregate results. File specification and source terms.
The inventory counts minutes separately for each pair. Sample totals (CSV).
Method
For the coin, we counted the strings that avoid a streak of a given length and checked the distribution with 20,000 simulated strings at each size. For currencies, we compared the first quoted midpoint of successive minutes. The primary analysis skips unchanged midpoints. The second ends a streak at each unchanged midpoint. A missing minute ends the stretch under both rules.
For each pair, the comparison coin produced independent signs on stretches of exactly the observed lengths. A separate runs test compared the observed number of runs with the count expected if the same up and down moves were shuffled within each stretch. The three companion sections give the coin calculation, pair results and equal-length comparisons.
Results
| Flips | Mean | 2.5th %ile | Median | 97.5th %ile | Simulated mean | Simulated median |
|---|---|---|---|---|---|---|
| 100 | 6.977432 | 4 | 7 | 11 | 6.9979 | 7 |
| 1,000 | 10.298615 | 8 | 10 | 15 | 10.2850 | 10 |
| 10,000 | 13.620468 | 11 | 13 | 18 | 13.6346 | 13 |
| 1,000,000 | 20.264316 | 18 | 20 | 25 | 20.2770 | 20 |
The middle 95% range for a million flips is 18–25. The chance of reaching at least 20 somewhere in the string is 61.47%. In 100 flips the chance of reaching 20 is 0.00782%. Exact probabilities and simulation.

The CSV also gives the chance that a matched fair coin reaches or exceeds each observed maximum. Figure data (CSV).
| Major | Longest | Coin 95% range | Repeat (%) | Gap from 50 (pp) | Switch (%) |
|---|---|---|---|---|---|
| AUD/USD | 21 | 16–24 | 49.73 | -0.27 | 50.27 |
| EUR/USD | 18 | 16–24 | 49.36 | -0.64 | 50.64 |
| GBP/USD | 18 | 16–24 | 49.34 | -0.66 | 50.66 |
| NZD/USD | 18 | 16–23 | 49.83 | -0.17 | 50.17 |
| USD/CAD | 16 | 16–24 | 49.53 | -0.47 | 50.47 |
| USD/CHF | 20 | 16–23 | 49.13 | -0.87 | 50.87 |
| USD/JPY | 18 | 16–24 | 49.28 | -0.72 | 50.72 |
With flat minutes skipped, the seven majors repeated direction on 49.13%–49.83% of adjacent moves and reversed on 50.17%–50.87%. The largest repeat deficit from 50% was 0.87 percentage points for USD/CHF among the majors and 2.09 points for AUD/NZD across all 28 pairs.
NZD/USD repeated direction in 224,111 of 449,782 comparisons (49.827%). Its gap from the fair coin’s 50% was −0.173 percentage points. The week-based 95% interval for that gap ran from −0.352 to +0.005 points and includes zero.
The separate runs test asks what happens if the moves in each stretch are shuffled while keeping its up and down counts fixed. For NZD/USD this gives an expected repeat rate of 49.980%. The Holm-adjusted p-value for the ordering test was 0.077, above the 0.05 threshold for the 56 comparisons. Pair results and uncertainty.
Checks
A second calculation tracked the length of the coin’s current streak one flip at a time in a probability model. It reproduced the means, medians and threshold probabilities. A separate scan of all currency pairs reproduced every run-length count under both tie rules. Re-reading original tick files reproduced all 421,638 audited minute opens. Independent counts and input checks.
What it means in plain words
On 10 September 2024 the AUD/USD midpoint rose 21 times in a row between successive minute opens. The source file reads 05:23–05:44. The study treats that as New York local time, giving 09:23–09:44 UTC. The provider’s stated fixed Eastern Standard Time gives 10:23–10:44 UTC for the same quotes. Clock specification and dated streaks (CSV).
A fair coin with the same gaps and unchanged minutes skipped would reach 21 or more in 18.58% of such records. A streak that long can readily occur by chance. The evidence for extra switching comes from counting runs of every length. A reversal counts once whether the price moves a little or a lot. Measuring the result of taking the opposite side would also require move sizes and the gap between bid and ask.
References
The mathematical comparison uses Schilling’s treatment of either face, Bostan and Mori’s method for evaluating the recurrence and a uniform bound for simulation error. Schilling, Bostan and Mori and Reeve.
HistData describes the two quote fields and its clock, supplies the monthly ZIPs and states its terms. Format, public download selector and terms.
The runs test uses the handbook’s conditional moments and Holm’s correction for the full family of comparisons. NIST/SEMATECH and Holm.
Hashimoto and colleagues found a difference between deal-price and quote-price runs at the tick level in EUR/USD and USD/JPY. Our comparison measures signed one-minute quote changes. The detailed pair results discuss the different observations. Foreign exchange study.
Download plain-text bibliography · Download linked bibliography (HTML)
- Mark F. Schilling (1990), The Longest Run of Heads, The College Mathematics Journal 21, 196–207
Pages 198–199 count runs of either face and relate their lengths to head runs in one fewer toss. We evaluated the finite counting recurrence. DOI 10.1080/07468342.1990.11973306.
Opened 2026-11-27 - Alin Bostan and Ryuhei Mori (2020), A Simple and Fast Algorithm for Computing the N-th Term of a Linearly Recurrent Sequence
Their even and odd coefficient extraction computes a distant term of a recurrence using integer polynomial products. We used it to count strings with up to a million flips.
Opened 2026-11-27. arXiv 2008.08822 - Henry W. J. Reeve (2024), A short proof of the Dvoretzky–Kiefer–Wolfowitz–Massart inequality
A bound on the largest discrepancy between an empirical cumulative distribution and its population value lets us check all thresholds together. We allocated the error allowance across the four sample sizes.
Opened 2026-11-27. arXiv 2403.16651 - HistData, Data Files — Detailed Specification
The Generic ASCII tick format supplies a timestamp, bid and ask. The minute bars contain bids. The specification describes the clock as fixed Eastern Standard Time. We used the two-sided tick inventory collected for Research 013 on 26 November 2026.
Opened 2026-11-27 - HistData, Download Free Forex Data
The provider’s public format selector offers Generic ASCII Tick Data. Select the pair, year and month listed in the study’s input inventory to identify the individual source file.
Opened 2026-11-27 - HistData, F.A.Q. / Support
HistData provides its files without warranty and says “Use the data at your own will and risk.” The centre uses its anonymous download for internal research and releases derived statistics. Source quotes remain in the private archive.
Opened 2026-11-27 - NIST/SEMATECH, e-Handbook of Statistical Methods, section 1.3.5.13, Runs Test for Detecting Non-randomness
The handbook gives the conditional mean and variance of the run count for two categories and the large-sample normal statistic. We summed the moments over disconnected stretches.
Opened 2026-11-27 - Sture Holm (1979), A Simple Sequentially Rejective Multiple Test Procedure, Scandinavian Journal of Statistics 6, 65–70
Holm’s sequential rule controls the probability of any false rejection in a family of tests. We applied it to all 56 pair-and-rule comparisons. The linked National Diet Library record identifies the original paper.
Opened 2026-11-27 - Yuko Hashimoto, Takatoshi Ito, Takaaki Ohnishi, Misako Takayasu, Hideki Takayasu and Tsutomu Watanabe (2008), Random Walk or A Run, NBER Working Paper 14160
The authors compared tick-by-tick deals and quotes in EUR/USD and USD/JPY. Continuation in deal prices did not carry over to their quotes. We compare their finding with the signs of minute midpoint changes. DOI 10.3386/w14160.
Opened 2026-11-27
Reproduce
From the extracted study, install the packages in code/requirements.txt and use a C++17 compiler. Run bash code/reproduce.sh after placing the HistData Generic ASCII tick ZIPs for the Research 013 Stage 1 sample under inputs/ticks/ at the listed paths. The study does not redistribute the provider’s tick history. The fingerprint list is included, and the script can recreate the minute arrays directly from the ZIPs. Without them, pair-comparison.csv and block-distributions.csv in tables/ contain the currency results. The fair-coin calculation is independent and can be queried using bash code/reproduce.sh --query 100 7. The calculations were run on 27 November 2026. The SHA-256 fingerprint for the complete list of original ZIPs and minute arrays is ef1fe86c. The list contains filenames and checksums. Input fingerprints (CSV).
Change log
3 December 2026. Source files and reproduction notes were made portable for the archived copy. No result changed.
27 November 2026 — Registered the protocol, counted the fair-coin and currency runs, and completed independent checks.
27 November 2026 — Rechecked the NZD/USD comparisons and the AUD/USD source times after independent review. Clarified the chart, the coin median and the references.
What this leaves open
- Does the extra switching appear in other months and on a second quote feed?
- After a one-minute move, what is the average result of taking the opposite side for one minute, before and after the bid–ask spread?