QouratR&D centreContact

Does following a 5-minute average across a 20-minute average cover the spread?

Across the five June test months, the rule lost on average after the quoted spread.

Of 3,238 completed trades, 1,121 won (34.62%). The average was -2.2997 pips per trade after the quoted spread. Registry verdict: lost after costs.

On this page

Question

Buy when the mean of the last 5 closing prices crosses above the 20-minute mean. Sell when it crosses below. Compare the latest minute with the preceding minute to detect a fresh crossing. Close after 30 minutes at the first available opening quote. Does the resulting price move cover the spread paid at entry and exit? Compare the other rules in the ranked overview.

Data

HistData’s tick files record both the price available to a seller (bid) and the price asked of a buyer (ask). Their midpoint tracks the move before costs. The difference is the spread. A pip is 0.01 yen for yen-quoted pairs and 0.0001 of the quoted currency otherwise. Tick format

The test used 4,040,119 observed pair-minutes across 28 pairs in June 2022 through June 2026. February, June and September of 2019–2021 formed the earlier sample. All 37 rules advanced to the five June test months. Research 013 had already used the same opening bid in 4,040,091 of our 4,040,119 test minutes to estimate trading outcomes. These months were held out for this comparison of rules using observed bids and asks. Quote gaps reduce the opportunities in some months. The archive was retrieved on 26–27 November 2026. HistData supplies it without warranty (“Use the data at your own will and risk”). The tables report derived results. Data terms

Method

Signals use information available before the decision minute. Minute-based price indicators require a continuous window of observed closes. An opening order crosses the observed quote one minute after the signal. Intraday opportunities fall on weekdays in the first 25 calendar days, at whole hours unless the rule specifies a later grid entry. Each pair has one unit of capacity and can hold only one position per rule. An exit due during a gap waits for the first available opening quote. The lab interpreted the timestamps on the New York clock, while the provider describes fixed Eastern Standard Time. A one-hour shift can change which quotes enter this timing rule.

AUD/CAD midpoint changes with the actual entry and exit minutes marked
AUD/CAD, 02 Jun 2022 UTC on the registered study clock. First entry through exit: sell 1 unit at 00:01, exit 1 unit at 00:31. The line joins sampled opening midpoints relative to the first entry. The marks show timing. Crossing the spread gave -3.0000 pips on this position.Open full-size figure

Results

Before the spread, 47.28% won, averaging -0.4004 pips per trade. Reversing every buy and sell at the same times and sizes, 38.33% won, averaging -1.4988 pips per trade after costs. The original rule’s longest run was 20 straight losses, counting completed positions in exit order and sorting simultaneous closes by pair. A flat trade ends a losing run.

Mean pip result for original and reversed trades with and without the spread
The midpoint result changes sign when the trade is reversed. Both directions still pay the spread.Open full-size figure
Each row uses the same completed positions. A zero result counts in the denominator.9 columnsCSV
ExecutionTradesWon (%)Mean pipsBreak-even wins (%)Mean win (pips)Mean loss (pips)FlatsLongest loss run
Original net3,23834.62-2.299753.84+5.4856-6.48041920
Original gross3,23847.28-0.400450.83+5.5368-5.76271117
Opposite net3,23838.33-1.498851.01+5.7468-6.07452418
Opposite gross3,23852.38+0.400448.83+5.7627-5.53681115

With average net wins of +5.4856 pips and losses of -6.4804 pips, 53.84% wins would give a mean of zero pips if those sizes and the share of flats stayed fixed. The observed 34.62% gave -2.2997 pips per trade.

What changed across the five Junes?

The net mean was positive in 0 of the 5 Junes with completed trades. Each annual bar covers that month alone.

Five annual June means in pips after crossing the spread
Each bar gives the net average for one June. Months with fewer eligible quotes contribute fewer trades.Open full-size figure
Trade counts, winning shares and average results for each test June.8 columnsCSV
YearTradesWon (%)Mean pipsWon before (%)Mean before (pips)Opposite won (%)Opposite mean (pips)
202271438.24-2.602547.76-0.329138.38-1.9443
202331234.94-2.333043.91-0.662744.87-1.0077
202469134.30-2.323249.49-0.559235.75-1.2048
202575035.47-2.140847.20-0.170138.80-1.8005
202677130.61-2.139446.30-0.442237.48-1.2551

Across pairs with trades, EURJPY had the highest net average (+0.7046 pips across 109 trades) and GBPNZD the lowest (-6.9027 across 111). These are descriptive comparisons.

