Written 27 September 2026

The Book ofSauron

The story · the machine · the road so far

Where the machine comes from, what it is made of, how a trade is born inside it, the rules that keep it honest, and every step of the road it has travelled so far.

9,979 Automated tests passing
36 Signal evaluators
195 Instruments tracked
8 Broker adapters
Begin

Chapter I

Where Sauron comes from

A project born on 5 April 2026 from one simple idea: a machine that sees everything. Along the way it learned to believe only what it measures.

Sauron Vision was born on 5 April 2026. That day a first version went online, and it already held the heart of the idea: artificial-intelligence agents, alerts, a tool that tests strategies on the past, signals, and a news collector.

Three days later came the first trading bot, connected to Binance, a cryptocurrency exchange, behind a PIN code. Then, within a few days: an emergency stop button, a simulator that trades without real money, circuit breakers, and a public front page, the Wall.

The code borrows its names from The Lord of the Rings: “Amon Hen” for the first section of the menu, “Gollum” for the guide who knows the way to Mordor. On its public page, Sauron presents itself as the all-seeing trading intelligence platform.

Why build it? To trade on its own, across several families of investments, in a closed loop: form a view, filter the risk, place the order, grade the result, and use that grade for the next decision. No black box: every step can be inspected.

The history of the code is kept in commits, the dated records of every change: 304 of them by the time this book was written. There were 45 in April, then none until August, then 134 in August and 125 in September, each counted on the day its record carries. Since 9 August every one of them has been co-written with Claude, and most of the work on real money dates from September.

5 April 2026 The first commit: “Sauron Vision — initial deploy”.
304 commits by the time this book was written.
259 of them co-written with Claude: every one since 9 August 2026.
9,979 automated tests passing at the last full run, the figure the Wall publishes.

Chapter II

Sauron in six pictures

An eye that watches, bots that act, gates that say no, a brain that grades itself, pages to see everything, and messages to tell it.

Sauron Vision is an automated trading platform. Trading means buying investments and selling them later (shares, currencies, gold, cryptocurrencies) to gain on the difference in price. With real money, Sauron always goes through a broker, the intermediary that holds the account and carries out the orders; in its own simulation it does everything itself, with no broker at all. Today that broker is eToro.

Picture a small team in which each member has one job. Nobody does everything, and everyone is checked by the others.

One rule runs through every internal page: what has not been measured is never shown as true. An unknown figure is written as a dash, never as a zero. Only the public pages, the Wall and this book, show 0 when a counter fails, and that is deliberate, because they are the platform's public front door.

Behind these six pictures stand 67 parts that can each be switched on or off, 30 registered commands, and 9,979 automated tests: small programs that check the code does what it says.

The eye

The Oculus, the first page of the menu. It answers a single question: is the machine turning? It sets the platform's cycles side by side, owns no data of its own, and always keeps three cases apart: a measured number, “not measured”, and a part that is switched off.

The bots

Each bot is tied to one family of investments: shares and ETFs, currencies, commodities, cryptocurrencies, options. It either trades in Sauron's own simulation (“paper”) or is connected to the broker (“live”), and a live bot trades real money only once the broker's demo box is unticked. A new bot is born switched off, in simulation.

The gates

Before every order, a line of checks can say no: the proof for that family of investments, what the broker allows, the money available, the day's loss, the concentration, the circuit breakers. When a gate says no, nothing leaves. Above them all, an emergency stop switches every bot off, then tries to close everything.

The brain

Sauron's Mind reads, summarises, and makes predictions that can be checked, each one graded later. An agent that is often wrong loses influence. The brain only advises: it can pause a rule, and it never sends an order.

The pages

The Operations Center, with its live, portfolio, history and bots tabs; the Treasury, which shows where the money is; each trade's own page; and the public Wall.

The messages

A Telegram group where Sauron announces what it does: every opening, every closing, every refusal and every problem, in English.

Counted by the platform

30 Bots configured
501 Signals graded
117 Trades graded
1,107 Predictions graded
7,068 Entries in the audit chain
67 Parts under a switch

Chapter III

How a trade is born, lives and ends

Ten steps, from a view to a graded result.

A trade is a bet on a price: you buy an investment expecting it to rise, or sell it expecting it to fall, and later you close it. Here is the real path of a trade inside Sauron, in order.

