← The library

quants.md

OCO Dip Or Breakout

Fragile

“Competing buy-limit (dip) and buy-stop (breakout)”

As tested: Every 5th session while flat: a buy limit 2% under the close and a buy stop 2% over it, 10% of the account, one cancels the other, live 5 sessions; sold 10 sessions after the fill. No stop.

Holding today: QQQ 10%

Edge per month-0.88 pts/mopts per month vs SPY
t-stat-2.8695% range -1.49 to -0.28
Months400Sep 1, 2016 – Dec 3, 2026
Win rate62%closed green
CAGR4.1%SPY 14.5%
Max drawdown-10.0%SPY -33.8%
Last 12 months-4.27 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2001–2026+1.5%-0.08-13.2%58%1.27
Rerun2016–2026+4.1%0.39-10.0%62%1.36

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

OCO Dip Or BreakoutSPY
20172019202120232025

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

Year by year

2016
-0.19 pts/mo4
2017
-1.44 pts/mo12
2018
+0.45 pts/mo12
2019
-1.77 pts/mo12
2020
-1.33 pts/mo12
2021
-1.61 pts/mo12
2022
+0.66 pts/mo12
2023
-1.36 pts/mo12
2024
-1.47 pts/mo12
2025
-0.83 pts/mo12
2026
-0.36 pts/mo12