Quant notes · 05 research plan
A daily trend model and an intraday model on XAU/USD and BTC/USD are specified from the literature, backtested net of transaction costs, validated by walk-forward analysis, frozen, and run on a simulated account.
Four phases:
Selecting a week on the timeline shows its summary; section 2 gives the full scope.
Each week specifies the work (what is built or tested), the reading (the sources consulted before the work, so that methods are taken from the literature rather than improvised) and the deliverable (the file that records the week's result). Where a note on this site covers the week's method, it is linked. Reading items are labelled by subject. The mathematics lane (Shreve, Stochastic Calculus for Finance) runs in parallel and does not block the model work; it is first required in week 11, where an Ornstein–Uhlenbeck process is fitted.
Where each phase is implemented in the xau-btc-models repository.
btc, xau, xau_tradable.stats, yearly and walk_forward. Read line by line in note 04.tsmom, tsmom_multi, ma_cross, donchian; EWMAC joins in week 3.02_cost_sensitivity.py is week 2's.results/live_log.csv.src/. Buy-and-hold reproduces the asset, the position is yesterday's signal, costs reduce returns, the mask freezes gold.The reading in section 2 names each paper by the week it is read. Listed here once, in reading order.
Carver's Systematic Trading (2015), its companion spreadsheets, Chan's Algorithmic Trading (2013), Shreve's Stochastic Calculus for Finance II (2004) and the pysystemtrade documentation are quoted from the reading list, not from the text. Part of quant-notes. See also 01 · Time-series momentum, 02 · Volatility estimation by EWMA, 03 · Backtest errors and controls, Backtester implementation and 06 · Sharpe ratio estimation.