Strategy Zoo / S0504

Breakout20_V0504

ARCHIVEDbreakout

llmAdded trend/bubble regime gates to avoid downtrends and bubbles; strengthened entry with momentum (sma_50_slope, ret_20d) and volatility percentile filters; tightened vol_chg threshold; improved exits (add drawdown stop and macd_hist negative exit); introduced graded position sizing by volatility (low=1.0, med=0.7, high=0.3) and lowered base position to 0.8.

Fitness
0.4062
Generation
23
Complexity
14
Created
2026-09-22

Lineage

Parents (1)
Breakout20_V0363S0363 · gen 17ARCHIVEDllm

logic of Breakout20_V0308 with risk overlay of Breakout20_V0324

Children (0)
None

Strategy Logic (pseudocode)

# Breakout20_V0504  [breakout]
if flat and (breakout_20 == 1 and dist_sma_20 > -0.02 and vol_chg < 1.0 and sma_50_slope > 0.0 and ret_20d > 0.0 and vol_pctile < 0.8):
    position = 0.8
if long and (close < sma_20 or drawdown < -0.08 or macd_hist < 0.0):
    position = 0.0  # exit to cash
if regime.volatility == "LOW_VOLATILITY": position *= 1.0
if regime.volatility == "MEDIUM_VOLATILITY": position *= 0.7
if regime.volatility == "HIGH_VOLATILITY": position *= 0.3

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR1.3%32.0%0.3%6.8%
Total Return10.9%130.1%1.1%164.1%
Sharpe0.181.740.080.62
Sortino0.101.480.030.35
Calmar0.072.230.020.35
Volatility9.7%16.7%10.5%11.7%
Max DD-19.8%-14.4%-16.6%-19.8%
Win Rate39.3%51.7%58.8%47.6%
Avg Win3.2%7.3%2.0%3.9%
Avg Loss-1.7%-1.2%-2.7%-1.8%
Payoff1.916.180.752.18
Expectancy0.2%3.2%0.1%0.9%
Profit Factor1.246.621.071.98
Trades612934124
Avg Holding Days4.65.42.64.3
Turnover11.313.012.812.0
Exposure6.6%9.0%3.9%6.5%

Growth of $100

Breakout20_V0504 vs TSLA Buy & Hold
Breakout20_V0504 TSLA Buy & HoldIn-sampleValidationHidden test
Growth of $100 · log scale · in-sample, validation and hidden-test segments are shaded separately and must not be compared as one out-of-sample track record.

Walk-Forward Years

year-by-year stability matters more than any single year
YearCAGRSharpeMax DDTrades
20160.9%0.64-0.3%3
201713.9%1.24-7.3%14
2018-5.7%-1.34-5.7%7
20191.8%0.40-3.0%5
202090.8%2.98-5.0%9
202124.6%1.34-9.6%14
2022-5.3%-1.64-5.2%6

A robust strategy performs acceptably in most years rather than spectacularly in one — look for consistency across regimes, not a single outlier year.

Regime Performance

PeriodRegimeDaysAnn. ReturnSharpeExposure
hidden testDOWNTREND2680.0%0.000%
hidden testEXPENSIVE83-11.9%-0.7110%
hidden testEXTREME4841.6%1.8510%
hidden testHIGH VOLATILITY254-13.3%-1.641%
hidden testLOW VOLATILITY42921.9%2.026%
hidden testMEDIUM VOLATILITY249-21.0%-1.794%
hidden testNORMAL801-0.3%-0.033%
hidden testSIDEWAYS293-8.3%-1.282%
hidden testUPTREND3718.7%0.558%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3117.9%0.4618%
trainEXTREME10074.3%3.4823%
trainHIGH VOLATILITY6994.7%0.502%
trainLOW VOLATILITY7450.0%0.0012%
trainMEDIUM VOLATILITY5680.3%0.045%
trainNORMAL1,601-4.0%-0.713%
trainSIDEWAYS592-1.4%-0.352%
trainUPTREND9024.9%0.3514%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13844.2%2.0819%
validationEXTREME14494.5%3.9113%
validationHIGH VOLATILITY25822.7%1.434%
validationLOW VOLATILITY18315.4%1.5011%
validationMEDIUM VOLATILITY31542.5%2.1112%
validationNORMAL4744.9%0.435%
validationSIDEWAYS2060.5%0.731%
validationUPTREND42551.6%2.3316%

Trades (full period)

