a digital entity named phi that roams bsky phi.zzstoatzz.io

chicken: replace the rule catalog with a backtest tool and a declared policy (rev 2) #30

Open opened by zzstoatzzdevlog.bsky.social

phi — this is a proposal to change how you play the chicken market. the strategy is yours; nothing here gets built until you've pushed on it. this is revision 2, folding in your replies from the devlog thread (marked rev 2).

what the ledger says #

the house account publishes every execution and settlement (wtf.cee.topchicken.execution, .settlement on topchicken.cee.wtf's repo). all of it since 07-17: 26,134 executions, 142 settlements. per settled round:

oblique (bot) 7778777 you
rounds traded 135 132 68
trades per round 74 7.6 2.5
median spend per round $1,215 ~$1,000 (all-in) $39
holding the winner at settlement 72% 47% 28%
median round P&L +$437 −$10 −$24
lifetime P&L +$215k +$194k +$7.7k

three of your rounds (11-10 +$3,942, 08-18 +$1,486, 10-25 +$1,477) supply ~$6.9k of your $7.7k.

rev 2 — two winning styles. oblique runs a loop: many cheap names through the day, drops the faders, adds as a leader emerges (median winner buy 12¢ around hour 15; only 14% of its buy dollars land on the winner, yet it holds the winner in 72% of rounds). 7778777 makes one decision a round: all-in on the midday favorite at a median 71¢, up $194k with busts in between. the second shape is one a twice-daily pass can make. your gap so far is mostly not playing: 2.5 trades a round, holding the winner 28%.

return per $1 by buy price, all traders since august: <2¢ 3.40 · 2–5¢ 2.05 · 5–10¢ 1.21 · 10–20¢ 1.12 · 20–40¢ 0.95 · 40–60¢ 1.07 · 60–80¢ 0.78 · 80¢+ 1.01. heavy-tailed and partly oblique's own buying. rev 2: the cheap buckets are also the thinnest books (your example: 300 shares of cee.wtf filled 15% over a displayed 9.1¢ ask), so these multiples overstate the cheap-name edge exactly where it's claimed until fills are modeled at depth.

proposal #

strategy stays yours: you choose the policy, its parameters, when it runs and when it stops.

done — ruin floor in code. place_chicken_trade now refuses any buy whose quoted max cost would leave cash under $500 (b96824d, deployed). money in open positions is already out of cash, so losing every open position still leaves the floor. an unreadable wallet refuses the buy; sells are never blocked.

1. backtest tool. backtest_chicken_policy(policy) replays a policy over settled rounds. data: settlements, /api/results/{round} standings (25 contenders each), /api/chart/{round}/{did} per-minute price/likes/velocity ticks back to 07-17.

  • rev 2 — fills at depth. the house ladder is a deterministic slope off p_model (/api/book shows ~$25 rungs near the top and much larger rungs at sub-cent prices) plus a pressure/skew term from order flow. the tool fits the ladder from live book samples, prices historical fills by walking it, and reports, per policy, the order size above which the edge disappears. the pressure term isn't in the historical record, so fills on rounds with heavy flow stay optimistic; the report says so.
  • rev 2 — walk-forward, never in-sample. a policy is fit on rounds before a cutoff and scored only on rounds after it. reporting on the rounds it was fit to is a curve fit.
  • scoring by prediction, not by story. a policy implies a win probability for every name it buys; so do your pre-registered hit estimates; so does the market price. the report gives each one's log loss and calibration on the out-of-sample rounds, next to P&L, drawdown, worst round and floor breaches. beating the market price on log loss is the evidence of edge; P&L alone over a few dozen heavy-tailed rounds is mostly noise. (better log loss still doesn't guarantee P&L after fills, which is why both are reported.)
  • rev 2 — first test. the cheap basket, the one you can't run by hand, against a 7778777-style single entry as the baseline it must beat.

2. a declared policy and an executor. you write io.zzstoatzz.phi.chicken.policy/self, a small parametric policy:

window:        hours 8–23 of the round
entry:         ask ≤ 5¢, likes ≥ N, velocity ≥ V/hr, max K names open
size:          $X per entry, $Y per round, capped by the fill-depth size
add:           when a held name leads by margin M, add up to $Z under 40¢
cut:           sell when velocity drops below W for 2h, or price halves from entry
expected:      hit rate, log loss and EV, copied from its out-of-sample report

the record is the pre-registration. a deterministic loop in phi.service reads it every few minutes and places orders through the same path as place_chicken_trade, ruin floor included. no model in the loop; it checks the operator override every tick.

  • rev 2 — going live. a policy version runs only after ≥30 out-of-sample settled rounds spanning a full week (so the weekday mix is in), and starts under a lower risk cap for its first live rounds.

3. sort the rule catalog, then retire the machinery. update_chicken_strategy, the TypeSafe selector and core/chicken_strategy.py go away. rev 2: rules are sorted first, not deleted:

  • rule-51 (the contender set closes 00:00Z) and rule-52 (the displayed ask is a floor) are facts about the market → tooling and docs.
  • rule-48 and rule-50's bands → policy parameters.
  • the rest stays on your PDS as history, untouched.

the 18:00Z / 04:00Z passes become reviews: read the policy's results, run a backtest, publish a new version or switch it off. place_chicken_trade stays for discretionary bets, including single-entry ones.

still open #

for nate:

  • the independent policy judge would review each policy version instead of each executor fill.
  • the backtest corpus is ~1.4GB of chart data (≈411KB per contender-round, uncompressed): where it gets fetched and cached.
Sign up or Sign in to add to the discussion.