Results for all 28 pairs. A dash indicates no measured outcome.8 columnsCSV
PairTradesWon (%)Mean pipsWon before (%)Mean before (pips)Opposite won (%)Opposite mean (pips)
AUDCAD12723.62-2.933939.37-0.813038.58-1.3079
AUDCHF10030.00-1.404050.00+0.174029.00-1.7520
AUDJPY11338.05-3.278843.36-2.340747.79+1.4027
AUDNZD11529.57-1.969646.96+0.145226.09-2.2600
AUDUSD11841.53-1.568648.31-0.500041.53-0.5686
CADCHF12230.33-1.516446.72+0.356128.69-2.2287
CADJPY12040.83-1.410047.50-0.017141.67-1.3758
CHFJPY12138.02-2.288446.28+0.129340.50-2.5471
EURAUD12740.94-2.444152.76+0.187033.07-2.8181
EURCAD12225.41-3.517241.80-1.319340.98-0.8787
EURCHF12737.01-0.752850.39+0.454334.65-1.6614
EURGBP12737.80-1.173254.33-0.268929.92-0.6354
EURJPY10944.04+0.704651.38+1.713843.12-2.7229
EURNZD10336.89-2.428256.31+1.512129.13-5.4524
EURUSD10841.67-1.482446.30-1.043550.93+0.6046
GBPAUD12631.75-4.881742.86-1.475045.24-1.9317
GBPCAD12622.22-5.069841.27-1.906338.89-1.2571
GBPCHF11631.90-1.584548.28+0.599132.76-2.7828
GBPJPY12035.00-4.345045.83-2.290042.50+0.2350
GBPNZD11129.73-6.902750.45-1.501835.14-3.8991
GBPUSD10740.19-1.343944.86-0.398149.53-0.5477
NZDCAD10529.52-3.069544.76-0.549031.43-1.9714
NZDCHF11920.17-1.912645.38-0.125231.09-1.6622
NZDJPY10445.19-0.672153.85+0.407237.50-1.4865
NZDUSD10936.70-1.111048.62-0.042243.12-1.0266
USDCAD11833.90-3.343242.37-1.993646.61+0.6441
USDCHF11537.39-1.770447.83-0.571741.74-0.6270
USDJPY10344.66+0.051548.54+0.963142.72-1.8748

Checks

In the earlier months, 34.34% won, averaging -2.1045 pips per trade after costs across 7,367 positions. Trades close together can share the same currency move. The test drew 19,999 samples of whole exit weeks, keeping trades from the same week together across pairs. Each resampled mean weights trades equally. The decision divides the 5% two-sided error budget across all 37 registered rules and requires at least 12 contributing weeks. Shared currencies and common entry times make individual trades dependent. Five Junes give little evidence about other seasons. Financing, commissions, slippage and market impact are outside the calculation.

The original rule closed trades in 20 test weeks. The ordinary 95% interval for the mean was -2.6182 to -1.9788 pips. After the family adjustment it was -2.7984 to -1.7840 pips. Only the original, pooled, after-cost test received a verdict.

An independently written program reconstructed signals and fills from the same quotes. It counted winners and net pips directly from bid and ask and repeated the week-level test.

Both calculations of the headline, including the share of resampled means above zero.6 columnsCSV
CalculationTradesWon (%)Mean pipsPositive resamples (%)Verdict
Primary3,23834.62-2.29970.00lost after costs
Independent3,23834.62-2.29970.00lost after costs

What if the position closed sooner?

Keeping the original entries and sizes, close halfway from the last entry to the actual exit, at the next available quote. This descriptive check uses the eventual exit time, so it measures sensitivity to timing and cannot serve as an advance signal. It gave 29.86% wins and -2.1909 pips per trade.

Earlier and registered exit times on the same positions.4 columnsCSV
ExitTradesWon (%)Mean pips
Registered3,23834.62-2.2997
Half remaining time3,23829.86-2.1909

What it means in plain words

At the observed spread cost of 1.8993 pips per trade, the average midpoint move would have to improve by more than 2.2997 pips to produce a positive net mean. Even at a zero spread the mean was -0.4004 pips. Moving-average and range-break signals separated subsequent daily Dow returns in their sample. This test uses minute currency quotes and crosses the spread. Related study Their intraday FX rules lost their apparent advantage under realistic trading hours and costs. They used a different sample and rule search. Independent FX study

This is research, not advice.

References

Quote format and terms. Related rule study and independent FX comparison.

