Strategy Zoo / S0786

MACDMomentum_V0786

ARCHIVEDmomentum

llmAdded trend regime gate (UPTREND) and disallowed HIGH volatility; added RSI filter to avoid extreme overbought entries; broadened exits to include price crossing below sma_20 and high RSI to reduce drawdowns; added position scaling rules to cut size when vol_pctile > 0.8 or when price is very near 52w high (reduce chance of buying tops). Aim: improve robustness and reduce overfitting/large drawdowns.

Fitness
0.3398
Generation
36
Complexity
10
Created
2026-09-26

Lineage

Parents (1)
MACDMomentum_V0005S0005 · gen 0ARCHIVEDllm

seed strategy

Children (0)
None

Strategy Logic (pseudocode)

# MACDMomentum_V0786  [momentum]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (macd_hist > 0.0 and close > sma_50 and rsi_14 < 80.0):
    position = 1.0
if long and (macd_hist < 0.0 or close < sma_20 or rsi_14 > 75.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR7.1%18.4%4.7%8.9%
Total Return73.0%65.8%18.5%249.2%
Sharpe0.430.820.320.49
Sortino0.310.640.250.37
Calmar0.230.720.210.29
Volatility21.4%24.1%22.3%22.2%
Max DD-30.4%-25.7%-22.1%-30.4%
Win Rate48.7%42.9%41.9%46.3%
Avg Win6.5%9.3%7.2%7.2%
Avg Loss-4.3%-3.2%-4.0%-4.0%
Payoff1.512.871.831.79
Expectancy1.0%2.1%0.7%1.2%
Profit Factor1.432.151.321.54
Trades762831136
Avg Holding Days6.56.47.76.7
Turnover19.218.717.018.6
Exposure20.9%20.0%22.8%21.2%

Growth of $100

MACDMomentum_V0786 vs TSLA Buy & Hold
MACDMomentum_V0786 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
20166.9%0.54-10.1%7
201716.7%0.98-16.2%20
20181.7%0.19-7.9%4
201914.4%0.61-22.4%7
202044.3%1.76-8.8%10
2021-12.7%-0.51-25.7%12
202216.0%0.73-16.6%5

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 testDOWNTREND2724.3%0.3113%
hidden testEXPENSIVE8347.4%1.7922%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.3%-0.152%
hidden testLOW VOLATILITY43232.1%1.4033%
hidden testMEDIUM VOLATILITY250-26.8%-1.0027%
hidden testNORMAL8053.3%0.1524%
hidden testSIDEWAYS293-8.5%-0.3138%
hidden testUPTREND37121.4%0.9318%
trainDOWNTREND518-6.5%-0.4113%
trainEXPENSIVE31142.2%1.8321%
trainEXTREME10011.6%1.551%
trainHIGH VOLATILITY69914.0%0.662%
trainLOW VOLATILITY74525.9%1.3136%
trainMEDIUM VOLATILITY568-18.9%-0.8024%
trainNORMAL1,6012.6%0.1222%
trainSIDEWAYS5922.3%0.1025%
trainUPTREND90222.6%0.9723%
validationDOWNTREND12530.6%1.418%
validationEXPENSIVE13874.5%2.4828%
validationEXTREME14424.5%1.841%
validationHIGH VOLATILITY258-5.4%-0.281%
validationLOW VOLATILITY183-13.0%-0.7734%
validationMEDIUM VOLATILITY31559.3%1.9527%
validationNORMAL4742.3%0.0923%
validationSIDEWAYS206-3.6%-0.1622%
validationUPTREND42527.8%1.0823%

Trades (full period)

latest 100 of 137
EntryExitEntry PxExit PxReturnDays
2026-09-18—$364.27—3.10%6OPEN
2026-09-012026-09-16$356.09$358.08-3.29%11
2026-07-012026-07-06$425.30$419.77-6.64%3
2026-05-282026-06-02$442.10$423.74-5.75%4
2026-04-162026-05-21$388.90$417.856.24%26
2025-12-042025-12-30$454.53$454.432.68%18
2025-11-042025-11-05$444.26$462.07-5.34%2
2025-09-262025-10-06$440.40$453.251.32%7
2025-09-232025-09-25$425.85$423.391.77%3
2025-09-192025-09-22$426.07$434.212.01%2
2025-09-172025-09-18$425.86$416.850.80%2
2025-09-082025-09-16$346.40$421.6216.64%7
2025-08-252025-09-03$346.60$334.09-3.32%7
2025-08-082025-08-22$329.65$340.01-0.87%11
2025-07-292025-08-01$321.20$302.63-5.51%4
2025-07-212025-07-25$328.49$316.06-7.57%5
2025-05-192025-06-03$342.09$344.27-2.28%11
2025-05-122025-05-13$318.38$334.076.54%2
2024-09-232024-10-04$250.00$250.080.81%10
2024-09-162024-09-20$226.78$238.255.71%5
2024-09-062024-09-09$210.73$216.27-8.64%2
2024-06-172024-07-03$187.44$246.3929.66%12
2024-05-292024-05-30$176.19$178.79-0.52%2
2023-12-152024-01-02$253.50$248.42-1.22%11
2023-11-162023-12-13$233.59$239.29-2.60%19
2023-10-062023-10-16$260.53$253.92-3.63%7
2023-08-302023-09-22$256.90$244.88-0.77%17
2023-07-062023-07-07$276.54$274.43-2.30%2
2023-06-222023-06-27$264.61$250.21-7.28%4
2023-06-062023-06-07$221.31$224.571.50%2
2023-05-222023-06-05$188.87$217.6118.55%10
2023-03-242023-04-06$190.41$185.06-3.68%10
2022-09-132022-09-23$292.13$275.33-5.39%9
2022-08-162022-08-19$306.56$296.67-2.28%4
2022-07-192022-08-12$245.53$300.0318.92%19
2022-07-112022-07-12$234.34$233.07-6.74%2
2022-03-212022-04-11$307.05$325.3113.04%16
2021-12-282022-01-04$362.82$383.209.46%6
2021-11-092021-11-10$341.17$355.98-12.18%2
2021-10-202021-10-21$288.60$298.00-0.02%2
2021-10-132021-10-18$270.36$290.044.42%4
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-09-282021-10-07$259.19$264.54-1.29%8
2021-08-312021-09-21$245.24$246.46-0.30%15
2021-08-022021-08-17$236.56$221.90-0.35%12
2021-07-132021-07-15$222.85$216.87-4.91%3
2021-06-242021-07-12$226.61$228.57-0.14%12
2021-04-142021-04-28$244.08$231.47-7.74%11
2021-01-122021-01-25$283.15$293.604.17%9
2021-01-052021-01-08$245.04$293.3411.60%4
2020-12-182020-12-23$231.67$215.33-2.56%4
2020-12-102020-12-17$209.02$218.632.82%6
2020-12-012020-12-08$194.92$216.6312.84%6
2020-11-272020-11-30$195.25$189.201.85%2
2020-11-182020-11-25$162.21$191.3325.52%6
2020-11-092020-11-10$140.42$136.79-2.22%2
2020-10-142020-10-20$153.77$140.65-3.73%5
2020-01-162020-01-22$34.23$37.975.32%4
2020-01-102020-01-13$31.88$34.99-0.86%2
2020-01-062020-01-07$30.10$31.271.72%2
2019-12-312020-01-03$27.89$29.533.55%3
2019-12-182019-12-19$26.21$26.943.53%2
2019-12-162019-12-17$25.43$25.276.24%2
2019-10-112019-10-25$16.53$21.8822.21%11
2019-10-022019-10-04$16.21$15.43-4.96%3
2019-09-112019-09-25$16.47$15.25-5.42%11
2019-07-012019-07-26$15.14$15.202.20%19
2019-03-012019-03-04$19.65$19.02-8.04%2
2018-12-112018-12-18$24.45$22.47-4.77%6
2018-06-042018-06-07$19.78$21.079.27%4
2018-03-142018-03-15$21.78$21.71-4.64%2
2018-01-112018-02-05$22.53$22.212.47%17
2017-12-122017-12-27$22.74$20.78-3.72%11
2017-10-182017-10-23$23.98$22.47-3.19%4
2017-10-122017-10-17$23.71$23.72-1.33%4
2017-09-122017-09-25$24.18$23.00-3.66%10
2017-08-152017-08-18$24.16$23.16-3.46%4
2017-08-042017-08-07$23.79$23.682.63%2
2017-06-122017-06-14$23.93$25.385.00%3
2017-06-052017-06-09$23.15$23.828.66%5
2017-05-152017-05-16$21.06$21.13-2.95%2
2017-05-022017-05-04$21.26$19.70-3.85%3
2017-04-202017-04-21$20.17$20.37-1.18%2
2017-03-242017-04-04$17.54$20.2516.94%8
2017-03-202017-03-22$17.46$17.00-4.33%3
2017-02-172017-02-22$18.15$18.232.93%3
2017-01-312017-02-01$16.80$16.620.32%2
2017-01-272017-01-30$16.86$16.71-0.03%2
2017-01-202017-01-23$16.32$16.590.20%2
2017-01-182017-01-19$15.89$16.250.98%2
2017-01-102017-01-17$15.32$15.712.59%5
2016-12-292017-01-09$14.31$15.424.01%7
2016-12-142016-12-28$13.25$14.6510.57%10
2016-07-222016-08-09$14.82$15.272.36%13
2016-06-082016-06-13$15.70$14.52-6.02%4
2016-04-072016-04-14$17.15$16.79-4.30%6
2016-04-042016-04-06$16.47$17.697.31%3
2016-03-222016-04-01$15.62$15.84-3.78%8
2016-03-172016-03-21$15.09$15.894.66%3
2015-12-182016-01-05$15.36$14.90-4.47%11