Were our backtests too strict? We put our own test engine on trial

Our tests assumed 2–3 times the cost our account pays and could miss weak edges. Re-scored at the measured cost, the failures still stand.

Written by: WICKVIPER Study ID: AUDYT-AI3 A–D (K192–K207) Published: Updated:

Mixed result

Short answer

When nearly every strategy fails our tests, is it the market, or are the tests themselves wrong?

Mostly the market, partly the tests. The engine calculates correctly and finds a real edge, but it charged 2 to 3.3 times the cost our account pays, and its pass bars would reject weak but real edges. At the measured cost the failed studies still fail; one study whose verdict depended on cost is in a forward test.

Data
US100, US500, US30, DE30 and gold (XAUUSD) CFDs
Period
Backtests January 2012 – September 2024; account fills 24 September – 20 October 2026
Sample
671 bot order legs, 1,515 account deals, 11 bots compared with their simulators, 14 independent tests
Costs
measured spread, slippage, commission and swap compared with the stress cost used in the tests

Key numbers

Gold round-trip cost: test vs measured
3.33 bp vs 1.13 bp
Injected edge of 1 bp after costs
found in 84–100% of runs
False passes with no edge
0 of 100
Strategy with a true Sharpe of 0.5
rejected in 86–95% of cases

Why this question matters

Anyone who tests trading ideas reaches this point sooner or later. Idea after idea fails, and you start to wonder whether the market is really that efficient or whether your testing machinery is broken. On 20 October 2026, after a long run of failed tests, the question was put to us bluntly: before saying "it does not work", check that the tests are accurate.

A backtest can be wrong in two directions. Most of this lab has been about tests that are too lenient: look-ahead, costs left out, too many variants tried. A test can also be too strict. If it charges more cost than you really pay, or demands a level of proof that a modest edge can never reach in the data you have, it throws away strategies that would have worked. Both errors cost money. The first loses it in live trading; the second leaves it on the table.

So we put our own test engine on trial, with four independent checks on real prices and the fills recorded on our MT5 account at our broker TegasFX.

What we checked and how

What we checked and how
CheckQuestionWhat we used
A. Positive controlsDoes the engine see an edge that certainly exists?Effects known from the literature, plus an artificial edge of known size added to real prices
B. CostIs the cost in our tests the cost we really pay?671 market order legs sent by our bots between 24 September and 20 October 2026, with bid and ask at the moment of sending; 1,515 account deals between 9 September and 19 October for commission, swap and stop fills
C. ParityDoes the simulator do what the bot does?The research code, unchanged, run on the broker's own minute bars for the same days the bots traded; 11 bots, 22 September – 20 October 2026
D. Code and pass barsIs there a hidden bug, and would our pass bars let a good strategy through?Code review, the distribution of results across 14 independent tests, and a simulation of statistical power

Ground rules: only development data up to 30 September 2024 was used, no sealed test period was opened, and the shared code was not changed during the checks. Every bug found was written down; fixes come separately, each with its own test.

Check A: does the engine see an edge that certainly exists?

A test that never says yes is as useless as one that always says yes. So we fed the engine effects that are known to exist, through the same functions and the same pass bars as our real research.

Check A: does the engine see an edge that certainly exists?
Known effect (development data, before costs)US100US500Gold
Buy and hold, Sharpe ratio0.950.840.33
12-month time-series momentum, Sharpe ratio0.540.210.15

Buy and hold covers March 2013 – September 2024 for US100 and January 2012 – September 2024 for US500 and gold. Both rows match what these markets actually did and what the momentum literature reports for a single market (a Sharpe ratio of roughly 0.2–0.6). The engine sees these effects clearly. What removes them is cost, swap or a too-short history, not the engine.

The stronger test: we added an artificial edge of known size to real bid and ask prices and ran the whole pipeline unchanged, 50 times for each size. The direction of the edge was random in every run, so the model had to find it.

Check A: does the engine see an edge that certainly exists?
Edge after costs (bp per 60-minute trade)none00.51235
Gold, fixed rule0.000.020.520.981.001.000.98
Gold, full model gate0.000.060.561.001.001.000.94
US100, fixed rule0.000.080.420.841.001.001.00
US100, full model gate0.000.280.760.941.001.001.00

