How we test a market-timing method
A market-timing hypothesis is only as good as the test that failed to kill it. The PyraTime Engine runs every method against its occupancy baseline and a declared null, corrects for every test ever run, and grades it on data it was not set up on.
The idea
A market-timing hypothesis puts markers on a chart: points in time, sometimes with a price. A turning-point definition says what counts as a turn. The test asks whether turns land on the markers more often than they would by chance, and it is only as good as its answer to compared to what?
Every hypothesis gets one of four verdicts, checked in this order:
- DEGENERATE
- The construct covers more of the chart than the run allows. It hits everything because it is everything. Untestable as posed.
- UNDERPOWERED
- Fewer turns than the run's minimum. No claim either way.
- EDGE
- The lower Wilson bound clears the occupancy baseline, and the result survives Benjamini-Hochberg across the whole battery.
- NO EDGE
- Everything else.
The occupancy baseline
Occupancy is the share of the chart a construct covers by construction. A fan tiling 98% of the chart hits almost every turn and has told you nothing. So every hypothesis is scored against its own occupancy: the lower Wilson bound of its hit rate has to clear it, not just the average.
This is the control that decides most Gann results. On Bitcoin, Gann angles beat every one of 300 shuffled-anchor draws (p = 0.0033), and still scored NO EDGE, because their lower bound (0.173) sits below the 21% of the chart the lines cover (0.213): the Gann battery. A construct that covers too much (above the run's maximum occupancy) is DEGENERATE: it "hits" everything because it is everything. Lunar phases are the textbook case: four dates a month at ±2 bars covers two thirds of the chart.
A declared null
Each method carries its own null: the version of the world where the method knows nothing, built so that it keeps everything else. Shuffled anchors for Gann lines; the same lines at random offsets for planetary lines; the sky shifted in time for astro qualifiers; a filter's own positions rotated to another calendar offset for a trend filter; a donor pivot's marks for the Ascendant clock, which keeps the time of day and replaces only the sky.
Running a different null needs an explicit override. If a scramble leaves the predicted points unchanged (a price shuffle on a calendar cycle, say), the harness refuses to produce a p-value instead of printing a flattering one.
p-values are (draws scoring at least as well + 1) / (draws + 1), so a finite null can never claim p = 0.
Benjamini-Hochberg across every test
Testing twelve months, sixty cycle lengths or 288 qualifiers and reporting the best is a search, and a search finds something on noise. The false-discovery control (Benjamini-Hochberg) runs across the whole battery, never per test. "Sell in May" is twelve tests.
It also runs across configurations. A persistent study ledger records every distinct test ever run, and anything that can change a reported number (a threshold, a tolerance, a parameter, a seed) is a separate test. Re-running an identical configuration is free. The ledger shows what the next result would have to clear before it is spent: the anchor sweep shows the cost rising from 0.00833 at 5 tests to 0.00313 at 15.
The correction has to be achievable. With twelve candidates, BH's bar for the best is 0.0042, and 200 rotations cannot produce a p below 0.0050, so the rotation count is raised to meet the bar: the intermarket test.
A train/test split
Every run declares a split before it starts, and the harness will not build one without it. Results are reported on both eras with a `replicated` flag. A method can look good on the data it was set up on and fail on the years after; the split is there to catch exactly that.
On Bitcoin, Gann angles with independent anchors printed EDGE on the train era (hit 0.0799 against occupancy 0.0538) and NO EDGE on the test era: the anchor circularity. The largest studies go further and are pre-registered: the hypothesis, grid and confirmatory list committed before any data was scored, and the held-out years run once (the Ascendant clock, planetary price–time lines).
Walk-forward, with a noise floor
A projection curve is fitted on the bars before a border, forecast past it, graded, and the border rolls forward. Non-future-leaks are enforced mechanically rather than by convention.
Walk-forward scores are usually read against zero, and zero is the wrong baseline. On random walks with no cycle in them, the average forward correlation (AVR) reads +0.039 to +0.049, and +0.168 at a 60-day oscillator: what walk-forward scores on noise. So every projection is scored beside its own surrogate noise floor: the same pipeline run on block-bootstrapped copies of the series, which keep the return distribution and volatility clustering and destroy any long rhythm. The number shown is the excess over the floor, not the raw score.
On the S&P 500 a two-cycle projection scores AVR +0.132 against a floor of +0.086: cycles on stocks and gold. Occupancy is to a level what the noise floor is to a curve.
Counting independent evidence
A metric measured over a forward window on every bar overlaps itself, and adjacent bars are not separate observations: an upstream filter reported n=1616 with about 75 independent observations. The harness reports an independent sample size for those metrics, and tests that share trades or sky events say so rather than counting them twice.
What a null result means
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.