Day 167 — The first three signals, built through the interface

Wednesday, 20 January 2027 · Week 24 of 52 · Alpha · Study day · 60 min

The machinery from this week is only worth having if signals are cheap to add, and building three in one hour is the test of whether it is.

What you should be able to do tonight

  • Implement three signals through the interface with no strategy-specific plumbing.
  • Have each one produce a result object through the engine with no code changes to the engine.

Tasks 60 min

35 min Build three signals in qlib/signals/: 12-month price momentum skipping the most recent month, 1-month reversal, and 60-day realised volatility with the sign you decide and defend. Each is a subclass of the base interface, each declares its units, each states its economic rationale in the docstring.

25 min Run all three through the engine with the standard transform, neutralisation and weight map, and produce three result objects. If any of them required touching the engine, the interface is wrong and fixing it now is cheaper than in week 29.

The running strategy

Three signals are in the book, each implemented through the same interface and run through the same pipeline. Adding the fourth is now a file rather than a project, which is the property the alpha book needs.

Resources

Deliverable

Three signals in qlib/signals/ with declared units and stated rationales, each producing a result object with no engine changes.

Checkpoint

Why does momentum skip the most recent month, and what would happen to the signal if it did not?

Prepare for tomorrow

Ten minutes tonight so Day 168, Thursday, 21 January 2027 starts clean. This is what the evening email sends you.

Reread the three docstring rationales you wrote. Mark the one you believe least.

Check the arithmetic drill times; tomorrow is the twenty-fourth sitting.

Nothing to install.