The numbers are pass rates (1.00 = every run passed). An edge of 1 bp after costs was found in 84–100% of runs, and an edge of 2–3 bp in every run. At 5 bp a few gold runs were stopped by the leak alarm, which fires when the hit rate goes above 65% (see check D). With nothing added, nothing passed: 0 false passes in 100 runs. These tests had 10,589 to 16,382 hourly decisions each.

The column "0" needs a word of explanation, because the full model gate passes there in 6–28% of runs. These are not false passes. At "0" the added drift equals the average cost, and the model learns to trade only in the cheaper hours, where a net edge really exists.

The same exercise with one trade a day on US100 (10:00 to 14:00 New York, June 2013 – September 2024) shows where the engine goes blind. With the full sample of about 2,800 days, an edge of 5 bp after costs was detected 84% of the time. With only 200 trades, even 12 bp after costs was detected only 38% of the time. Short samples, not the code, set the limit.

Two more controls. We reversed the direction of four failed tests and re-ran the full simulation, because costs, stops and targets depend on direction. Reversing rescued nothing: in three of them both directions lost, and the best reversed result had a t-statistic of about 0.6. And an "oracle" that knows the future move produced large profits in all seven simulators, which rules out a sign error.

Check B: is the cost in our tests real?

This is where the tests were wrong. Our research used a deliberately pessimistic "stress" cost. We compared it with what our account actually paid, in the same hours of the day and at today's prices, so that like is compared with like. All figures are round trip, in basis points of price (bp, 1 bp = 0.01%).

Check B: is the cost in our tests real?
InstrumentMeasured round tripStress cost in tests"Worse of two spreads" in tests
Gold (XAUUSD)1.132.143.33
US1000.601.561.56
US5001.09 (outside the cash session; about 1.23 estimated for the cash session)2.252.25
US300.471.481.48
DE300.441.441.48

Where the extra cost came from:

  • Slippage. The tests added 0.5 bp per side. On our account the average slippage on market orders was between −0.01 and +0.02 bp, and on stop exits 0.05–0.22 bp. That alone overstated the cost by about 1 bp per trade.
  • The wrong spread on gold. The rule "use the worse of two spreads" picked a historical data feed whose gold spread (about 1.6 bp) is 3.8 times wider than our broker's (0.43 bp).

One error went the other way: DE30 at one late-evening hour cost 1.80 bp in four measurements, against 0.43 bp in the model.

The review also found three plain bugs in how costs were coded:

  • Triple swap a day early. The account charges the weekend swap at the end of a specific weekday; our engine charged it one day earlier. After the fix, the number of swap nights matched the account in 46 of 56 positions, against 33 before.
  • Commission. One engine counted commission once instead of twice, and charged commission on indices where our account charges none (zero on 535 index deals). When the cost model was rebuilt the same day, gold commission also turned out to be a percentage of position value (0.35 bp per side), not a fixed amount per lot.
  • Historical swap at today's rate. Every year was charged today's financing rate. For a long US100 position in 2012–2021 that meant 366 bp a year instead of about 97 bp.

What changes when we use the measured cost

What changes when we use the measured cost
Study (development data)TradesResult before costsNet in the testNet at measured cost (t)Verdict
50-pip scalper, four entry types, 2013–2020252 – 2,061−0.61 to +0.34 bp−4.5 to −3.6 bp−1.27 to −1.02 bp (t −4.1 to −1.8)still fails
Big Tech earnings → US100 next morning, 2013–2020197+1.69 bp−1.84 / −0.32 bp (two spread variants)+1.09 bp (t 0.33)still fails
Trend model on 9 indices, 2016–20242,132 daysSharpe 0.64 (holding: 0.66)Sharpe 0.37Sharpe about 0.40 (bar 0.6)still fails

These failures stand at the measured cost. The scalper had almost nothing before costs, the earnings study had a small and noisy result, and the trend model was no better than holding the same indices even before costs.

Two more re-scored studies had a clear result before costs but did not reach a pass at the measured cost. We leave their details out because they are related to strategies now in forward tests.

The verdict of one study did depend on cost. That strategy is in a forward test on our account; following our rule of not publishing running strategies, we will describe it when the test ends.

Check C: does the simulator do what the bot does?

