Skip to content

The screening funnel: four stages, and the four things that stay a choice

This page is the rule a new window, seat or size is judged by, and it says what the rule cannot do. It replaces the six clauses of 2026-11-29 (fills >= 25, thin days <= 15 percent, leave-one-out positive, the best day's share, CE(0.02) and the positive-day share) as the deciding arithmetic: those clauses stay in the record and in tools/study/window_admission.py, which still re-derives every row they closed, but a candidate measured from now on is decided here. The arithmetic is tools/study/significance.py; the numbers in this page were measured on 2026-11-29 and are not pinned, because their input is the generated out/windows tree.

Stage 0: the physical floor

A passive fill earns the distance it was quoted at and pays the maker fee and the adverse selection it was picked off by:

E[pi] = delta - E[AS(tau)] - f_maker

so a quote can pay its fee only from k_min ticks out, with P the mid and tickSz the instrument's tick:

k_min = ceil(f_maker * P / tickSz)
  • UP at 0.19 with a 0.0001 tick: ceil(0.0002 * 0.19 / 0.0001) = 1. One tick is 5.26 bps, so the fee is 0.38 of a tick and the floor is one.
  • CT at a 0.0001 tick on a 1.3 price: about 3 ticks, because one tick there is 0.77 bps.
  • The floor is necessary and not sufficient. Measured on UP: a quote at one tick is exactly the fee, and the recorded row is that quoting at the touch (2 to 3 ticks) read +2.01 to +3.12 closed at zero latency and lost from 10 ms on. So k_min cannot stand in for a turnover floor, and it is not the screen that refused SSV (14 fills a window at one tick), CT (2 to 12) or OL (13 at three ticks, fees exactly 2.00 bps on all seven days) -- those were refused on turnover, which is what Stage 1's power requirement has to price.

Stage 0b: density first, then the instrument's own touch (registered 2026-12-02)

Two gates come before Stage 1, and their order is the rule:

  1. The density hard floor. A symbol whose median trade rate is below 2.5 a second over the sample is refused before any replay. Measured on the first pool: SSV 0.082, OL 0.23, GRVT 0.68 and ONE 1.09 all died here; PIEVERSE is the one that passed (6.77-6.97 trades a second, 7 of 7 days). A book that thin cannot pay the fee at any distance, so no P&L reading rescues it.
  2. The own-touch rank. A candidate that passes is ranked by its capture at the distance its own tick regime allows -- its touch -- never by a fixed tick count. The 3-tick distance was BTC's shape and it refused PIEVERSE at 0.96 bps against the 2.00 bps fee; at its own touch the same tape captures 2.45 bps. A distance-dependent capture may rank a candidate and may not refuse one: the refusal is the fee against the capture at the allowed distance.

tools/study/okx_halfhour_profile.py --gate-rate 2.5 prints the first number; the second is tools/study/okx_download_rank.py's capture column read at the instrument's own touch.

Stage 1: significance, with the multiple-testing hurdle

The return of one seat on one day is its net dollars over the capital the seat was given before the run (Cap registered, not the peak inventory):

r_t = NetPnL_t / Cap,  t = 1..T,  a zero-fill day kept as r_t = 0

The Sharpe ratio of the series is SR = mean(r) / sd(r), per observation (a daily SR; annualising it first and then using the formula below is the standard way to get the error wrong). Under skewness and kurtosis the standard error is Mertens (2002):

sigma(SR) = sqrt( (1 - skew*SR + (kurt - 1)/4 * SR^2) / (T - 1) )

with skew the third standardised moment and kurt the raw fourth moment (3 for a normal). The best of N zero-skill candidates shows, in expectation, the maximum of N draws (Bailey and Lopez de Prado, 2014):

SR0 = sqrt(V0) * [ (1 - g) * Phi^-1(1 - 1/N) + g * Phi^-1(1 - 1/(N e)) ],  g = 0.5772,  V0 = 1/(T-1)

and the deflated ratio is DSR = Phi((SR - SR0) / sigma(SR)), which must exceed 1 - alpha to admit the candidate.

V0 is the estimator's variance under the null, not the cross-section of the trials' Sharpes. The cross-section converges to the differences between candidates as T grows, which turns the hurdle into a property of the candidate list and leaves a strategy below it unpassable at any sample size; 1/(T-1) is the same expression as Mertens with SR = 0 and it shrinks as sqrt(1/T), so a longer sample does buy significance. On this tree's 49 series the two estimators read 0.464 and 0.430 at T = 28 -- close only because the trial spread happened to sit near the null's, and that coincidence is why the defect went unnoticed for a day.

The verdict depends on N, and that number is measured, not chosen. The trial set's independence is the participation ratio of its daily-return correlation matrix, N_eff = N^2 / sum_ij c_ij^2 (no eigen-decomposition needed: the trace of C^2 is the sum of the squared entries). Over the 53 distinct series in out/windows -- the folder mode names the duplicates it drops -- N_eff = 8, which is the honest count: the B2 windows overlap, b1's atoms sit inside them and b8 repeats three. At N_eff = 8 the hurdle is SR0 = 0.281:

series T SR/day skew kurt SE DSR at N_eff=8
b2-1330-1530 (the live window) 28 0.255 -1.30 6.12 0.229 0.456
b2-1230-1430 28 0.589 0.57 2.92 0.175 0.961
b8-up-1230-1530 (3 h) 28 0.611 0.58 2.90 0.175 0.971

A gated seat's N is re-measured on the days its filter admits. The participation ratio is a property of the sample as well as of the candidate list: a dead month's days are days the machine would never have started, so excluding them changes both T and the correlations. Measured 2026-12-01 on the eight NES candidates (the ladder's four rungs at the 57-contract ceiling and the four at the applied (19,70) pair), conditioned on the L4 gate's open days (208 of 224 rows at or above 50,000 USD): N_eff = 1.8, i.e. two trials. At trials=2 the ladder's clip-1 series reads DSR 0.968 (pass) where the raw-count-8 reading was 0.721; the applied (19,70) skew-50 arm reads 0.877 and the reduce-only-exit arm 0.683. So the convention moves one arm and not the applied seat, and both readings must be printed: the conditioned N_eff is the declared N, the raw count is the sensitivity check. significance.py --turnover <tape> --floor-usd N is the arithmetic; a day the tape cannot see is dropped, never counted as zero.

Four of 53 pass, the live window is not one of them, and the candidate is admitted by a count nobody lowered by hand. --explicit-trials still exists for a sensitivity check (at N = 2 the live window reads 0.751 and at N = 45 0.222), but the default is the measured number, so a candidate cannot be saved by arguing about how many trials were run.

Three conditions follow, and they are this stage's rather than footnotes:

  1. A constant Cap cancels. SR, the skewness and the kurtosis are invariant to a constant divisor, so "divide by the capital base" changes nothing in Stage 1; Cap matters in Stages 2 and 3, where seats are summed.
  2. N counts independent hypotheses, and nesting is not visible in the data. b1's atoms are contained in b2's windows and b8 repeats three of them; a duplicate is detected and printed, a nested window is the caller's to count, and the number is a claim about hypotheses rather than about files.
  3. The ranking disagreement is one day, and the tool names it. --tails recomputes the skew with each of the worst days removed: the live window's -1.30 falls to -0.56 without 2026-11-26, while 12:30-14:30's +0.57 rises to +0.69 without its own worst day. A skew that one row carries is a sample whose shape is one event, and the next section says what the event was.

What one day did: 2026-11-26, the day that carries the live window's skew

The same day, five ways, from the CSVs (net_usd is the day's dollars, max_inv the peak position in contracts):

window, 2026-11-26 fills closed bps net bps net USD max inventory
13:00-14:00 (one atom) 30 +9.06 +6.13 +0.25 24
14:00-15:00 (one atom) 18 +8.78 +11.50 +0.31 30
15:00-16:00 (one atom) 81 +3.72 +4.90 +0.42 102
13:30-15:30 (the live window) 70 -8.91 -69.08 -5.20 104
12:30-14:30 53 - +47.28 +3.24 -

Every hour the live window contains made money that day; the window that contains them lost 5.20 USD. The decomposition says where: closed_bps is -8.91 and net_bps is -69.08, so about 60 of the 69 bps is the position still open at the close, marked against it, and the settle convention adds 3 more (settled_bps -72.13). The peak position is 104 contracts -- ten clips, against a 100-contract cap and a clip of ten -- while the three isolated hours peak at 24, 30 and 102.

So the negative skew of the live window is an inventory event in a trending hour, not a tail-end quoting problem: the continuous window holds through the move (2026-11-26 is the +848 bps day the Retrospective already lists) and the isolated hours do not. That is a different row from "the window is worse", and it points at the inventory cap and the skew in a trend rather than at the schedule. 12:30-14:30 avoided it by ending before the hour that carried the move.

Stage 2: the incremental condition

A candidate j joins the portfolio P at weight w_j. The portfolio Sharpe's derivative at w_j = 0 is

d SR_port / d w_j = (sigma_j / sigma_P) * (SR_j - rho * SR_P)

so a small position raises the portfolio's risk-adjusted return exactly when SR_j > rho * SR_P. Two corrections make it admissible, and both are measured rather than argued:

  • The weight cannot be negative and cannot be zero. A seat is long-only and the venue's lot size makes its position finite, so the condition is SR_j > max(0, rho * SR_P). Without the max, a candidate with SR = -0.055 passes against a rho = -0.44 baseline -- measured on b1-00, and it is the difference between a derivative and a decision.
  • rho is estimated, and at T = 28 its own standard error is about (1 - rho^2) / sqrt(T). At rho = 0.2 that is 0.18, so the condition is a screen: it says which candidates are worth a live seat, not which one is proven.

Stage 3: the weights, and why they are inert at this account's size

Log utility maximisation gives w = Sigma^-1 mu with no risk-aversion constant, and two literature-standard repairs for the fact that mu and Sigma are estimated on T days: Ledoit and Wolf (2004) shrinks the covariance toward its diagonal at an analytic intensity, and Kan and Zhou (2007) discounts the weight by a factor that falls as T falls or the number of seats rises:

c = (T - K - 2) / T * SR_p^2 / (SR_p^2 + K / T)

with L_max the survival ceiling applied afterwards. On this account the term is inert: one contract is the venue's minimum, the fee floor per order binds at 0.72 USD a window, and the continuous optimum is between the two -- so the weight it computes is not reachable and the binding constraints are the venue's, not the portfolio's. The formula is recorded because the seat count will grow; it is not quoted as a recommendation until then.

What stays a choice: four inputs, not two

input what it is who sets it
alpha the significance level the owner, before the run
N what counts as one independent trial the owner, and it only rises
Cap the capital a seat is given, per seat the owner, before the run
L_max the survival leverage ceiling the owner, from the venue's maintenance margin

Two more are choices even though they are not numbers: the objective (log utility here, CE(0.02) in the record) and the horizon (one day, because that is the resolution the sweep writes). A page that lists only alpha and L_max hides two of the four numbers that decide the answer.

The fourth kind of threshold: feasibility

Not every threshold is a preference or a statistic; some are what the test needs to have power. Given alpha, the effect the test is looking for, and the standard error's own dependence on T and on the fill count, a minimum sample follows -- and that derivation is what should replace the flat 25-fill floor. It is written here as the requirement and not as the formula because the target effect has not been registered yet; until it is, the 25 stays a report column, not a verdict.

Status

  • tools/study/significance.py computes Stages 1 and 2 (SR, Mertens SE, DSR, the marginal test) and carries a self-test with hand-computable cases. It refuses a CSV whose dollars cannot be read, by name.
  • tools/study/window_admission.py keeps the six recorded clauses and now says in its own output that they are the record's arithmetic, not the rule for new candidates.
  • The first run is the table above: 0 of 49, the live window at 0.181, and a ranking that disagrees with the recorded window verdict. That disagreement is the next measurement, and it is registered in docs/ROADMAP.md rather than settled here.
  • The pre-screen is two gates in a fixed order -- the density floor, then the own-touch rank (Stage 0b) -- and a symbol is adjudicated by this funnel once alpha, N and Cap are written in its ROADMAP card. Moving an existing verdict needs the divergence explained first, which is the rule the frontier map already carries.

Sources: Glosten and Milgrom (1985); Avellaneda and Stoikov (2008); Lo (2002) and Mertens (2002) for the non-normal Sharpe standard error; Bailey and Lopez de Prado (2014) for the deflated Sharpe ratio; Markowitz (1952) for the marginal condition; Ledoit and Wolf (2004); Kan and Zhou (2007); Kelly (1956).