← The library

quants.md

Trailing Stop Limit

Fragile

“Trailing stop that converts to a limit on trigger”

As tested: The 20/50 cross entry at 15% of the account, with a trailing stop-limit: the stop trails the highest high by 4% of the entry-day close, and fills no worse than 0.5% under the stop.

Edge per month-0.90 pts/mopts per month vs SPY
t-stat-2.4195% range -1.63 to -0.17
Months70Sep 1, 2016 – Dec 3, 2026
Win rate57%closed green
CAGR4.0%SPY 14.5%
Max drawdown-4.2%SPY -33.8%
Last 12 months-4.18 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2001–2026+1.0%-0.38-6.2%48%1.69
Rerun2016–2026+4.0%0.61-4.2%57%2.64

Their dashboard · Source code · QuantJourney, Apache-2.0. Sharpe is after T-bills in the rerun, after a flat 2% in theirs.

Why fragile

Growth of $1

Trailing Stop LimitSPY
20172019202120232025

Log scale. Traded at the next open after each signal, orders rebalance, slippage on every trade.

Year by year

2016
-0.81 pts/mo4
2017
-1.24 pts/mo12
2018
+0.61 pts/mo12
2019
-2.08 pts/mo12
2020
-1.74 pts/mo12
2021
-2.16 pts/mo12
2022
+1.61 pts/mo12
2023
-1.32 pts/mo12
2024
-1.35 pts/mo12
2025
-1.00 pts/mo12
2026
-0.35 pts/mo12