Strategy Zoo / S0783

MACDMomentum_V0783

ARCHIVEDhybrid

llmAdded regime gates to restrict trading to up/sideways markets and non-high volatility & normal bubble; tightened entry to require either MACD momentum + price above SMA50 or volume-backed 50-day breakout with trend confirmation; strengthened exit to include price crossing below SMA50 or a 15% drawdown stop in addition to MACD flip; lowered base size and added position rules to scale up to full size on strong breakout (rel_volume>1.5) and to reduce size near 52-week highs.

Fitness
0.1616
Generation
36
Complexity
18
Created
2026-09-26

Lineage

Parents (1)
MACDMomentum_V0272S0272 · gen 13ARCHIVEDllm

entry = MACDMomentum_V0005 OR VolumeBreakout_V0185

Children (0)
None

Strategy Logic (pseudocode)

# MACDMomentum_V0783  [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 and sma_50 > 0.0) or (breakout_50 == 1 and rel_volume > 1.5 and (close > sma_50 or sma_50 > sma_200))):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.6%1.0%2.2%1.1%
Total Return5.1%3.1%8.4%17.4%
Sharpe0.110.140.220.15
Sortino0.070.080.150.09
Calmar0.020.070.080.04
Volatility12.0%13.1%14.4%12.9%
Max DD-25.3%-14.6%-26.4%-26.4%
Win Rate38.8%15.4%31.0%33.0%
Avg Win4.5%13.9%7.1%5.9%
Avg Loss-2.6%-2.0%-2.6%-2.5%
Payoff1.776.822.792.41
Expectancy0.2%0.4%0.5%0.3%
Profit Factor1.121.241.261.19
Trades49132991
Avg Holding Days7.09.86.67.3
Turnover8.66.110.98.7
Exposure10.3%10.6%12.2%10.8%

Growth of $100

MACDMomentum_V0783 vs TSLA Buy & Hold
MACDMomentum_V0783 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
20160.7%0.12-5.0%5
20179.2%1.17-3.8%7
2018-4.8%-0.68-8.5%3
2019-2.7%-0.06-17.3%5
20200.0%0.000.0%0
20212.4%0.22-14.1%8
20220.8%0.12-14.6%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 testDOWNTREND272-2.5%-1.391%
hidden testEXPENSIVE8330.0%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.6%-0.631%
hidden testLOW VOLATILITY43212.1%0.7919%
hidden testMEDIUM VOLATILITY250-1.2%-0.0811%
hidden testNORMAL8050.6%0.0414%
hidden testSIDEWAYS293-22.3%-1.3422%
hidden testUPTREND37127.5%1.6013%
trainDOWNTREND518-5.6%-1.211%
trainEXPENSIVE3119.0%1.831%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.9%0.331%
trainLOW VOLATILITY74511.4%1.0219%
trainMEDIUM VOLATILITY568-15.1%-1.1510%
trainNORMAL1,601-0.1%-0.0113%
trainSIDEWAYS592-7.9%-0.5715%
trainUPTREND90211.4%0.8412%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-8.3%-1.000%
validationLOW VOLATILITY183-1.2%-0.1024%
validationMEDIUM VOLATILITY31512.0%0.7311%
validationNORMAL4743.0%0.1817%
validationSIDEWAYS206-3.9%-0.2515%
validationUPTREND4255.2%0.3712%

Trades (full period)

