Reproducible education
The research laboratory
Inspect a synthetic dataset, reproduce drawdown and recovery calculations, and explore how assumed trading costs change an illustrative gross outcome.
A drawdown you can reproduce
| Observation | Equity | Running peak | Drawdown |
|---|---|---|---|
| 1 | 100 | 100 | 0.00% |
| 2 | 110 | 110 | 0.00% |
| 3 | 99 | 110 | -10.00% |
| 4 | 105 | 110 | -4.55% |
| 5 | 120 | 120 | 0.00% |
| 6 | 108 | 120 | -10.00% |
Maximum drawdown: 10.00%. Drawdown at an observation equals equity / running peak − 1. A loss of 10% requires an 11.11% gain from the trough to return to the previous peak.
Download the synthetic observations (CSV) · Download the calculation source (JavaScript)
What does trading friction change?
Change assumed round trips and all-in cost per side. Gross outcome is fixed at 10,000 arbitrary units to isolate the arithmetic. These are illustrative inputs, not expected returns.
Reuse and limitations
The synthetic dataset and downloadable calculation source are dedicated to the public domain under CC0 1.0. They establish arithmetic only. They do not substantiate a strategy, investment recommendation, historical testing period or real-world execution quality.