Every five minutes, each bot that is switched on takes a turn. It first watches over what it already holds, then checks that it is still allowed to open something, and only then looks through its instruments.

  1. The signal

    A signal is a dated view on an instrument, up or down, with a score. Several families of rules produce them: reading the charts, the tone of the news, the economy, the companies' fundamentals.

  2. The vote

    It takes recent signals, 24 hours old at most and scored at least 0.60, and a vote that leans far enough one way: each rule weighs according to its past results, and opposing views subtract. By default a single strong signal can be enough. Rules still “in research” are watched, but do not vote.

  3. The stop and the target

    The stop is the price at which the loss is cut; the target, the price at which the gain is taken. Both follow the instrument's normal restlessness: the stop at 1.5 times its average move, the target at 3 times. The aim is a gain twice the accepted loss, and costs are deducted before a trade is judged worth taking.

  4. The size

    The quantity is never a fixed amount. It is computed so that, if the stop is hit, the loss is a precise share of the bot's own reserve: 0.25% by default. That is “1R”, one unit of risk, the same on every trade by default; in the attack mode, conviction sets each trade at a half, three quarters or all of it.

  5. The gates

    Before anything is sent: the proof for the class, the broker's sheet for that instrument, the money available, the day's maximum loss, the total exposure, the concentration on one instrument, the same bet hidden under several names, the circuit breakers. A single no is enough, and nothing leaves.

  6. The order, protected at the broker

    The order leaves in one piece, with its stop and its target placed at the broker. eToro keeps them on its side, so the trade stays protected even if Sauron stops. eToro may move the levels it receives, sometimes far: on 25 September it shifted them slightly, and on 26 September a stop sent 5% from the price was held nearly 10% from it. When it moves a bot's stop, the fill message says so. If a real-money trade ever loses its stop, an alert goes out, even when the bots' messages are muted; only the shared quiet hours, when set, hold it back.

  7. The watch

    Every 15 minutes during market hours, from 13:00 to 21:45 UTC, Sauron compares what it holds with what the broker holds. That is one of two ways it learns that a stop or a target was hit; the five-minute turn also compares the price with both.

  8. The close

    Sauron first sends the closing order to the broker. If the broker does not answer, the line waits as “close pending” and the close is tried again. Nothing is ever written “closed” without the broker's answer.

  9. The announcement

    The opening and the closing arrive in the Telegram group, in English; the closing says its result and how it ended: target reached, stopped out, time limit, expired or closed by hand.

  10. The grade

    Every closed trade is graded (target reached, stopped out, closed by hand, expired or time limit) with its result in R. Those grades decide which rules climb and which fall.

The grade feeds the next decision

The last step closes the loop. A rule that wins climbs a ladder of four rungs: research (no trades at all), simulation, small real (a quarter of the size), full real. A rule that falls apart climbs back down on its own.

The settings quoted in this chapter are the platform's defaults as verified on 26 September 2026.

Chapter IV

The rules that make Sauron trustworthy

Each one was learned, often from one precise incident.

Sauron handles money, so its rules of conduct matter more than its investment ideas. Most of them were born from a mistake avoided just in time, or from a measurement that contradicted a certainty.

They bind the machine, Claude, and everyone who operates it. They are not there to make things harder: they are there so that no loss ever comes from something we only believed we knew.

Measure before believing

Only the broker can contradict the code. On 22 September, the connection to eToro, written from the documentation, met a real key: of its four layers, three were wrong, while 7,459 tests and four reviews held them to be right. Since then, anything the broker has not confirmed is treated as a hypothesis.

A claim is not a measurement

On the morning of 23 September, everything at IBKR was believed closed. The moment the broker answered, the platform measured the opposite, with no protective stop on what remained. Had “closed” been written down on someone's word, it would have stayed unwatched. Nobody ever writes “closed” by hand.

Unknown is never zero

There are three answers: measured, measured at zero, and unknown. On the internal pages, whatever could not be measured reads “not measured” or a dash, never 0. The public Wall once showed “667 tests green” and invented prices; all of it was replaced with real counts. The public pages, the Wall and this book, keep a single, deliberate exception: a failed counter shows 0 there.

Refuse rather than trim

When a safety rule says no, nothing leaves. An order that would lock too much money at the broker is refused, not shrunk. A refused leverage is never quietly swapped for an order without it.

Read the refusal, never guess

When the broker or the platform says why it refuses, that text is read first. On 7 September, three false causes were invented while the log held the true one. Every false lead costs time.

Design, then attack, before touching money

Every change that can send or size an order is first designed, then attacked by three reviewers from three angles (the money, the written contract, and “would you ship this tonight?”), then by a critic. On 20 September this process caught the platform's worst defect: every exit on real eToro would have opened an opposite trade instead of closing one.

One proof per family

A family of investments may send an order to eToro only after its proof: an order filled and then closed, written into the code with its test. It is deliberately not a box to tick, since nothing can tick a proof that was never measured. When the gate arrived on 24 September the list was empty and every eToro order was refused, even in demo; crypto earned the first proof, on the real account: measured on 26 September, written into the code on the 27th.

