Book · adamcoding.com
Trading Systems for Software Engineers
What Your Engineering Instincts Get Right - and Where They'll Cost You Money
Book Architecture
Part I - Foundations (written in full below)
- Why Engineers Lose Money
- The Market as a System
- The API Surface: Instruments, Orders, Execution
- Expectancy: The Only Equation That Matters
- Your First System
Part II - Building
- The Data Layer - survivorship bias, corporate actions, timestamps and timezones, tick vs. bar aggregation, why two vendors disagree about the same candle
- Backtesting as a Test Harness - why it's an integration test against a mock that lies to you, and how to make it lie less
- Overfitting - degrees of freedom as a budget, plateaus vs. peaks, the multiple-comparisons problem
- Validation - in-sample/out-of-sample discipline, walk-forward analysis, Monte Carlo, deflated performance metrics
- Position Sizing and Risk - fractional risk, Kelly and why fractional Kelly, correlation and portfolio heat, drawdown budgets
Part III - Categories of Edge
- Trend Following - the oldest surviving edge, why it works, why it's miserable to trade
- Mean Reversion - pairs, stat arb, and the difference between "cheap" and "falling"
- Breakout and Volatility - regime dependence, volatility as an asset rather than a filter
- Structural and Carry Trades - risk premia you get paid to absorb, and the tail that eventually arrives
- Microstructure - what the professionals actually do, and an honest account of why you can't compete there
Part IV - Operating
- Backtest → Paper → Live - the three transitions, each of which will surprise you
- Production Engineering - idempotency, reconciliation, state recovery, kill switches, observability, the 3 a.m. page
- Psychology as a Systems Problem - treating your own behaviour as an unreliable component to be designed around
- Records, Tax, and Jurisdiction - why this is a chapter and not a footnote
- Knowing When to Stop - killing a strategy, and killing the project
Contents
- Part IFoundations
- 01Why Engineers Lose Money
- 02The Market as a System
- 03The API Surface
- 04Expectancy - The Only Equation That Matters
- 05Your First System
- Part IIBuilding
- 06The Data Layer
- 07Backtesting as a Test Harness
- 08Overfitting
- 09Validation
- 10Position Sizing and Risk
- Part IIICategories of Edge
- 11Trend Following
- 12Mean Reversion
- 13Breakout and Volatility
- 14Structural and Carry Trades
- 15Microstructure, and an Honest Assessment
- Part IVOperating
- 16Backtest → Paper → Live
- 17Production Engineering
- 18Psychology as a Systems Problem
- 19Records, Tax, and Jurisdiction
- 20Knowing When to Stop
- AThe Reference Strategy
- BValidation Checklist
- CFurther Reading