Are Gann backtests scoring their own anchors? We checked, and fixed it

All 160 scored turns were also anchors. With independent anchors the verdict survives: 0 of 5 hypotheses show an edge on the test era.

No edgeSource: docs/verdicts/2026-09-22-circularity.md

Found nothing on a test with strict parameters. That doesn't mean there is no edge or value to traders. A strict test asks one narrow question, on the markets, anchors and settings we chose. Many traders use these tools to organise a chart, frame a plan or decide when to pay attention, and your market, anchor or timeframe may behave differently. Test it on yours: Studio's Test button scores a drawing against chance.

The question

If the turns a Gann line is graded on come from the same detector as the pivots it is drawn from, the test is partly scoring the anchors against themselves. How much of the first battery was that, and does the verdict survive taking it out?

Method

Measured the overlap, then gave the battery a separate anchor detector and dropped turns that are also anchors. The harness refuses to build a run that would exclude anchors under one shared detector (it would empty the turn set) unless that is passed deliberately, and every result now carries `anchors_independent`.

Turns from a 10% zigzag; anchors from a 25% zigzag. The same five hypotheses as the first battery.

Data

Binance BTCUSDT daily. Test era from 2022-01-01.

Train: 1,598 bars, 65 anchors, 313 of 381 turns scored. Test: 1,725 bars, 18 anchors, 142 of 160 turns scored.

What chance looks like

With 160 anchors each throwing a nine-line fan, the chart was blanketed: the occupancy baseline moved with the hit rate. With independent anchors, the Gann angles' occupancy falls from 0.213 to 0.016.

The null

The same shuffled-anchor null as the first battery, with Benjamini-Hochberg across the five hypotheses.

The result

The circularity was total, not partial: on the test era, all 160 scored turns were also anchors. There was no independent sample at all.

Hit rates collapse by an order of magnitude once it is removed, and the verdict survives the fix: 0 of 5 hypotheses show an edge on the test era. Breaking the circularity strengthens the earlier conclusion rather than undermining it.

`gann_angles` prints EDGE on the train era and NO EDGE on the test era. Train: n=313, hit 0.0799 vs occupancy 0.0538, Wilson CI (0.055, 0.115). On the training data alone this is a result. It does not replicate, which is the failure a declared train/test split exists to catch.

`time_cycles_anniversary` has raw p = 0.0432, significant on its own at the conventional 0.05, and killed by Benjamini-Hochberg across the battery of five.

circular (upstream)independent
anchors16018
turns scored160 / 160142 / 160
gann_angles hit / occ0.231 / 0.2130.014 / 0.016
square_of_9 hit / occ0.300 / 0.2930.021 / 0.006
Before and after the fix. Copied from the verdict.
hypothesisnhitoccci_lowraw pFDRtraintest
gann_angles1420.0140.0160.0040.1993xEDGENO EDGE
square_of_91420.0210.0060.0070.0997xNO EDGENO EDGE
time_cycles_sqrt_cycle1420.0350.0480.0150.7807xNO EDGENO EDGE
time_cycles_fixed_days1420.0560.0370.0290.1329xNO EDGENO EDGE
time_cycles_anniversary1420.0630.0360.0340.0432xNO EDGENO EDGE
The battery with independent anchors. Copied from the verdict.

What this does not say

  • The anchor threshold is now a free parameter (0.20 / 0.25 / 0.30 give 38 / 18 / 14 anchors). What sweeping it does is its own write-up: the anchor sweep.
  • n is small at coarse thresholds: 18 anchors on a four-year era is thin.

Where the code is

The engine is PyraTime's test harness. This verdict is docs/verdicts/2026-09-22-circularity.md, and the code it ran is:

  • engine/validation/
  • engine/scripts/run_battery.py
python -m scripts.run_battery --symbol BTCUSDT                        # independent (default)
python -m scripts.run_battery --symbol BTCUSDT --anchor-threshold 0.20
python -m scripts.run_battery --symbol BTCUSDT --reproduce            # upstream circular config

The tools this covers

Each of these pages says what the tool does and quotes this test:

Educational only, not financial advice. A test asks one narrow question on the data and settings named above.