Strategy Zoo / S0919

MACDMomentum_V0919

ARCHIVEDmomentum

llmAdded trend gate to only trade in UPTREND and restricted high-volatility regimes; strengthened entry with RSI < 75 and positive sma_50_slope to avoid overbought/weak trends; broadened exit to include cross below SMA50 and 5-day drawdown (< -7%) for quicker loss cuts; reduced base position to 0.8 and added position scaling rules to cut size in high vol (vol_pctile>0.8) and when very close to 52w highs to reduce risk/bubble exposure.

Fitness
0.3686
Generation
42
Complexity
10
Created
2026-09-30

Lineage

Parents (1)
MACDMomentum_V0005S0005 · gen 0ARCHIVEDllm

seed strategy

Children (0)
None

Strategy Logic (pseudocode)

# MACDMomentum_V0919  [momentum]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and (macd_hist > 0.0 and close > sma_50 and rsi_14 < 75.0 and sma_50_slope > 0.0):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or ret_5d < -0.07):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR7.0%24.4%3.3%9.6%
Total Return72.2%92.6%12.8%282.7%
Sharpe0.521.150.280.63
Sortino0.310.890.160.39
Calmar0.240.810.130.30
Volatility15.3%21.0%15.7%16.7%
Max DD-29.9%-30.1%-25.5%-32.1%
Win Rate38.1%33.3%30.0%35.0%
Avg Win8.5%17.8%11.7%11.9%
Avg Loss-3.2%-2.5%-3.6%-3.2%
Payoff2.627.193.213.77
Expectancy1.2%4.3%1.0%2.1%
Profit Factor1.613.591.382.03
Trades42182080
Avg Holding Days8.29.77.18.4
Turnover8.59.68.68.7
Exposure12.4%16.5%10.4%12.8%

Growth of $100

MACDMomentum_V0919 vs TSLA Buy & Hold
MACDMomentum_V0919 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
20164.1%0.57-5.3%3
201716.1%1.16-10.8%13
2018-8.3%-1.09-9.7%3
201911.0%0.60-16.0%3
202078.0%2.35-7.1%7
202129.6%1.26-16.0%6
2022-16.7%-1.61-16.7%4

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 testDOWNTREND2740.0%0.000%
hidden testEXPENSIVE8335.6%1.5621%
hidden testEXTREME48-19.2%-2.923%
hidden testHIGH VOLATILITY254-16.7%-1.282%
hidden testLOW VOLATILITY43427.6%1.7515%
hidden testMEDIUM VOLATILITY250-14.3%-0.8111%
hidden testNORMAL8072.7%0.1810%
hidden testSIDEWAYS293-17.1%-1.1811%
hidden testUPTREND37124.7%1.1618%
trainDOWNTREND5182.2%0.741%
trainEXPENSIVE31123.2%1.0719%
trainEXTREME10033.5%1.7919%
trainHIGH VOLATILITY6992.6%0.151%
trainLOW VOLATILITY74520.9%1.5424%
trainMEDIUM VOLATILITY568-2.3%-0.1510%
trainNORMAL1,6013.4%0.2511%
trainSIDEWAYS592-3.8%-0.338%
trainUPTREND90219.0%0.9222%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13845.4%1.5728%
validationEXTREME14485.8%3.4115%
validationHIGH VOLATILITY2584.5%0.321%
validationLOW VOLATILITY18321.0%1.2927%
validationMEDIUM VOLATILITY31541.8%1.5323%
validationNORMAL474-1.0%-0.0614%
validationSIDEWAYS206-8.9%-0.914%
validationUPTREND42547.0%1.7427%

Trades (full period)

80 trades
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-282026-06-02$442.10$423.74-4.61%4
2026-05-202026-05-21$417.26$417.852.44%2
2026-05-142026-05-19$443.30$404.11-6.52%4
2025-12-042025-12-30$454.53$454.432.22%18
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-09-082025-10-06$346.40$453.2517.65%21
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-05-192025-06-03$342.09$344.27-1.77%11
2024-12-192024-12-23$436.17$430.60-3.63%3
2024-10-032024-10-04$240.66$250.08-2.84%2
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-06-172024-07-12$187.44$248.2327.57%18
2024-05-292024-05-30$176.19$178.79-0.41%2
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-05-312023-06-27$203.93$250.2115.56%19
2023-03-242023-04-06$190.41$185.06-2.88%10
2022-09-132022-09-23$292.13$275.33-4.29%9
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-022022-08-12$300.59$300.03-2.97%9
2022-04-052022-04-11$363.75$325.31-8.58%5
2021-12-282022-01-03$362.82$399.93-2.88%5
2021-10-132021-11-10$270.36$355.9821.37%21
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-282021-10-07$259.19$264.54-1.03%8
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-08-022021-08-17$236.56$221.90-0.24%12
2021-01-052021-01-25$245.04$293.6012.64%14
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-11-192020-12-17$166.42$218.6321.91%20
2020-11-092020-11-10$140.42$136.79-1.78%2
2020-10-142020-10-20$153.77$140.65-2.98%5
2020-07-022020-07-06$80.58$91.446.20%2
2020-06-032020-06-25$58.86$65.737.16%17
2019-12-162020-01-31$25.43$43.3759.48%32
2019-10-162019-10-25$17.32$21.8812.82%8
2019-09-112019-09-25$16.47$15.25-4.29%11
2019-07-222019-07-26$17.05$15.20-9.19%5
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-03-142018-03-15$21.78$21.71-3.72%2
2018-01-182018-02-05$22.97$22.21-0.92%13
2017-10-182017-10-20$23.98$23.01-1.04%3
2017-10-122017-10-17$23.71$23.72-1.06%4
2017-09-182017-09-25$25.67$23.00-6.22%6
2017-08-152017-08-18$24.16$23.16-2.77%4
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-052017-06-27$23.15$24.168.65%17
2017-05-152017-05-16$21.06$21.13-2.36%2
2017-05-022017-05-04$21.26$19.70-3.09%3
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-242017-04-04$17.54$20.2513.40%8
2017-03-202017-03-22$17.46$17.00-3.46%3
2017-02-172017-02-22$18.15$18.232.34%3
2016-12-302017-02-02$14.25$16.7712.55%23
2016-07-262016-08-09$15.30$15.27-1.49%11
2016-04-042016-04-14$16.47$16.795.55%9
2016-03-282016-04-01$15.35$15.840.55%5
2015-12-292016-01-05$15.81$14.90-2.04%5
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-06-222015-07-09$17.32$17.19-2.40%13
2015-04-142015-05-22$13.83$16.5213.35%29
2014-10-082014-10-10$17.29$15.79-0.95%3
2014-09-022014-09-12$18.94$18.613.01%9
2014-07-312014-08-25$14.89$17.509.51%18
2014-06-232014-07-07$15.81$14.84-0.24%10
2014-02-132014-02-26$13.31$16.8721.13%9
2013-09-232013-10-04$12.07$12.07-4.52%10
2013-09-092013-09-10$10.71$11.09-3.16%2
2013-07-022013-07-17$7.85$8.02-5.52%11
2013-05-012013-05-08$3.55$3.722.19%6
2013-03-272013-04-02$2.54$2.9612.65%4
2013-03-082013-03-18$2.56$2.34-6.31%7
2013-01-232013-02-14$2.40$2.557.21%17
2012-11-122012-12-14$2.07$2.258.50%24
2012-03-282012-04-05$2.52$2.30-6.33%7
2012-03-142012-03-16$2.35$2.35-2.58%3
2012-02-232012-02-29$2.30$2.23-1.11%5