The PIN guards real money

On the pages, the trading PIN is asked for at the gestures that open the way to real money: unticking the broker's demo box, switching on a real bot, placing or closing a real order by hand, applying a capital plan. Switching a bot off never asks for it.

The guards watch the machine

Since 27 September the platform has the Morgul guards: a watchdog outside the engine that checks every five minutes for what Sauron must never do (a booking while its market is shut, a real-money trade with no stop at the broker, a close stuck pending, a price far from the market), tells the group, and can only ever stop a bot. Both of its switches are off on arrival.

No capital moves without a human

The parts that could move capital on their own, the share allocator and the capital desk, run in shadow: they propose and apply nothing until weeks of grades have been read. Applying an allocation plan takes the PIN on the page, or an explicit confirmation in a command. One exception, off by default: a switch that would let share cuts apply themselves after a shock.

An error kept on the cautious side

One calculation of a share of capital is wrong, but always towards “too small”. Every fix tried broke one of the platform's guarantees: one doubled a reserve at a stroke, another split the accounts in two, the third disarmed the automatic brake on losses. It stays as it is: breaking a guarantee to correct a caution is not an improvement.

Chapter V

The road so far

From a first bot in April to the first measured orders at eToro in September, one dated step at a time.

Sauron was built in waves. First, seven days of momentum in April. Then four months of work outside the history, recorded all at once on 9 August. Then, from August, an almost daily build, co-written with Claude, and often reviewed and attacked by adversarial reviewers.

September was the month of real money: the first orders at IBKR and their refusals, the search for a broker that lets the server work on its own, the move to eToro, the first eToro orders in demo, and then the first proofs.

5 – 11 April 2026

The first seven days

The first version goes online on 5 April. On the 8th comes the first bot, on Binance, behind a PIN code; then the emergency stop, simulated trading, the circuit breakers and the Wall.

  1. The first commit

    The first version of Sauron Vision goes online, with AI agents, alerts, a strategy tester, signals and a news collector.

  2. The first bot, on Binance

    The bots arrive, connected to a cryptocurrency exchange, behind a PIN code.

  3. Emergency stop, simulation and the Wall

    An emergency stop button, a simulator without real money, circuit breakers and the public Wall are added.

11 April – 9 August

Four months outside the history

Numbered phases, up to the sixtieth, recorded all at once on 9 August: signals that grade themselves, the promotion ladder for rules, the brain, bots for shares, currencies, commodities and options, and three brokers: Alpaca, OANDA and IBKR.

  1. Four months, recorded at once

    The brain, the bots for shares, currencies, commodities and options, and the signals that grade themselves land together. From now on, Claude co-writes the code.

9 – 18 August

Wiring the chain

A single server runs everything, with a step-by-step guide. Safeguards that had been built but never called are wired in. On 10 August the full chain reaches a simulated trade for the first time, costs included; on the 18th, evolution starts proposing and testing variants of rules.

  1. The first simulated trade, costs included

    For the first time the whole chain runs from a price to a simulated trade, and simulated trades pay their costs.

  2. Evolution wakes

    The dormant evolution layer becomes a living loop: variants of rules are proposed, run and graded.

19 – 31 August

A platform you can read

The PIN becomes a real gate. The pages update themselves. Money gets a single answer everywhere: reserves, used, free. IBKR becomes configurable, and its trades leave with a stop placed at the broker.

  1. The PIN becomes a real gate

    The PIN can be typed at last, a forgotten PIN has a way back in, and an unattended screen locks behind it, enforced by the server.

  2. The Wall tells the truth again

    Real counts replace invented figures on the public page: the platform as it is, and no made-up market data.

  3. Pages that move on their own

    A session that survives the page, pages that update themselves, and a brain no longer punished for what it could not measure.

  4. One answer for the money

    The money question gets one answer everywhere: reserves, used, free and cash.

  5. No IBKR trade leaves unprotected

    Orders sent to IBKR now leave with their stop resting at the broker.

  6. Unmeasured is not zero

    The rule enters the pages: what was never measured is never shown as a zero.

1 – 10 September

First steps towards real money

The Long and Short buttons can send real orders, after an arming step checked by the PIN. On the 7th, the first real order comes back with a mere notice from the broker, taken for a refusal: nothing was opened. On the 10th, a second refusal, over the broker's account minimum, which is now read before the order.

  1. Long and Short go real

    The manual buttons learn to send real orders, refusing first, and only after an arming step checked by the PIN.

  2. The first real order

    The first real order sent to IBKR comes back with a mere notice, taken for a refusal: nothing was opened.

  3. The broker's minimum, read first

    A second order is refused over the broker's account minimum; that floor is now read before the order, not after.

