← Tech Insights

The Montgo lab · Part 2 of 3

A thousand futures and one paper arbitrage

A simulation can lie convincingly. All it takes is letting it know more than a real battery would, or allowing a trade that cannot happen in the real world. In this second part, we show how we build safeguards against our own mistakes in the Montgo lab, how AI helps us do it, and where a human has the final word.

6 min read · 5 December 2026

An analyst at two monitors showing price charts, with a notebook and a solar field visible through the window.

Rule one: the hypothesis is written down before the result

Every experiment in the lab starts with a sentence we want to confirm or refute. For example: "Capping the number of cycles protects the battery owner as well as a fairly designed fee." We write that sentence down, give it a number, and only then run the calculation.

It sounds like bureaucracy, but it protects us from one of the most human mistakes an analyst can make: searching the data until we find what we wanted. After each experiment, every hypothesis is marked confirmed, partly confirmed, or refuted under the conditions tested. And the lab log holds a fair number of refuted ones. We see that as proof that we are not afraid of uncomfortable results.

Rule two: the model must not know the future

The easiest way to make a battery rich in the computer is to give it future prices before a real trader would know them. Then it knows exactly when to charge and when to sell, and it can use opportunities that, at the real moment of decision, it would not yet know about. On the day-ahead market, tomorrow's prices are known once the auction results are published; future intraday prices and balancing activations are not (OMIE).

We still calculate that result. It serves as a theoretical ceiling under the same markets, constraints and definition of revenue. But next to it there is always a second calculation in which the battery knows only what it would know in reality: the information available at the moment of decision, including forecasts. The gap between the theoretical ceiling and the simulated strategy is one of the most interesting numbers we have. It shows the value of better forecasting and better decisions.

Rule three: one history is not enough

We only have a few years of market data in its current form, and in that time it has changed several times. If we ran the battery only through last year, we would learn how it would have done last year. For a fifteen-year decision, that is far too little.

So we assemble thousands of alternative years from pieces of real history. Their strength is that they are built from real market events; how credible the whole scenarios are depends on how well we preserve the links across time and across markets. In one experiment, we ran fifteen operating strategies through two thousand market scenarios. That came to thirty thousand simulated years of battery operation and more than ten million simulated days.

The result is not a single number but a range: the bottom decile, the typical result and the top decile across the scenarios considered. A battery investor does not decide on the average alone, but on whether the project survives a weaker year too.

Rule four: an independent check recalculates every result

Optimisation is a complex piece of code. So every operating plan the lab produces goes through a second, independent calculation check. It takes the record of charging and discharging, the battery parameters, the starting state and the trading inputs. It recalculates whether the battery ever overflowed, fell below the permitted minimum, exceeded its power rating, and whether the revenue adds up. So far, one hundred per cent of the plans included in the results have passed.

The money that did not exist

Now for the promised story. In one experiment, we were looking at how much a battery earns when it combines several markets at once: day-ahead, intraday, and the services it provides to help keep the grid balanced. The first results looked great. Too great.

It turned out the model had found a loophole. It "bought" electricity on one market, "sold" it on another and booked the difference as battery revenue, without a single kilowatt hour flowing through the battery. We call it paper arbitrage. Closing a position between the day-ahead and intraday markets is a legitimate trade in itself. But for our analysis of the battery's physical flexibility, it is essential to separate the real value of storage from a trading result that could be earned without it.

We corrected the model so that the revenue it attributes to the battery's physical flexibility matches what the battery can actually do, and so that trading positions and physical flows make sense together. After the fix, two of the original conclusions turned upside down. Had we settled for the first run, we would have sent a nice chart and bad advice out into the world.

For us, it is the most important lesson of the whole lab: the most dangerous error is not the one that crashes the calculation, but the one that produces a convincing number.

Where AI helps

The lab would not exist in its current form without AI. To put it plainly: much of the experiment code is written by language models; we specify it, read it and approve it. Specifically, AI:

  • writes and rewrites experiment code, including tests and the independent check of results;
  • reads regulations in the original: Spanish royal decrees, capacity market orders, the rules of the Czech transmission system operator, and looks for what changes the model; a person verifies validity and interpretation;
  • watches the data: helps build and review automated tests for gaps, clock changes, duplicates and mismatches between sources;
  • plays devil's advocate: it is given a finished result and looks for reasons it could be wrong.

The human in the loop keeps three things we do not delegate: formulating the hypotheses, deciding whether a model fix is right, and signing off a conclusion before it leaves the lab. With the paper arbitrage, it was a person who confirmed the fix and made it even stricter.

We are not alone in this. Learning methods are being tested for battery trading around the world, and it is just as important to try a strategy blind first, without real money. That is exactly what the lab is for.

One boundary has no exceptions: our customers' data never goes to any public language model. If a model works with it, it is our own model, run in Europe.

What this part deliberately leaves out

We have not said exactly how we assemble scenarios, how we price wear, or what the optimisation looks like inside. That is our know-how and the reason we build the lab ourselves. In the third part, though, we will show what has come out of it. Including a finding that surprised us: the battery that cycles the most does not necessarily earn the most.

Why the gap between perfect foresight and achievable revenue matters so much is discussed in detail in a separate article.

Want to know how your plant would fare in our lab?

Get in touch.