Strategy Zoo / S0859

MACDMomentum_V0859

ARCHIVEDhybrid

llmAdded regime gates to avoid entries in downtrends, high volatility, or bubble states; tightened entry by requiring either breakout_50 or sma_50>sma_200 (trend confirmation) in addition to existing momentum/breakout signals; improved exit to include sma_50 crossing below sma_200 (faster structural exit) as well as macd_hist < 0; lowered base_position to 0.6 and added position scaling rules: full size in low vol or breakouts, reduce to 0.3 in high vol or rapid vol spikes — aims to reduce drawdown and improve walk-forward robustness.

Fitness
0.2117
Generation
39
Complexity
22
Created
2026-09-29

Lineage

Parents (1)
MACDMomentum_V0272S0272 · gen 13ARCHIVEDllm

entry = MACDMomentum_V0005 OR VolumeBreakout_V0185

Children (0)
None

Strategy Logic (pseudocode)

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

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.6%7.0%3.0%2.5%
Total Return4.6%22.5%11.7%43.2%
Sharpe0.110.660.350.31
Sortino0.060.370.200.17
Calmar0.030.570.270.11
Volatility7.7%11.2%10.0%9.1%
Max DD-20.6%-12.2%-11.3%-22.7%
Win Rate49.1%42.9%59.3%51.0%
Avg Win2.0%5.1%2.1%2.4%
Avg Loss-1.7%-1.1%-2.0%-1.6%
Payoff1.174.811.071.45
Expectancy0.1%1.6%0.4%0.4%
Profit Factor1.133.601.551.51
Trades57142798
Avg Holding Days4.47.45.15.0
Turnover8.65.68.78.0
Exposure5.8%7.1%7.1%6.4%

Growth of $100

MACDMomentum_V0859 vs TSLA Buy & Hold
MACDMomentum_V0859 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.4%-0.21-6.5%6
20173.2%0.63-3.3%10
2018-5.5%-1.35-5.4%5
20194.5%1.12-0.7%5
20200.0%0.000.0%0
20215.0%0.40-12.2%9
20227.9%0.90-6.4%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 testDOWNTREND2730.0%0.000%
hidden testEXPENSIVE8313.0%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY2543.1%0.391%
hidden testLOW VOLATILITY4336.7%0.6810%
hidden testMEDIUM VOLATILITY250-1.6%-0.149%
hidden testNORMAL8062.7%0.268%
hidden testSIDEWAYS293-4.0%-0.3213%
hidden testUPTREND37111.9%1.058%
trainDOWNTREND518-0.0%-0.700%
trainEXPENSIVE3116.6%1.631%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.9%0.630%
trainLOW VOLATILITY7455.5%0.6711%
trainMEDIUM VOLATILITY568-9.0%-1.046%
trainNORMAL1,601-0.2%-0.027%
trainSIDEWAYS5921.1%0.147%
trainUPTREND9021.2%0.138%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2580.8%0.070%
validationLOW VOLATILITY1837.3%0.9914%
validationMEDIUM VOLATILITY31512.8%0.978%
validationNORMAL47411.8%0.8311%
validationSIDEWAYS2067.5%0.7110%
validationUPTREND4259.5%0.738%

Trades (full period)

