Day 188 — Sizing a futures book when the contracts are not comparable

Wednesday, 10 February 2027 · Week 27 of 52 · Alpha · Study day · 65 min

One contract of one thing is not comparable to one contract of another, and the notional-to-risk conversion is where a futures book either becomes a portfolio or stays a pile of positions.

What you should be able to do tonight

  • Convert a signal into a contract count via a risk target, contract multiplier and volatility estimate, and check the arithmetic end to end.
  • Report the risk contribution of each instrument in your book and say whether it matches what you intended.

Tasks 65 min

30 min Do the conversion explicitly in qlib/portfolio.py: target risk per instrument, divided by the instrument’s volatility in currency terms per contract, gives a contract count that must then be rounded. Rounding matters for small books and the rounding error is a real cost, so report it.

25 min Check what you actually built: report the ex-ante risk contribution of each instrument in the combined book and compare against the equal-risk intention. Then compare the ex-post realised contributions. The gap between intended, ex-ante and realised is the thing to know about your own book.

10 min Note the constraint a small account faces: with a fixed contract size, below a certain capital level you cannot hold a diversified futures book at all. Compute your own threshold.

Resources

Deliverable

A contract-count sizing path with rounding cost reported, and intended against ex-ante against realised risk contributions.

Checkpoint

Your book intends equal risk across four instruments and realises 40 percent in one. Name two causes and how you would tell them apart.

Prepare for tomorrow

Ten minutes tonight so Day 189, Thursday, 11 February 2027 starts clean. This is what the evening email sends you.

Write out, in ninety seconds and out loud, what the bias-variance trade-off is. Time yourself.

Then write it again without using the word trade-off.

Tomorrow’s drill starts the statistics and machine learning band, and this is the warm-up.