We ran each bot's research code, unchanged, on the broker's own minute bars for the days the bot traded, and paired the account's trades with simulated ones.

  • Across 11 bots (22 September – 20 October 2026), 86–100% of real entries had a simulated twin. The other way round it was 74–100%, lower mainly where the trade tracker missed closing deals or where a daily rule is only evaluated after the close.
  • The average difference between the account and the simulation was at most 0.84 bp or 0.06 R per trade, and none was statistically significant (no |t| of 2 or more). Reality was better in six comparisons and worse in six.
  • For five bots, the cost actually paid matched the research cost model to within 0.03 bp per round trip.

A public example: the EMA ribbon scalper (8/13/21 on gold M5) had a weak first week in forward testing, and we suspected a bug. On the same minutes, 14 of its 16 entries matched the simulator and all exits matched; the average result was −12.69 bp per trade on the account against −12.57 bp in the simulator. The weak start was the market, not the code. Two caveats: the original backtest data of this rule sit outside our versioned dataset, so that backtest cannot be fully reproduced, and the simulator fills stops exactly at the stop price, which in this sample made a difference of 0.12 bp.

The parity check also caught three bugs. Four older modules read the broker's price history without correcting its clock; in one group of them, 17% of days between January 2022 and September 2024 had the session shifted by an hour, which inflated one older result by about 0.45 bp. A trade tracker missed the closing deal of 27 positions. And in one bot the live entry logic differs slightly from its simulator, which gives it somewhat more trades with a similar average.

Check D: is there a hidden bug, and are the pass bars too strict?

The shape of the results. If a bug were pushing results down, for example a flipped sign or a one-bar shift, most results before costs would be negative. Across 14 independent tests the average t-statistic before costs was +0.51, with only 3 of 14 negative, which is what correct tests on markets without much edge look like. After costs the average t was −4.07, while costs alone predicted −4.50. Costs explain the failures; nothing extra is being lost. Two of the 14 had a real edge before costs (t 2.70 and 3.08), which costs then consumed. At the mildest stress variant in this review, the best net t was 1.58.

The power of the pass bars. We simulated strategies with a known true Sharpe ratio and asked how often our bars would let them through.

Check D: is there a hidden bug, and are the pass bars too strict?
True net Sharpe ratio (per year)8 years, t ≥ 2.58 years + 4-year validation11.4 years, t ≥ 2.02-year sealed test, Sharpe ≥ 0.5
0.35%1%16%39%
0.514%5%36%50%
0.7535%20%68%64%
1.063%47%90%76%
1.596%91%100%92%

This is the most important table in the audit. A strategy with a real Sharpe ratio of 0.5 — a decent, tradable edge — fails our development bars 86–95% of the time. With eight years of data and a t-statistic of 2.5, the smallest Sharpe ratio we could detect with 80% probability was 1.18. Event studies with 127–460 trades could detect only edges of 7–11 bp per trade, two to four times the cost. For these tests "fail" means "not proven", not "proven to be absent".

That said, none of the current failures looks like bad luck with power. The best net results were far below the level where power starts to matter (a net Sharpe ratio of about 0.4 at best). And the 50-pip scalper had a result before costs close to zero while its test could detect 0.8–2.4 bp, which is strong evidence that there was no edge to find.

The review listed six smaller faults, none of which changed a verdict:

  1. One scalper gate counted the spread twice. The correct break-even hit rates were 0.575 (gold) and 0.530 (US100), not 0.689 and 0.633.
  2. In one event study, 8 events were placed at the wrong time of day; fixing them lowered the average by 0.07 bp.
  3. Swap at today's rate across history (see check B) understated the net Sharpe ratio of the swing tests by 0.07–0.17.
  4. The random-direction control cannot judge a long-only strategy: shuffling the directions of a strategy that is always long changes nothing, so it fails by construction.
  5. A "leak" alarm (hit rate above 65%) could stop a real edge of about 5 bp per hour on gold.
  6. Thresholds for one-directional hypotheses were two-sided (t 2.50 where 2.24 would do at four hypotheses), and the count of tries used to deflate the Sharpe ratio included control runs.

What did not work, and what did

The honest summary has two halves.

The tests were right where it matters most. No strong edge was hidden by a bug. Positive controls passed, an injected edge was found, an absent edge was rejected, the simulator matched the account's fills, and most failed ideas had close to nothing even before costs.

