Topic
backtesting
8 posts
Article
Capstone: ML against a baseline, ablation and shadow modeRun a baseline and each ablation on the same folds and costs, count every try, shadow the decisions without orders and hand in a six-file dossier.
Article
Walk-forward with purging: labels that cross the boundarySplit by time, purge train samples whose label reaches into the test, fit only on train, report every fold, and see how shuffling and cherry-picking lie.
Article
kNN for traders: only neighbours whose labels are finishedCompute L1 distances by hand, drop past bars whose outcome wasn't known yet, fit the scaler on train only, and compare against plain baselines.
Article
When was it known? Pivots, back-plots and release timesA marker drawn on an old candle may only be known bars later. Test it on cut data, join macro figures by release time, and check regressions on returns.
Article
Tuning parameters without using up the test periodWrite a small grid first, split by time into train, validation and test, log every run, lock the choice, and open the test period exactly once.
Article
Reading a backtest report against its trade ledgerRebuild trade count, net R, fees and drawdown from the trade list, hand-check a few trades, and drop any AI claim that doesn't trace back to a row.
Article
Checking an agent's gold signals against a backtest ledgerCompare an agent's XAU-06 signals with a backtest ledger over ten days that span both DST changes, and give every mismatch a cause.
Article
Backtest a method spec in Python with costs and a holdoutRun the XAU-01 spec through backtesting.py with spread, slippage and commission, check indicators against TA-Lib, then open the holdout once.