MiniCTRM - Build Tutorial 701: Historical volatility: equal weights, EWMA and GARCH from the closes
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
A return reader over the stored closes with the return basis and return type set per curve; equal-weight, EWMA and GARCH volatilities with hand-checked tests, GARCH falling back when its fit cannot be trusted and forecasting to each contract's expiry; stored runs with a fingerprint, a nightly job and a report beside the implied strip; a confirmed copy into the strip that keeps its source; and, if you choose, a volatility cone and a forecast check.
Why MiniCTRM keeps desk marks – MiniCTRM's reasons: no need for it in MiniCTRM, and every feature added is tested and kept for good.
What you need first – The closes, the relative or absolute flag, the job runner and the implied strip, reused unchanged; where this lesson sits in a build.
Returns and three estimators – Where the before price comes from, a ratio or a difference, the days between; equal weights, EWMA and GARCH with numbers; what a historical volatility is for.
Five prompts – The return reader; equal weights and EWMA; GARCH; runs, a job and the report; a deliberate copy into the strip.
Bells and whistles – An optional prompt for a volatility cone and a forecast check, and a list of further extras.
Ship it – /ship, with the hand-checked numbers among the tests.
How MiniCTRM does it – The Volatility screen's desk marks, and the one volatility MiniCTRM measures, inside Profit at Risk.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
How much has it been moving?
1 / 17Why MiniCTRM keeps desk marks
Why MiniCTRM keeps desk marks
2 / 17What you need first
What you need first
3 / 17Returns and three estimators
A return, and where the before price comes from
4 / 17Returns and three estimators
A ratio or a difference, and the days between
5 / 17Returns and three estimators
Three ways to weight the days
6 / 17Returns and three estimators
What a historical volatility is for
7 / 17Five prompts
The return reader
8 / 17Five prompts
Equal weights and EWMA
9 / 17Five prompts
GARCH, fitted, with a fallback
10 / 17Five prompts
Runs, a nightly job and the report
11 / 17Five prompts
A deliberate copy into the marks
12 / 17Bells and whistles
Bells and whistles
13 / 17Ship it
Ship it
14 / 17How MiniCTRM does it
The Volatility screen: desk marks
15 / 17How MiniCTRM does it
Help → Profit at Risk: the one volatility MiniCTRM measures
16 / 17What you have now
What you have now
17 / 17
You have finished lesson 701, Historical volatility: equal weights, EWMA and GARCH from the closes.