Engineer & Maker

From bare metal to capital markets.

Hardware design, high-performance C++, and quantitative finance — engineered, not assembled.

9

Projects

13

Public repos

PCB → Cloud

Stack layers

// Featured work

Projects

View all →
SoftwareComplete

Temper

A reinforcement-learning execution agent, graded against Almgren–Chriss closed forms. The agent works a parent order in a simulated market; an independently derived oracle defines what optimal is, and every threshold is written down before training starts. Under linear impact it rediscovers the analytic schedule to four decimal places. Under a 0.6-power impact law — where the closed form is no longer solving the right problem — it captures 99.4% of the available difference against a certified optimum. Given an invented price signal explaining one part in ten thousand of the next bin’s return variance, it captures 93% of the available advantage while paying 1.05× the optimum’s own execution premium. The same agent then worked a real order on a live matching engine over a wire, as that venue’s third independent client, with every fill predicted in closed form before anything was sent. Python, PyTorch, single-file PPO, CPU only.

PythonPyTorchPPOReinforcement LearningOptimal ExecutionAlmgren–ChrissMarket Impact+4
SoftwareComplete

Touchstone

A C++20 library that prices European calls and puts three ways — the Black–Scholes–Merton closed form, Monte Carlo and Crank–Nicolson finite differences — and holds the closed form and the grid to QuantLib’s reference values, the Monte Carlo to the closed form, and the three to each other, within tolerances its tests state and assert. The grid also prices the American contract. Every claim in its architecture document is numbered against the test or file that holds it. The library depends on nothing but the C++ standard library, builds as a WebAssembly module, and is released as version 1.0.0. It is one half of a pair: the other half is touchstone.garethcooke.com, a tutorial for developers who work alongside quants, in progress, whose demos are to run on this library.

C++20Options PricingBlack–ScholesMonte CarloFinite DifferencesCrank–NicolsonGreeks+7