MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 542 Market data: forward curves, FX, settlement prices and closes, 602 Market risk: sensitivities, historical-simulation VaR, stress tests and limits, 621 End of day: close the market, run the valuation, automate the night, 631 Performance: compress market data, keep a save fast, 632 Robustness: transactions, one door per write, validation, retries, the activity log, 662 Options: volatility, Black-76, the premium as a fee, and the Greeks.

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 / 17
How much has it been moving?
Why MiniCTRM keeps desk marks

Why MiniCTRM keeps desk marks

2 / 17
Why MiniCTRM keeps desk marks
What you need first

What you need first

3 / 17
What you need first
Returns and three estimators

A return, and where the before price comes from

4 / 17
A return, and where the before price comes from
Returns and three estimators

A ratio or a difference, and the days between

5 / 17
A ratio or a difference, and the days between
Returns and three estimators

Three ways to weight the days

6 / 17
Three ways to weight the days
Returns and three estimators

What a historical volatility is for

7 / 17
What a historical volatility is for
Five prompts

The return reader

8 / 17
The return reader
Five prompts

Equal weights and EWMA

9 / 17
Equal weights and EWMA
Five prompts

GARCH, fitted, with a fallback

10 / 17
GARCH, fitted, with a fallback
Five prompts

Runs, a nightly job and the report

11 / 17
Runs, a nightly job and the report
Five prompts

A deliberate copy into the marks

12 / 17
A deliberate copy into the marks
Bells and whistles

Bells and whistles

13 / 17
Bells and whistles
Ship it

Ship it

14 / 17
Ship it
How MiniCTRM does it

The Volatility screen: desk marks

15 / 17
The Volatility screen: desk marks
How MiniCTRM does it

Help → Profit at Risk: the one volatility MiniCTRM measures

16 / 17
Help → Profit at Risk: the one volatility MiniCTRM measures
What you have now

What you have now

17 / 17
What you have now

You have finished lesson 701, Historical volatility: equal weights, EWMA and GARCH from the closes.

Where next?

← → move · N notes · Home / End