Strategy Zoo / S0501

MACDMomentum_V0501

ARCHIVEDhybrid

llmAdded regime gates to focus entries in UPTREND and non-extreme volatility/bubble; simplified and consolidated entry into two robust paths (volume breakout OR momentum-with-trend using MACD + price over SMA50 + SMA50>SMA200); strengthened breakout volume threshold; improved exit to include price crossing below SMA50 and extreme volatility spikes (vol_pctile>0.95) in addition to MACD flip; implemented volatility-based position sizing (full size in low vol, reduced size in high vol) and lower base position to limit drawdown.

Fitness
0.3526
Generation
23
Complexity
15
Created
2026-09-22

Lineage

Parents (1)
MACDMomentum_V0334S0334 · gen 15ARCHIVEDllm

changed rel_volume threshold 1.5045 -> 1.0207

Children (0)
None

Strategy Logic (pseudocode)

# MACDMomentum_V0501  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and ((breakout_50 == 1 and rel_volume > 1.05) or (macd_hist > 0.0 and close > sma_50 and sma_50 > sma_200)):
    position = 0.6
if long and (macd_hist < 0.0 or close < sma_50 or vol_pctile > 0.95):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR3.9%17.1%3.2%6.4%
Total Return35.7%60.5%12.2%148.8%
Sharpe0.481.310.360.67
Sortino0.290.850.160.38
Calmar0.330.950.230.36
Volatility8.7%12.6%9.9%10.0%
Max DD-11.8%-17.9%-13.6%-17.9%
Win Rate39.0%53.3%42.9%42.9%
Avg Win4.4%8.3%6.2%6.2%
Avg Loss-1.8%-2.1%-3.0%-2.1%
Payoff2.434.012.082.99
Expectancy0.6%3.5%1.0%1.5%
Profit Factor1.554.581.562.24
Trades41151470
Avg Holding Days6.37.76.76.9
Turnover6.26.04.55.7
Exposure6.8%8.0%5.2%6.6%

Growth of $100

MACDMomentum_V0501 vs TSLA Buy & Hold
MACDMomentum_V0501 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
20161.3%0.29-4.0%3
20177.8%0.78-8.2%14
2018-3.7%-0.96-4.6%3
20199.5%1.61-2.3%0
202032.1%2.00-5.3%6
202129.9%1.73-12.2%7
2022-6.5%-1.55-6.5%1

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 testEXPENSIVE8317.0%1.1114%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.9%-0.691%
hidden testLOW VOLATILITY42913.6%1.437%
hidden testMEDIUM VOLATILITY249-4.0%-0.336%
hidden testNORMAL8012.4%0.265%
hidden testSIDEWAYS293-7.6%-1.401%
hidden testUPTREND37115.0%1.0012%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31125.3%1.7216%
trainEXTREME1007.0%1.551%
trainHIGH VOLATILITY6996.7%0.801%
trainLOW VOLATILITY7458.2%0.9014%
trainMEDIUM VOLATILITY568-4.0%-0.465%
trainNORMAL1,601-0.1%-0.015%
trainSIDEWAYS592-1.3%-0.650%
trainUPTREND90210.2%0.7915%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13854.6%2.8020%
validationEXTREME14423.1%2.281%
validationHIGH VOLATILITY258-7.1%-1.000%
validationLOW VOLATILITY18316.8%2.0512%
validationMEDIUM VOLATILITY31535.8%2.0712%
validationNORMAL4743.5%0.336%
validationSIDEWAYS2060.0%0.000%
validationUPTREND42529.5%1.7514%

Trades (full period)