91 trades
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-05-282026-06-02$442.10$423.74-4.03%4
2026-05-082026-05-21$428.35$417.850.88%10
2026-04-202026-04-21$392.50$386.42-1.56%2
2025-12-042025-12-30$454.53$454.431.98%18
2025-09-082025-09-15$346.40$410.048.78%6
2025-08-252025-09-03$346.60$334.09-2.32%7
2025-08-112025-08-21$339.03$320.11-1.34%9
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-212025-07-25$328.49$316.06-5.29%5
2025-06-022025-06-03$342.69$344.27-0.90%2
2025-05-222025-05-28$341.04$356.905.75%4
2025-05-122025-05-13$318.38$334.074.58%2
2024-09-232024-10-04$250.00$250.080.63%10
2024-09-162024-09-20$226.78$238.254.02%5
2024-09-062024-09-09$210.73$216.27-6.05%2
2024-06-172024-07-12$187.44$248.2323.89%18
2024-05-292024-05-30$176.19$178.79-0.36%2
2023-12-152024-01-02$253.50$248.42-0.80%11
2023-11-292023-12-14$244.14$251.05-2.24%12
2023-11-222023-11-24$234.21$235.45-2.17%2
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-10-062023-10-17$260.53$254.85-1.78%8
2023-09-122023-09-22$267.48$244.88-4.72%9
2023-09-062023-09-07$251.92$251.49-1.39%2
2023-08-302023-09-05$256.90$256.49-3.44%4
2023-07-062023-07-07$276.54$274.43-1.61%2
2023-05-312023-06-27$203.93$250.2113.57%19
2023-03-242023-04-06$190.41$185.06-2.49%10
2022-09-132022-09-23$292.13$275.33-3.75%9
2022-08-162022-08-19$306.56$296.67-1.60%4
2022-08-022022-08-12$300.59$300.03-2.57%9
2022-03-212022-04-11$307.05$325.319.20%16
2021-12-282022-01-03$362.82$399.93-2.52%5
2021-10-132021-11-10$270.36$355.9818.67%21
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-282021-10-07$259.19$264.54-0.90%8
2021-08-312021-09-21$245.24$246.46-0.18%15
2021-08-022021-08-17$236.56$221.90-0.20%12
2021-07-132021-07-15$222.85$216.87-3.45%3
2021-06-242021-07-12$226.61$228.57-0.06%12
2021-04-142021-04-29$244.08$225.67-6.38%12
2019-12-162019-12-17$25.43$25.274.37%2
2019-10-152019-10-25$17.19$21.8811.52%9
2019-09-112019-09-25$16.47$15.25-3.73%11
2019-07-222019-07-26$17.05$15.20-8.01%5
2019-03-012019-03-04$19.65$19.02-5.63%2
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-03-142018-03-15$21.78$21.71-3.25%2
2018-01-112018-02-05$22.53$22.211.76%17
2017-12-122017-12-26$22.74$21.15-0.90%10
2017-10-182017-10-20$23.98$23.01-0.91%3
2017-10-122017-10-17$23.71$23.72-0.93%4
2017-03-242017-03-28$17.54$18.504.08%3
2017-03-202017-03-22$17.46$17.00-3.03%3
2017-01-312017-02-02$16.80$16.77-0.53%3
2016-12-282017-01-25$14.65$16.9610.85%19
2016-07-222016-08-09$14.82$15.271.68%13
2016-06-082016-06-10$15.70$14.59-1.03%3
2016-04-042016-04-14$16.47$16.794.87%9
2016-03-282016-04-01$15.35$15.840.48%5
2016-03-212016-03-24$15.89$15.18-3.18%4
2015-12-292016-01-05$15.81$14.90-1.77%5
2015-09-212015-09-29$17.61$16.44-3.41%7
2015-07-212015-07-22$17.78$17.86-3.98%2
2015-06-222015-07-09$17.32$17.19-2.08%13
2015-06-182015-06-19$17.46$17.500.26%2
2015-04-282015-05-22$15.37$16.524.11%19
2015-04-142015-04-21$13.83$13.96-1.65%6
2014-11-252014-12-01$16.54$15.44-0.76%4
2014-11-122014-11-24$16.61$16.45-2.43%9
2014-10-082014-10-10$17.29$15.79-0.83%3
2014-09-022014-09-12$18.94$18.612.65%9
2014-07-312014-08-25$14.89$17.508.31%18
2014-06-162014-07-07$14.97$14.847.61%15
2014-06-122014-06-13$13.57$13.76-0.47%2
2014-06-062014-06-11$13.88$13.63-1.69%4
2014-05-282014-06-03$14.02$13.66-2.41%5
2014-01-072014-01-08$9.96$10.090.98%2
2013-03-272013-04-02$2.54$2.9611.07%4
2013-03-082013-03-18$2.56$2.34-5.53%7
2013-02-122013-02-14$2.53$2.55-0.08%3
2013-01-232013-01-24$2.40$2.471.47%2
2012-11-062012-12-14$2.08$2.254.61%28
2012-09-182012-09-21$2.09$2.00-3.68%4
2012-07-132012-07-23$2.28$2.04-1.97%7
2012-06-272012-07-03$2.13$2.04-2.82%5
2012-06-192012-06-25$2.14$2.214.18%5
2012-03-272012-04-05$2.53$2.30-4.58%8
2012-03-132012-03-16$2.41$2.35-2.10%4
2012-02-152012-02-29$2.24$2.231.23%10