nvx/apertureAll write-ups
No. 03ENGINEERING · 2 min

Top 2% on paper, -14 on new data

Our Algothon 2025 bot placed top 2% and then flopped live. I went back with fresh data and found the 5 checks that would've caught it before we hit submit.

By Cyber security, Monash University

Our team, Bits N' Bytes, placed top 2% at Algothon 2025 (UNSW FinTech Society x Susquehanna). Then the live round happened and we fell apart.

Months later I reran our exact code on data it had never seen. The backtest had been telling us the whole time.

Score on the 1,000 days we tuned on
3.52
Same code, 1,000 days it never saw
-14.34
Small tweaks that went negative on new data
35 / 35

The game

RuleDetail
Instruments50 fake instruments
Each dayYour code sees the prices so far and picks a position in each
Position cap$10,000 a name
Fee0.05% on every dollar you trade
ScoreAverage daily profit minus a tenth of its standard deviation, so a smooth run scores better than a volatile one (this matters later)
The strategy, as we pitched it5 stages
  1. 01

    Momentum model

    Ride whatever's trending

  2. 02

    Volatility model

    Take over when it gets choppy

  3. 03

    Smoothed blend

    12-day weight between the two

  4. 04

    Vol targeting

    Keep risk steady

  5. 05

    Correlation filter

    No near-duplicate bets

On paper it looked like a quant desk.

Scoring in blocks

Same 1,000 days, scored in 250-day blocks
-20-100102030Days 1-250251-500501-750751-100021-13.59.8-1.8Headline score, 3.52This block is nearly the whole score
Same 1,000 days, scored in 250-day blocks
LabelScore
Days 1-25021
251-500-13.5
501-7509.8
751-1000-1.8

Two of the four blocks lose money. The headline 3.52 is one good stretch, and we only ever looked at the total.

Days it hadn't seen

Score by dataset
-30-20-10010Tuned-on days1,000 new days2024 practice file3.52-14.3-13.7Average of 30 shuffled copies of the tuned days
Shuffling the days destroys any pattern over time, and the shuffled copies still averaged -23.5. So the data did have structure. It didn't carry over to new days.
Score by dataset
LabelScore
Tuned-on days3.52
1,000 new days-14.3
2024 practice file-13.7
T-statistic on daily profit
01234Tuned-on days1,000 new days3.790.83.79 means "probably not luck"0.80 means about a coin flip
T-statistic on daily profit
LabelT-statistic
Tuned-on days3.79
1,000 new days0.8

What the clever parts did

Reading our own code back, with the data in hand6 lines
vol_target      pinned at 1.5x on 962 of 962 days        dead
mean_reversion  switches on at 0.2, max seen 0.0022     dead
sizing          formula wanted ~$111k a name, cap is $10k
short side      picked nothing in 94.6% of rebalances
corr filter     rejected a name 5% of the time
blend factor    averaged 0.22, mostly just shrinking momentum
Momentum on its own, score
-5.36
Its daily swing
$257

The blend shrank momentum, the swings shrank with it, and a score that punishes swings rewarded us for betting less. The "blended regime strategy" was mostly a position size.

The fee

Score vs trading fee
-202468No fee0.05% (the compet…0.1%7.213.52-0.2The competition's fee
Score vs trading fee
LabelScore
No fee7.21
0.05% (the competition)3.52
0.1%-0.2

Five checks for the next backtest

Steps5
  1. Lock the last 250 days away on day one

    Score on them once, at the very end, and not before.

  2. Score every block, not the total

    If one block carries the score, find out why before trusting it.

  3. Delete each component and re-score

    If the score doesn't move, the component isn't doing anything.

  4. Pick plateaus over peaks

    If one step either side of a setting drops the score sharply, the peak is probably noise.

  5. Rerun at 2x the fee

    If the score goes negative, the edge was smaller than the cost of trading it.

When the score arrived

Our score history3 events
  1. Until 14 July

    Score negative

  2. 14 July

    Jumps to 3.09

  3. 22 July

    3.52

Most of our "edge" showed up in the last week of tuning, which in hindsight is the week to trust least.

No comments yet

Comments are read before they appear.