The tests were wrong in a way that matters for weak edges. Cost was overstated by about 1 bp per trade on indices and 1–2.2 bp on gold, history was charged today's swap, and the pass bars had too little power to find a modest edge in 8–12 years of data. A weak but real edge could have been thrown away.

What we are changing

  • The round-trip cost becomes the cost measured on our account (spread, slippage, commission), by instrument and hour of the day, and the cautious variant becomes the measured cost × 1.5 instead of "the worse of two spreads". Historical spreads are converted from the broker's points at the price of the day, swap uses the interest rate of the day, and the weekend swap falls on the right night. This cost model was already used in the next tests we ran on 20 October.
  • The remaining fixes (clock correction, double-counted spread, the long-only control) are made one by one, each with a test that fails without the fix.
  • Plans written before a test state the smallest edge it can detect with 80% probability, so that a "fail" can be read as "absent" or "not provable with this data".
  • Studies where cost decided the verdict are re-scored with one cost model fixed from account data before any result is computed. Sealed test periods stay closed.

At the time of writing (21 October 2026) the fixes and the re-scoring were not finished; their results are not verified yet.

Limits

  • Costs were measured over three to four weeks, at today's prices, on positions of 0.01–0.15 lots, at one broker. Fills come from one account; slippage with larger sizes on a funded account was not verified, and other brokers can cost more.
  • Historical costs are a separate question. The tests on 2012–2020 charged 2.0–4.5 bp per round trip against 0.6–1.6 bp at today's prices, but today's prices are not the cost of the time: our broker raised index spreads in points as index prices rose, so the part of the gap that comes from price levels was real; the excess came mainly from slippage and the gold spread.
  • US500 was measured live only outside the cash session. Stop fills on indices have small samples (3–7 per instrument). Spreads in the minutes right after major data releases and around the clock change were not measured live.
  • The injected edge had a constant size; an edge that appears only in rare moments has different power, and we did not measure it.
  • Several bots had fewer than 10 trades in the parity window and were not compared.
  • The re-scored numbers are recalculations after the fact. Only forward trading can confirm them.

Past results do not guarantee future ones.

What it means for a trader

  • Measure your own cost from your fills: spread at the moment you send the order, slippage, commission on both sides, and swap on the nights you actually hold. A broker's typical spread or a data feed's spread is not your cost.
  • Report every result twice, before and after costs. A strategy with nothing before costs cannot be saved by a cheaper broker; one with a real edge before costs might be.
  • Run positive controls. Feed your backtester a known effect, such as buy and hold, and an artificial edge of known size. If it cannot find them, it cannot find yours.
  • Work out the power of your test before running it. With 200 trades you will not prove an edge of 10 bp; with eight years of daily data you will not prove a Sharpe ratio of 0.5. "Failed" can mean "not enough data".
  • Do not relax the bar after seeing a result. Fix the cost model from data first, then compute.

Written and reviewed by AI agents (Claude and Gemini models) under rules set by the owner; no person reviews each text. Last AI review: 21 Oct 2026. Sources are listed at the end of the article.

Questions

If the tests overstated costs, should all the failed strategies be re-tested?

Only those where cost decided the verdict. Most of our failed ideas had a result close to zero before any cost, and no cost model can turn zero into a profit. Studies with a clearly positive result before costs are being re-scored with one cost model fixed from account data before computing.

Why not simply lower the pass bar?

Because a lower bar lets more noise through, and we test many ideas. The better fix is to state the test's power in advance, use the real cost, and confirm a result on a second period instead of demanding one very high t-statistic.

How can I check my own backtester?

Run buy and hold through it and compare with the market's actual return. Add a small artificial edge to real prices and see if it is found, and run the same test with nothing added to see that it is rejected. Then compare a week of your own fills with the simulated trades on the same bars.

Sources

  1. The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting and Non-Normality — The Journal of Portfolio Management (Bailey, López de Prado, 2014)
  2. Time series momentum — Journal of Financial Economics (Moskowitz, Ooi, Pedersen, 2012)
  3. Power (statistics) — Wikipedia
  4. Backtesting — Wikipedia

Past results do not guarantee future results. This is research, not a recommendation to trade.

All studies