// lab notes

The Lab Notes

A practical guide to specifying, implementing, testing, and challenging an automated trading system — with code excerpts, experiment plans, and clearly labelled illustrative examples. The notes build on each other, so start at Lab Note #01 if you're finding this later.

Lab Note #01

What is an automated trading system?

Strip away the mystique. A trading system is explicit rules — data, entries, exits, sizing, and execution assumptions. Nothing more.

Read note →
Lab Note #02

The deliberately boring system

A fast/slow moving-average crossover. We choose something trivial because we're teaching the development process, not pretending we've found alpha.

Read note →
Lab Note #03

Implementing it in MQL5

Translating the specification into readable MQL5: closed-bar signals, position ownership, and execution checks.

Read note →
Lab Note #04

Running the first backtest

MetaTrader's Strategy Tester: what it actually does, what the numbers mean, and why you shouldn't get excited yet.

Read note →
Lab Note #05

How to read a backtest without fooling yourself

Net profit isn't enough. Trades, drawdown, Sharpe, recovery factor, equity curve shape, and the assumptions hiding underneath.

Read note →
Lab Note #06

How we accidentally manufacture a brilliant strategy

Search the MA periods, inspect the historical winner, and uncover selection bias before trusting the result.

Read note →
Lab Note #07

Out-of-sample and forward testing

Separate development from evaluation: historical forward splits, rolling walk-forward studies, and live demo testing.

Read note →
Lab Note #08

Now try to break the system

Different instruments, time periods, execution assumptions, costs, and parameter neighbourhoods. This is where it gets interesting.

Read note →
Lab Note #09

From break-tests to an audit checklist

The experiments from #08 turned into a fixed, ordered checklist for reviewing any system, with findings ranked by severity.

Read note →

Have a system you want specified, built, or stress-tested? Get in touch.