11 – 15 September

Measure before betting

A fleet of research bots, in simulation, covers 166 symbols. Every prediction becomes a graded claim. The capital desk ranks every candidate under one risk budget. The Oculus shows whether the machine is turning. On the 15th a campaign of two to three months in simulation is decided; it later gives way to real money, one proven class at a time.

  1. The research fleet

    A fleet of research bots starts trading in simulation, fed by a data source that needs no key.

  2. No prose without a claim

    Every prediction the brain writes must carry a claim the platform can grade.

  3. The capital desk

    Every candidate of every bot, ranked once, under one risk budget, in shadow.

  4. The share allocator

    A portfolio that moves with the evidence, shadow first: it proposes, and a human applies.

  5. The Oculus

    A page shows, cycle by cycle, whether the machine is really turning, and which wheels are engaged.

  6. A campaign in simulation

    Two to three months in simulation are planned, to arrive with evidence; the plan later gives way to real money, one proven class at a time.

16 – 20 September

Looking for another broker

IBKR's two-factor sign-in stays stuck in a loop on the 16th. eToro arrives, and two keys are enough, with no daily sign-in; Saxo too, with one sign-in the platform then keeps alive. The Treasury shows where the money is, the interface switches to English, and the retirement of IBKR is written down before it is done.

  1. eToro joins the fleet

    A broker whose two keys let the server work without a human at the door.

  2. Saxo signs in once

    One sign-in, and the platform keeps the door open from then on.

  3. The platform speaks English

    The interface switches to English, and a close really closes.

  4. A close is not an opposite order

    The review catches the worst defect: on real eToro every exit would have opened an opposite trade. It is fixed before any real order.

  5. The Treasury

    A page shows where the money is.

  6. IBKR's retirement, written first

    The retirement of IBKR is written down before it is done.

22 – 23 September

eToro measured, IBKR switched off

A real eToro key: the first probe answers “not found”, and the connection is corrected from the real answers. Switching eToro to real money now asks for the PIN. On the 23rd the first eToro orders leave, in demo; at IBKR the last trades are closed at the New York open, and IBKR is retired.

  1. eToro measured with a real key

    The first probe answers “not found”; every path is corrected from the real answers instead of the documentation.

  2. The demo box is guarded

    Unticking the demo box is the switch to real money, so it now asks for the PIN.

  3. First eToro orders, in demo

    The first eToro orders are sent on the demo account and closed; the three defects they measured are fixed and pinned.

  4. IBKR retired

    The retirement of IBKR is planned and attacked first; at the New York open the last trades are closed, and later that day IBKR is retired from the platform.

24 – 27 September

The proofs and the guards

The proof gate refuses any eToro order from a class not yet proven. Sauron reads each day what eToro allows, instrument by instrument. On the 26th the bots finally speak on Telegram and the first real-money orders at eToro are sent; on the 27th what they measured is written into the code, crypto earns the first proof, and the Morgul guards arrive.

  1. The proof gate

    Every eToro order is refused while its class has not proven, in demo, that it can open and close.

  2. What eToro allows

    Sauron reads each day, instrument by instrument, the floor, the caps and the leverage eToro allows; the first proof begins in demo.

  3. The bots speak on Telegram

    Bot openings and closings reach the Telegram group at last.

  4. Only real faults

    The morning digest reports real faults only, each part judged on its own rhythm, in English.

  5. Sauron answers its group

    Asked in the group, Sauron can report its status and explain why it did not trade, in English; the one thing it may change is the brake. Switched off on arrival.

  6. Every signal announced

    Every new signal, from every rule, is announced once on Telegram, and every message follows one English house style.

  7. Each instrument in eToro's spelling

    Every instrument is sent under eToro's own name for it; a look-alike is refused, never adopted.

  8. Conviction sets the risk

    Leverage per class, and an attack mode: conviction sets the risk, while the multiplier only sets the cash the broker locks, never past what a demo proof pinned.

  9. The real side measured

    The first real-money orders at eToro, two tiny ones sent the evening before, measured sending, withdrawing, filling and closing on the real account; what they taught is now written into the code.

  10. A plain page for every trade

    Each trade's page opens on a plain summary: the result live, one close button with a preview and the PIN, and the technical record folded underneath.

  11. The probes read their own market

    A probe is called stale only when it falls behind its own market, counted from the bar's close: a healthy weekend no longer reads as a fault.

  12. Switching off says what it leaves

    A switched-off bot no longer manages what it holds, and every way of switching one off now says so.

  13. The Morgul guards

    A watchdog outside the engine checks every five minutes for what Sauron must never do, tells the group, and can only ever stop a bot. Both switches are off on arrival.

  14. No simulated fill on a shut market

    A simulated trade never fills or exits while its market is shut, and a shut market's last price is no longer stamped as fresh.

  15. The briefs read the real book

    The morning brief and the evening summary count every trade the platform holds: real money first, then the simulated book.

  16. The suite, counted

    The full suite runs once on the day's combined work, and its count becomes the number the Wall publishes.