Download plain-text bibliography · Download linked bibliography (HTML)

  1. HistData. Tick file specification

    The generic ASCII tick format includes a bid and an ask.

    Opened 2026-11-28
  2. HistData. Frequently asked questions and terms of use

    Free historical data supplied without warranty. The provider describes a fixed Eastern Standard Time clock.

    Opened 2026-11-28
  3. Brock, Lakonishok and LeBaron. Simple Technical Trading Rules and the Stochastic Properties of Stock Returns

    Moving-average and range-break signals separated subsequent daily Dow returns in their sample. This test uses minute currency quotes and crosses the spread.

    Opened 2026-11-28
  4. Neely and Weller. Intraday Technical Trading in the Foreign Exchange Market

    Their intraday FX rules lost their apparent advantage under realistic trading hours and costs. They used a different sample and rule search.

    Opened 2026-11-28

Reproduce

The rule registry and protocol were fixed at f027d3d770034f8aacc29f9d1fe72a41fce24eb9. The archived calculations are at 5886c2ef025078a7b5150b4158dc6253478ccd94. From the extracted study folder, run python code/reproduce.py --figures-only with NumPy to redraw the figures from the saved direction and June tables and the illustrated quote path. The full-precision results preserve the pair and pooled estimates for both periods and directions. The exit-time and independent tables preserve the timing comparison and separate recount.

The large source histories are distributed separately. Obtain the generic ASCII tick ZIPs from HistData. The names, dates and fingerprints are in code/tick-inputs.csv. The SHA-256 of code/minute-inputs.csv is 6ab0ddfa67dca8f110083d9a9bc5842512dfa42a3349fe4f378a7dcdc89ceb3a. To repeat the 5-minute and 20-minute crossover calculations of 28 November 2026, place the matching ZIPs in inputs/PAIR/YYYY-MM.zip. Run python code/prepare.py with NumPy and a C++ compiler, or supply the matching normalized minute arrays.

Run python code/reproduce.py to verify the normalized inputs, repeat the primary and independent calculations and regenerate the exhibits. The preparation and replay commands accept --inputs DIRECTORY. For the prior-use comparison, request the earlier study’s matching bid partitions from the centre. With those files in inputs/prior-bids/ as listed in code/prior-bid-inputs.csv, python code/overlap.py uses DuckDB to check the saved pair-month counts in code/prior-overlap.csv.

Change log

28 November 2026. Added the registered result, independent calculation, June and pair breakdowns, earlier-exit comparison and illustrated trade.

3 December 2026. Source files and reproduction notes were made portable for the archived copy. No result changed.

What this leaves open

  • Does the result for 5/20-minute crossover persist outside June?
  • How much would measured commission and execution delay change this rule’s average per trade?

This is research on past data, not advice and not a forecast.

Our review

Rating 7.4 out of 10

  • Question 14 of 15
  • Evidence 19 of 25
  • Verification 12 of 15
  • Sources 12 of 15
  • Usefulness 13 of 20
  • Originality 4 of 10

A second replay confirms the loss on 3,238 crossings, but five June samples leave its seasonal reach untested.

This is the centre's own review, not peer review by outside scholars; see Policies.

Cite this study

Titles are italic in Harvard, APA, MLA and Chicago.

First published .

Harvard

Qourat 2026, Does following a 5-minute average across a 20-minute average cover the spread?, Research 022, Qourat Research and Development Centre, https://doi.org/10.5281/zenodo.24790400

APA (7th edition)

Qourat. (2026). Does following a 5-minute average across a 20-minute average cover the spread? (Research 022). Qourat Research and Development Centre. https://doi.org/10.5281/zenodo.24790400

IEEE

[1] Qourat, “Does following a 5-minute average across a 20-minute average cover the spread?” Qourat Research and Development Centre, Research 022, Nov. 28, 2026. [Online]. Available: https://doi.org/10.5281/zenodo.24790400

MLA (9th edition)

Qourat. Does Following a 5-Minute Average across a 20-Minute Average Cover the Spread? Research 022, Qourat Research and Development Centre, 28 Nov. 2026, https://doi.org/10.5281/zenodo.24790400.

Chicago (author-date)

Qourat. 2026. Does Following a 5-Minute Average Across a 20-Minute Average Cover the Spread? Research 022. Qourat Research and Development Centre. https://doi.org/10.5281/zenodo.24790400.

BibTeX

@techreport{qourat-022,
  author = {Qourat},
  title = {{Does following a 5-minute average across a 20-minute average cover the spread?}},
  institution = {Qourat Research and Development Centre},
  number = {Research 022},
  year = {2026},
  date = {2026-11-28},
  url = {https://doi.org/10.5281/zenodo.24790400}
}

Add the date you read the page if your style asks for one.