MiniCTRMSearch

MiniCTRM - Build Tutorial 714: Gas storage valuation: an optimizer for the volumes, simple discounting for the value, and the risk

→ 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 storage contract with every limit and fee as data, an intrinsic optimizer that projects the best monthly volumes, those volumes valued by your ordinary discounting, an extrinsic value from Monte Carlo kept on its own labeled line, and a risk method that works when the optimizer is slow.

  • Why MiniCTRM does not have it
  • What the optimizer must know – Capacity, daily limits, ratchets and every fee.
  • Intrinsic value: one year, worked – Inject at the limit while cheap, hold, withdraw at the limit while dear.
  • Extrinsic value – What changing the plan as prices move is worth, and why it takes Monte Carlo.
  • Risk: the delta, and the slow optimizer – The volumes are the delta; freeze them for VaR.
  • Build it – What yours needs first; lesson 664's contract and the terms it adds, the optimizer, the valuation, Monte Carlo, the risk and the help page; then /ship.
  • How MiniCTRM did it – Volumes a person types, valued the simple way.

Before you start

The lessons this one builds on: 542 Market data: forward curves, FX, settlement prices and closes, 544 Pipeline, Zone and Location: where physical gas changes hands, 601 Valuation and reports: mark-to-market, valuation runs, position, day-over-day change, 602 Market risk: sensitivities, historical-simulation VaR, stress tests and limits, 621 End of day: close the market, run the valuation, automate the night, 622 Running jobs in parallel: the end of day in ten minutes, not twenty, 658 Adding a new trade type to a live system: the master checklist, 664 Natural gas storage: capacity, rates, fees and the inventory, 703 Monte Carlo VaR: ten thousand tomorrows on the same engine, 711 Physical gas before netback: points, pipelines, transport contracts and the month's volumes, 713 Gas transport and storage optimization: when to move gas, when to store it, and how often.

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

The volumes, then the value

1 / 17
The volumes, then the value
Why MiniCTRM does not have it

Why MiniCTRM does not have it

2 / 17
Why MiniCTRM does not have it
What the optimizer must know

Limits, fees and the operational rules

3 / 17
Limits, fees and the operational rules
Intrinsic value: one year, worked

Intrinsic value: the best plan on today's curve

4 / 17
Intrinsic value: the best plan on today's curve
Intrinsic value: one year, worked

One storage year, worked

5 / 17
One storage year, worked
Extrinsic value

What flexibility is worth

6 / 17
What flexibility is worth
Risk: the delta, and the slow optimizer

The delta is the volumes

7 / 17
The delta is the volumes
Risk: the delta, and the slow optimizer

Risk when the model is slow

8 / 17
Risk when the model is slow
Build it

What your system needs first

9 / 17
What your system needs first
Build it

The contract as data

10 / 17
The contract as data
Build it

The intrinsic optimizer: projected volumes

11 / 17
The intrinsic optimizer: projected volumes
Build it

Valuing the volumes the simple way

12 / 17
Valuing the volumes the simple way
Build it

Extrinsic value by Monte Carlo, at the end of day

13 / 17
Extrinsic value by Monte Carlo, at the end of day
Build it

Delta, VaR and stress

14 / 17
Delta, VaR and stress
Build it

Ship it

15 / 17
Ship it
How MiniCTRM did it

Volumes a person types

16 / 17
Volumes a person types
What you have now

What you have now

17 / 17
What you have now

You have finished lesson 714, Gas storage valuation: an optimizer for the volumes, simple discounting for the value, and the risk.

Where next?

← → move · N notes · Home / End