← Results index

Implement generic trailing-stop adapter with volatility-aware sizing

2026-08-22T18:07:59Z Research completed Extended generic trailing-stop harness with ATR and volatility-scaled variants compared against fixed percent stops on same window, costs and lag; new rows render in the experiment detail delta table and offline tests pass without live fetch.
trailing-stop atr volatility generic-signals experiment-harness

Objective

Implement ATR and volatility-scaled trailing-stop adapters in backtest/generic_signals.py and wire them into the head-to-head experiment harness (same window, costs, one-bar lag) so the experiment detail delta table shows volatility-aware variants alongside fixed percent stops, with offline tests.

Approach

Files changed

Validation

Results

The experiment detail page docs/experiments/qm-kdnj.1.html now shows a 9-row generic-exit-harness table including trailing_atr (1.1628 generic-only → 1.8785 signal+generic, delta 61.54%) and trailing_vol (0.9774 → 1.5789, delta 61.54%) alongside fixed stops, on window 2007-01-03 → 2026-07-24 with same costs/lag. Offline harness proves no live fetch and no DB mutation. Changelog entry research/results/qm-z7yi.md is searchable via git grep.

Source artifact: research/results/qm-z7yi.md