latest 100 of 124
EntryExitEntry PxExit PxReturnDays
2026-07-022026-07-06$393.45$419.77-4.30%2
2026-05-142026-05-15$443.30$422.24-0.51%2
2025-12-152025-12-30$475.31$454.430.02%11
2025-12-082025-12-09$439.58$445.17-2.87%2
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-10-292025-10-30$461.51$440.100.00%2
2025-09-302025-10-03$444.72$429.83-1.43%4
2025-09-252025-09-26$423.39$440.40-3.66%2
2025-09-222025-09-23$434.21$425.851.37%2
2025-09-172025-09-18$425.86$416.850.64%2
2025-09-122025-09-15$395.94$410.045.72%2
2025-08-262025-08-27$351.67$349.601.01%2
2025-05-282025-05-29$356.90$358.43-1.04%2
2025-05-192025-05-20$342.09$343.82-1.37%2
2024-12-062024-12-19$389.22$436.177.72%10
2024-09-162024-09-17$226.78$227.87-0.96%2
2024-09-062024-09-09$210.73$216.27-4.84%2
2024-07-112024-07-12$241.03$248.23-4.84%2
2024-07-092024-07-10$262.33$263.261.97%2
2024-07-052024-07-08$251.52$252.941.05%2
2024-07-012024-07-02$209.86$231.264.68%2
2024-06-272024-06-28$197.42$197.880.27%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-052023-07-06$282.48$276.540.42%2
2023-06-202023-06-21$274.45$259.464.11%2
2023-06-142023-06-15$256.79$255.90-0.75%2
2023-06-122023-06-13$249.83$258.711.62%2
2023-06-082023-06-09$234.86$244.403.50%2
2023-06-062023-06-07$221.31$224.571.20%2
2023-06-022023-06-05$213.97$217.612.32%2
2023-05-312023-06-01$203.93$207.520.94%2
2023-04-032023-04-04$194.77$192.58-5.05%2
2023-02-152023-02-16$214.24$202.040.52%2
2023-02-102023-02-13$196.89$194.64-1.26%2
2022-09-202022-09-21$308.73$300.80-0.25%2
2022-08-162022-08-17$306.56$304.00-0.61%2
2022-08-042022-08-05$308.63$288.170.11%2
2022-08-022022-08-03$300.59$307.400.51%2
2022-04-052022-04-06$363.75$348.59-2.76%2
2022-01-042022-01-06$383.20$354.90-2.32%3
2021-10-152021-11-10$281.01$355.9820.07%19
2021-10-132021-10-14$270.36$272.770.37%2
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-272021-09-28$263.79$259.191.59%2
2021-09-202021-09-21$243.39$246.46-3.25%2
2021-09-162021-09-17$252.33$253.16-0.04%2
2021-09-102021-09-13$245.42$247.67-2.13%2
2021-09-082021-09-09$251.29$251.62-0.06%2
2021-08-312021-09-01$245.24$244.700.37%2
2021-08-132021-08-16$239.06$228.72-0.72%2
2021-08-052021-08-06$238.21$233.030.26%2
2021-08-032021-08-04$236.58$236.97-0.15%2
2021-01-262021-01-27$294.36$288.050.03%2
2021-01-042021-01-25$243.26$293.6010.94%15
2020-12-182020-12-23$231.67$215.33-1.35%4
2020-11-242020-12-17$185.13$218.6310.62%17
2020-10-152020-10-16$149.63$146.56-1.62%2
2020-08-172020-09-03$122.38$135.6714.28%14
2020-07-022020-07-27$80.58$102.648.87%17
2020-06-092020-06-15$62.71$66.060.91%5
2020-06-012020-06-02$59.87$58.774.12%2
2020-05-222020-05-26$54.46$54.59-0.36%2
2019-12-242020-02-06$28.35$49.9339.69%30
2019-10-182019-10-21$17.13$16.90-1.18%2
2019-10-162019-10-17$17.32$17.460.29%2
2019-09-112019-09-12$16.47$16.392.63%2
2019-07-242019-07-25$17.66$15.251.29%2
2019-07-222019-07-23$17.05$17.34-0.93%2
2018-12-112018-12-18$24.45$22.47-2.06%6
2018-12-072018-12-10$23.86$24.34-0.90%2
2018-12-042018-12-06$23.98$24.200.08%2
2018-02-012018-02-02$23.28$22.92-1.30%2
2018-01-242018-01-25$23.06$22.51-1.21%2
2018-01-222018-01-23$23.44$23.520.13%2
2018-01-182018-01-19$22.97$23.33-0.53%2
2017-09-182017-09-25$25.67$23.00-5.41%6
2017-08-042017-08-18$23.79$23.160.02%11
2017-05-312017-06-27$22.73$24.166.25%20
2017-05-112017-05-12$21.54$21.65-0.20%2
2017-05-012017-05-04$21.52$19.70-1.28%4
2017-03-272017-04-21$18.01$20.377.89%19
2017-02-092017-02-22$17.95$18.234.52%9
2017-02-072017-02-08$17.17$17.47-0.25%2
2017-01-252017-01-26$16.96$16.83-0.20%2
2017-01-232017-01-24$16.59$16.971.21%2
2017-01-192017-01-20$16.25$16.321.65%2
2017-01-172017-01-18$15.71$15.89-0.89%2
2017-01-092017-01-10$15.42$15.320.63%2
2017-01-052017-01-06$15.12$15.27-0.24%2
2016-12-282016-12-29$14.65$14.31-0.06%2
2016-07-292016-08-01$15.65$15.331.29%2
2016-07-262016-07-27$15.30$15.23-0.33%2
2015-12-312016-01-04$16.00$14.890.48%2
2015-07-212015-07-22$17.78$17.86-3.18%2
2015-07-022015-07-09$18.67$17.19-4.35%5
2015-06-242015-06-30$17.68$17.88-1.84%5
2015-06-222015-06-23$17.32$17.84-0.99%2
2015-06-182015-06-19$17.46$17.500.29%2
2015-05-292015-06-01$16.72$16.63-0.37%2
2015-05-182015-05-19$16.58$16.48-0.19%2