70 trades
EntryExitEntry PxExit PxReturnDays
2025-12-042025-12-30$454.53$454.431.72%18
2025-11-042025-11-05$444.26$462.07-3.21%2
2025-09-122025-10-06$395.94$453.259.73%17
2025-07-292025-07-30$321.20$319.04-0.93%2
2025-07-212025-07-25$328.49$316.06-4.53%5
2025-05-282025-06-03$356.90$344.27-3.48%5
2024-10-032024-10-04$240.66$250.08-2.13%2
2024-09-232024-09-27$250.00$260.463.88%5
2024-09-162024-09-20$226.78$238.253.45%5
2024-09-062024-09-09$210.73$216.27-5.18%2
2024-07-022024-07-12$231.26$248.238.84%8
2023-08-302023-09-05$256.90$256.49-2.95%4
2023-07-062023-07-07$276.54$274.43-1.38%2
2023-06-022023-06-27$213.97$250.219.52%17
2022-04-052022-04-11$363.75$325.31-6.48%5
2021-12-282022-01-03$362.82$399.93-2.17%5
2021-10-132021-11-10$270.36$355.9815.97%21
2021-10-082021-10-11$261.83$263.98-0.73%2
2021-09-272021-10-07$263.79$264.540.54%9
2021-08-312021-09-21$245.24$246.46-0.14%15
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-122021-01-25$283.15$293.602.52%9
2021-01-052021-01-11$245.04$270.4011.92%5
2020-12-182020-12-23$231.67$215.33-1.45%4
2020-12-102020-12-17$209.02$218.631.74%6
2020-11-192020-12-08$166.42$216.6318.20%13
2020-11-092020-11-10$140.42$136.79-1.33%2
2020-10-142020-10-20$153.77$140.65-2.23%5
2019-12-132020-01-22$23.89$37.9728.95%26
2018-12-112018-12-18$24.45$22.47-2.84%6
2018-12-072018-12-10$23.86$24.34-0.96%2
2018-12-042018-12-06$23.98$24.200.08%2
2017-10-182017-10-20$23.98$23.01-0.78%3
2017-10-122017-10-17$23.71$23.72-0.79%4
2017-09-182017-09-25$25.67$23.00-4.69%6
2017-08-152017-08-18$24.16$23.16-2.08%4
2017-08-042017-08-07$23.79$23.681.58%2
2017-06-052017-06-14$23.15$25.386.18%8
2017-05-152017-05-16$21.06$21.13-1.77%2
2017-05-022017-05-04$21.26$19.70-2.32%3
2017-04-262017-04-27$20.68$20.58-0.81%2
2017-04-202017-04-21$20.17$20.37-0.71%2
2017-03-242017-04-04$17.54$20.259.94%8
2017-03-202017-03-22$17.46$17.00-2.60%3
2017-02-102017-02-22$17.95$18.231.74%8
2017-01-052017-02-02$15.12$16.775.69%20
2016-07-262016-08-09$15.30$15.27-1.11%11
2016-06-082016-06-09$15.70$15.290.70%2
2016-04-052016-04-14$17.03$16.791.76%8
2015-07-212015-07-22$17.78$17.86-3.41%2
2015-06-222015-07-09$17.32$17.19-1.76%13
2015-06-182015-06-19$17.46$17.500.22%2
2015-06-092015-06-10$17.07$16.71-0.19%2
2015-05-122015-05-22$16.32$16.521.42%9
2014-10-082014-10-10$17.29$15.79-0.71%3
2014-09-022014-09-12$18.94$18.612.28%9
2014-07-312014-08-25$14.89$17.507.10%18
2014-06-232014-07-07$15.81$14.84-0.16%10
2014-02-132014-02-26$13.31$16.8715.66%9
2013-09-202013-10-04$12.23$12.07-1.58%11
2013-09-092013-09-10$10.71$11.09-2.37%2
2013-03-272013-04-02$2.54$2.969.49%4
2013-03-082013-03-18$2.56$2.34-4.74%7
2013-01-232013-02-14$2.40$2.555.39%17
2013-01-032013-01-04$2.32$2.29-1.12%2
2012-11-292012-12-14$2.25$2.250.61%12
2012-03-272012-04-05$2.53$2.30-3.91%8
2012-03-132012-03-16$2.41$2.35-1.80%4
2012-02-232012-02-29$2.30$2.23-0.83%5
2012-02-212012-02-22$2.30$2.28-0.93%2