Written here · 27 September 2026

Chapter VI

What is being built now

On 27 September 2026 these were written and reviewed, not yet landed.

Every batch is first designed, then attacked, then checked by thousands of automated tests before it lands. Each line here is said as in progress until then, and moves to the road so far, with its date, the day it lands.

In progress

The news band keeps its cards

After a page had been open for a long time, hovering a headline in the scrolling news band at the top could open nothing. The cause is found and the fix is written, so the band's cards stay alive for as long as the page is open.

In progress

Telegram messages written for people

Messages that read like a log line become one plain sentence with the facts beneath it, the technical record folded, and a button that opens the trade's own page.

In progress

The Monday game plan, in full

The briefing page will show the Monday game plan in full, every line of it.

The road to real money

  1. A proof for every class, in demo

    Each remaining class earns its proof in the demo account, at the leverage it will actually use: an order filled, then closed, and written into the code with its test.

  2. Real money only with the PIN, in person

    Unticking the demo box is the switch to real money. It asks for the trading PIN, typed in person on the page and never sent in a message.

  3. One class at a time

    One class ticked at a time and one configuration switched on per session; then a full five-minute cycle and its Telegram message are watched before the next.

The aim is written in the plan for the move to eToro: every class traded at eToro, on its own, with IBKR retired. The second half is done: IBKR has been retired since 23 September. The first half is being built now, one class after another.

Why eToro? Because it lets the server work alone: two keys are enough, with no human sign-in every day. IBKR asked for a confirmation on a phone almost daily, and on 16 September its two-factor sign-in stayed stuck in a loop. The move has a price, accepted with open eyes: no broker is left for options.

The real limit is not money but calibration: knowing which rules truly work. Hence the research fleet trading pretend money, the graded predictions, the register of proofs, and a generator that proposes new strategies every week. Each one is born inactive, at the research stage, until a human approves it.

Chapter VII

A last word

Look, measure, and stop when something does not add up.

Sauron has been built since 5 April, commit after commit. It is not finished, and it says so: what is proven is written down, and what is not is refused.

Nobody needs to be an expert to follow it. It is enough to do what Sauron does itself: look, measure, take nothing on trust, and stop when something does not add up. Switching a bot off is always allowed, and it never asks for a PIN.

The next pages of this book will be written the same way, one dated line at a time.

The Book of Sauron · 27 September 2026

Appendix

Words used in this book

The few terms a first reading meets, in plain words.

Commit
A dated record of one change to the code.
Broker
The intermediary that holds the account and carries out the orders to buy and sell. Today eToro; before it, IBKR (Interactive Brokers).
Demo and real
eToro's two worlds: a virtual account in pretend money, where most proofs are made, and the real account. The demo box chooses, and unticking it asks for the PIN. Inside Sauron, “paper” is its own simulation, and “live” means sent to the broker.
The Oculus
The first page of the menu: it shows, cycle by cycle, whether the machine is really turning.
Bot
A program that trades one family of investments. Every five minutes it watches over what it holds, then looks for something to open.
Signal
A dated view on an instrument, up or down, with a confidence score.
Stop and target
The stop is the price at which a trade is cut to limit the loss; the target, the price at which the gain is taken. For an order sent to the broker, both rest at the broker.
R, the unit of risk
The loss planned if the stop is hit. A trade at +2R gained twice what it risked; at −1R, it lost exactly what was planned.
Leverage
Taking a larger trade than the money put down. It changes the money the broker locks and the financing costs, never the loss at the stop, which depends on the risk chosen.
Margin
The money the broker locks to keep a trade open.
ETF
A basket of investments listed on an exchange, bought like a single share.
Asset class
A family of investments: shares, ETFs, indices, currencies (forex), commodities, cryptocurrencies, options.
Proof
An order filled and then closed, whose values are written into the code with their test. Without one, a class cannot send any order to eToro.
Trading PIN
The code that authorises real-money actions on the pages. Switching a bot off never asks for it.
The brake
Switching a bot off. It does not close what the bot holds: those trades keep their stop at the broker.