Companion files

Energy Trading

A Practitioner’s Guide to the Flat Book, the Hours It Averages Away, and the Margin Call That Arrives First

These are the four Excel workbooks that go with the book. Every figure the book prints is reproduced in them by a live formula rather than a typed constant, and all four are built on the same eight-row price duration curve — change an hour count, a price, the heat rate, the load shape or the declared price move, and every dependent number moves. Each one ends with a Checks sheet setting the printed figure beside the computed one: 50 controls in all, every one green, recalculated in LibreOffice.

Free to download. No sign-up, no email address, nothing to fill in.

All four workbooks

Download the ZIP36 KB

Everything described below is inside it, with the read-me.

The four workbooks

Conventions used throughout

Blue texta hardcoded input — you may edit these
Yellow fillan assumption that decides the answer
Black texta formula — do not overtype these
Checks sheetthe printed figure beside the computed one, with a PASS or a FAIL

Why the checks matter more than the models

A workbook that agrees with a book proves nothing on its own — the author wrote both. What the Checks sheets do is different: they force the model to reproduce a number that was printed before the model existed, from a formula rather than from the number itself.

On this book the discipline caught the book’s own headline. An early draft valued the power station as a flat block covering its 8,000 available hours and priced that block at the annual forward of 70.1872, which is the average of all 8,760 — including the 760 cheapest hours, the ones the outage removes. The block should have been priced at 73.6250, the average of the hours it actually covers. On the wrong price the plant’s apparent option value was 36,650,855.53; corrected, it is 19,599,440, and the missing 17,051,415.53 turns out to be a mispricing rather than optionality. A book about averages taken over the wrong set of hours had taken an average over the wrong set of hours, and the correction is in the text rather than quietly removed from it.

Where a shortcut and the full computation disagree, both are shown. The hour-set component is 4,960,000 multiplied by an unrounded 3.43778539, not by the printed 3.4378, and the two differ by 72.47; the flat retail block costs 294,786,301.37 on the unrounded average and 294,786,240.00 on the printed one. Neither gap is smoothed away, because a reader who can see the gap is a reader who will not be surprised by it.

Opening the files

The workbooks open in Microsoft Excel, LibreOffice Calc, Google Sheets and Numbers. They use no macros and no add-ins, so nothing needs to be enabled or trusted. If your spreadsheet asks to update links on opening, decline — there are none.

Also by Julian R. Sterling

The other books with companion files. The full list of titles is on the author page.