98 trades
EntryExitEntry PxExit PxReturnDays
2026-05-142026-05-15$443.30$422.24-0.39%2
2026-05-112026-05-12$445.00$433.452.21%2
2025-12-042025-12-30$454.53$454.431.72%18
2025-09-122025-09-15$395.94$410.044.29%2
2025-08-272025-08-28$349.60$345.98-0.47%2
2025-07-212025-08-01$328.49$302.63-3.93%10
2025-05-122025-05-13$318.38$334.073.93%2
2024-09-232024-10-04$250.00$250.080.56%10
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-102024-07-11$263.26$241.030.09%2
2024-07-082024-07-09$252.94$262.330.22%2
2024-07-032024-07-05$246.39$251.523.80%2
2024-07-012024-07-02$209.86$231.263.51%2
2024-06-272024-06-28$197.42$197.880.20%2
2023-12-152024-01-02$253.50$248.42-0.67%11
2023-11-162023-12-14$233.59$251.05-0.92%20
2023-10-062023-10-17$260.53$254.85-1.52%8
2023-08-302023-09-25$256.90$246.99-2.79%18
2023-07-062023-07-07$276.54$274.43-1.38%2
2023-06-262023-06-27$241.05$250.21-3.75%2
2023-06-202023-06-21$274.45$259.463.08%2
2023-06-142023-06-15$256.79$255.90-0.56%2
2023-06-122023-06-13$249.83$258.711.21%2
2023-06-082023-06-09$234.86$244.402.63%2
2023-06-062023-06-07$221.31$224.570.90%2
2023-06-022023-06-05$213.97$217.611.74%2
2022-08-162022-08-17$306.56$304.00-0.65%2
2022-08-042022-08-05$308.63$288.170.12%2
2022-08-022022-08-03$300.59$307.400.55%2
2022-03-212022-04-11$307.05$325.317.90%16
2021-12-282022-01-04$362.82$383.205.78%6
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-282021-10-07$259.19$264.54-0.77%8
2021-08-312021-09-21$245.24$246.46-0.14%15
2021-08-132021-08-16$239.06$228.72-0.54%2
2021-08-052021-08-06$238.21$233.030.19%2
2021-08-032021-08-04$236.58$236.97-0.11%2
2021-06-242021-07-12$226.61$228.57-0.04%12
2021-04-142021-04-29$244.08$225.67-5.47%12
2019-12-162019-12-17$25.43$25.273.75%2
2019-10-172019-10-18$17.46$17.130.39%2
2019-10-152019-10-16$17.19$17.320.10%2
2019-07-242019-07-25$17.66$15.250.97%2
2019-07-222019-07-23$17.05$17.34-0.70%2
2018-12-112018-12-18$24.45$22.47-2.84%6
2018-02-012018-02-02$23.28$22.92-0.98%2
2018-01-242018-01-25$23.06$22.51-1.29%2
2018-01-222018-01-23$23.44$23.520.14%2
2018-01-182018-01-19$22.97$23.33-0.57%2
2017-12-122017-12-13$22.74$22.602.09%2
2017-10-122017-10-23$23.71$22.47-1.72%8
2017-03-242017-03-28$17.54$18.503.49%3
2017-03-202017-03-23$17.46$16.99-1.59%4
2017-02-012017-02-02$16.62$16.77-0.76%2
2017-01-232017-01-24$16.59$16.970.91%2
2017-01-192017-01-20$16.25$16.321.24%2
2017-01-172017-01-18$15.71$15.89-0.67%2
2017-01-092017-01-10$15.42$15.320.47%2
2017-01-052017-01-06$15.12$15.27-0.18%2
2016-12-282016-12-29$14.65$14.31-0.06%2
2016-07-222016-08-09$14.82$15.271.45%13
2016-06-082016-06-16$15.70$14.53-3.90%7
2016-04-072016-04-08$17.15$16.67-1.98%2
2016-04-052016-04-06$17.03$17.691.94%2
2016-03-212016-03-22$15.89$15.621.32%2
2015-12-312016-01-04$16.00$14.890.36%2
2015-09-212015-09-30$17.61$16.56-3.34%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-05-182015-05-19$16.58$16.48-0.14%2
2015-05-122015-05-13$16.32$16.211.19%2
2015-05-082015-05-11$15.77$15.97-0.17%2
2015-05-062015-05-07$15.36$15.79-0.77%2
2015-04-302015-05-01$15.07$15.07-1.77%2
2015-04-282015-04-29$15.37$15.50-0.40%2
2014-11-122014-12-01$16.61$15.44-1.65%13
2014-10-082014-10-13$17.29$14.97-5.37%4
2014-09-022014-09-12$18.94$18.612.28%9
2014-07-312014-08-25$14.89$17.507.10%18
2014-05-282014-07-07$14.02$14.844.99%28
2014-01-072014-01-08$9.96$10.090.84%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-02-122013-02-14$2.53$2.55-0.07%3
2013-01-232013-01-24$2.40$2.471.26%2
2012-12-122012-12-13$2.35$2.24-0.15%2
2012-12-032012-12-04$2.31$2.261.30%2
2012-11-292012-11-30$2.25$2.250.71%2
2012-11-202012-11-21$2.20$2.160.03%2
2012-07-162012-07-17$2.40$2.222.87%2
2012-06-272012-07-03$2.13$2.04-2.42%5
2012-06-192012-06-25$2.14$2.213.60%5
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-152012-02-29$2.24$2.231.06%10