Strategy Zoo / S0395

PriceMomentum_V0395

ARCHIVEDmomentum

llmConverted single-threshold entry into a momentum+trend gate: require positive 20d return, rising 50-day slope, and either a 20d breakout or small positive distance above the 20 SMA — to reduce overfitting and enforce structural momentum. Tightened exit set by adding momentum-fade (macd_hist < 0) plus a modest stop (ret_20d < -12%) while keeping the roll-high/sma breach. Added regime gates to avoid downtrends and high volatility, and introduced multi-dimensional position scaling (volatility and bubble states) and lowered base position to reduce drawdown and make sizing adaptive.

Fitness
0.2331
Generation
18
Complexity
19
Created
2026-09-18

Lineage

Parents (1)
PriceMomentum_V0294S0294 · gen 14ARCHIVEDllm

entry from PriceMomentum_V0054, exit from PriceMomentum_V0227

Children (0)
None

Strategy Logic (pseudocode)

# PriceMomentum_V0395  [momentum]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (ret_20d > 0.04 and sma_50_slope > 0.0 and (breakout_20 > 0.5 or dist_sma_20 > 0.01)):
    position = 0.85
if long and (ret_20d < -0.12 or roll_high_50 < sma_20 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
if regime.bubble == "NORMAL": position *= 1.0
if regime.bubble == "EXPENSIVE": position *= 0.6
if regime.bubble == "EXTREME": position *= 0.2

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR1.6%12.0%3.2%4.1%
Total Return13.1%40.6%12.4%81.5%
Sharpe0.180.920.290.37
Sortino0.110.630.170.22
Calmar0.060.540.190.13
Volatility13.0%13.3%14.8%13.5%
Max DD-27.9%-22.1%-17.2%-31.4%
Win Rate39.7%56.7%40.0%43.6%
Avg Win3.6%3.8%5.8%4.2%
Avg Loss-2.1%-2.0%-2.8%-2.2%
Payoff1.751.912.031.89
Expectancy0.2%1.3%0.6%0.6%
Profit Factor1.152.501.351.46
Trades733030133
Avg Holding Days5.05.65.05.2
Turnover12.611.311.712.1
Exposure10.6%11.0%9.2%10.3%

Growth of $100

PriceMomentum_V0395 vs TSLA Buy & Hold
PriceMomentum_V0395 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
2016-1.5%-0.17-9.0%8
201711.3%1.16-4.7%17
2018-7.6%-1.20-9.0%5
2019-6.5%-0.21-19.8%4
202026.1%2.44-2.9%8
202125.2%1.32-12.5%15
2022-11.0%-1.11-13.0%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 testDOWNTREND2670.0%0.000%
hidden testEXPENSIVE8325.8%1.3515%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.8%-0.701%
hidden testLOW VOLATILITY42923.0%1.4415%
hidden testMEDIUM VOLATILITY248-17.9%-1.028%
hidden testNORMAL8002.3%0.159%
hidden testSIDEWAYS293-14.2%-1.1810%
hidden testUPTREND37121.9%1.0515%
trainDOWNTREND518-0.3%-0.790%
trainEXPENSIVE31111.1%1.0114%
trainEXTREME1004.2%1.550%
trainHIGH VOLATILITY6995.6%0.381%
trainLOW VOLATILITY7457.7%0.5723%
trainMEDIUM VOLATILITY568-8.5%-0.906%
trainNORMAL1,6010.6%0.0411%
trainSIDEWAYS592-8.0%-0.757%
trainUPTREND90210.7%0.6219%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13843.9%3.3115%
validationEXTREME14413.7%2.281%
validationHIGH VOLATILITY258-4.9%-0.660%
validationLOW VOLATILITY1839.6%0.6826%
validationMEDIUM VOLATILITY31527.8%1.7111%
validationNORMAL4742.6%0.1713%
validationSIDEWAYS206-14.1%-1.714%
validationUPTREND42528.6%1.7118%

Trades (full period)

latest 100 of 133
EntryExitEntry PxExit PxReturnDays
2026-05-272026-06-02$440.36$423.74-3.63%5
2026-05-222026-05-26$426.01$433.591.49%2
2026-05-142026-05-21$443.30$417.85-5.51%6
2025-12-152025-12-30$475.31$454.430.01%11
2025-11-062025-11-07$445.91$429.52-1.32%2
2025-11-032025-11-05$468.37$462.07-1.83%3
2025-10-242025-10-27$433.72$452.42-1.28%2
2025-10-092025-10-10$435.54$413.49-0.33%2
2025-10-072025-10-08$433.09$438.69-1.66%2
2025-09-082025-10-06$346.40$453.2515.03%21
2025-08-252025-09-03$346.60$334.09-2.82%7
2025-06-042025-06-05$332.05$284.70-2.23%2
2025-05-192025-06-03$342.09$344.271.98%11
2024-10-072024-10-08$240.83$244.50-3.31%2
2024-10-032024-10-04$240.66$250.08-2.12%2
2024-09-162024-09-20$226.78$238.253.42%5
2024-09-052024-09-09$230.17$216.27-2.37%3
2024-06-142024-07-12$178.01$248.2325.51%19
2023-07-202023-07-21$262.90$260.02-8.44%2
2023-07-182023-07-19$293.34$291.260.70%2
2023-07-142023-07-17$281.38$290.380.89%2
2023-07-122023-07-13$271.99$277.900.52%2
2023-07-102023-07-11$269.61$269.79-1.16%2
2023-07-052023-07-07$282.48$274.43-0.81%3
2023-06-302023-07-03$261.77$279.821.24%2
2023-06-282023-06-29$256.24$257.501.88%2
2023-05-312023-06-27$203.93$250.2116.57%19
2023-04-032023-04-06$194.77$185.06-8.05%4
2023-03-022023-03-03$190.90$197.79-3.60%2
2023-02-282023-03-01$205.71$202.77-0.67%2
2022-09-122022-09-23$304.42$275.33-3.28%10
2022-08-222022-08-23$289.91$296.45-2.10%2
2022-08-152022-08-19$309.32$296.670.46%5
2022-08-022022-08-12$300.59$300.03-2.17%9
2022-04-052022-04-11$363.75$325.31-6.42%5
2022-01-122022-01-13$368.74$343.852.22%2
2021-11-232021-11-24$369.68$372.00-2.58%2
2021-10-122021-11-10$268.57$355.9824.79%22
2021-10-082021-10-11$261.83$263.98-1.04%2
2021-09-272021-10-07$263.79$264.540.75%9
2021-09-232021-09-24$251.21$258.130.02%2
2021-09-072021-09-21$250.97$246.46-0.54%11
2021-08-262021-08-27$233.72$237.31-1.37%2
2021-08-242021-08-25$236.16$237.070.09%2
2021-08-032021-08-17$236.58$221.90-2.97%11
2021-02-042021-02-05$283.33$284.08-0.27%2
2021-02-022021-02-03$290.93$284.901.33%2
2021-01-282021-01-29$278.48$264.51-1.26%2
2021-01-262021-01-27$294.36$288.050.02%2
2021-01-122021-01-25$283.15$293.601.51%9
2021-01-052021-01-11$245.04$270.406.99%5
2020-12-312021-01-04$235.22$243.260.49%2
2020-12-292020-12-30$222.00$231.590.05%2
2020-12-242020-12-28$220.59$221.230.80%2
2020-12-182020-12-23$231.67$215.33-0.83%4
2020-12-102020-12-17$209.02$218.631.05%6
2020-11-192020-12-08$166.42$216.6310.56%13
2020-10-132020-10-20$148.88$140.65-0.97%6
2020-06-252020-06-26$65.73$63.980.86%2
2019-12-172020-01-22$25.27$37.9719.71%24
2019-11-222019-11-25$22.20$22.42-5.39%2
2019-10-162019-10-25$17.32$21.8813.88%8
2019-09-122019-09-25$16.39$15.25-8.28%10
2019-07-222019-07-26$17.05$15.20-9.77%5
2018-12-122018-12-18$24.44$22.47-2.45%5
2018-12-062018-12-07$24.20$23.860.44%2
2018-11-292018-11-30$22.74$23.37-1.26%2
2018-03-132018-03-15$22.79$21.71-3.38%3
2018-01-222018-02-05$23.44$22.21-1.15%11
2017-09-182017-09-25$25.67$23.00-3.47%6
2017-08-152017-08-18$24.16$23.16-1.24%4
2017-08-042017-08-07$23.79$23.680.94%2
2017-06-052017-06-14$23.15$25.383.53%8
2017-05-172017-05-18$20.41$20.87-1.30%2
2017-05-122017-05-16$21.65$21.13-0.87%3
2017-05-022017-05-04$21.26$19.70-1.79%3
2017-04-282017-05-01$20.94$21.520.56%2
2017-04-262017-04-27$20.68$20.58-0.48%2
2017-04-242017-04-25$20.54$20.920.21%2
2017-04-202017-04-21$20.17$20.37-0.42%2
2017-03-282017-04-04$18.50$20.254.00%6
2017-02-232017-02-24$17.07$17.13-3.37%2
2017-02-092017-02-22$17.95$18.232.89%9
2017-02-072017-02-08$17.17$17.47-0.16%2
2017-02-032017-02-06$16.76$17.18-0.15%2
2016-12-282017-02-02$14.65$16.7711.74%25
2016-07-262016-08-09$15.30$15.27-1.58%11
2016-04-272016-04-28$16.76$16.51-0.65%2
2016-04-252016-04-26$16.79$16.92-0.57%2
2016-04-212016-04-22$16.55$16.92-0.52%2
2016-04-192016-04-20$16.49$16.66-1.64%2
2016-04-152016-04-18$16.97$16.930.51%2
2016-04-042016-04-14$16.47$16.795.12%9
2016-03-282016-04-01$15.35$15.840.41%5
2015-08-062015-08-07$16.41$16.17-5.40%2
2015-07-202015-07-22$18.82$17.86-1.16%3
2015-06-222015-07-09$17.32$17.19-2.57%13
2015-06-182015-06-19$17.46$17.500.31%2
2015-06-102015-06-11$16.71$16.76-1.93%2
2015-06-082015-06-09$17.09$17.072.27%2