Strategy Zoo / S1186

MACDMomentum_V1186

ARCHIVEDhybrid

llm1) Added regime gates: only allow UPTREND/SIDEWAYS, exclude HIGH volatility and bubble EXTREME to reduce overfit to extreme periods. 2) Strengthened entry by requiring macd_hist>0 and close>sma_50 plus either breakout with higher rel_volume or a price+trend momentum branch (sma50>sma200 and ret_20d>0). 3) Added volatility and RSI filters on entry (vol_pctile<0.8, rsi_14<70) to avoid noisy/overbought entries. 4) Improved exits: exit on macd_hist<0 OR price crossing below sma_50 OR portfolio drawdown >8% OR extreme RSI>80 for faster loss control. 5) Introduced position scaling rules by vol_pctile (reduce size in elevated volatility) and lowered base_position to 0.8 for more conservative sizing.

Fitness
0.0542
Generation
54
Complexity
20
Created
2026-10-06

Lineage

Parents (1)
MACDMomentum_V0726S0726 · gen 33ARCHIVEDllm

changed rel_volume threshold 1.5045 -> 1.3475

Children (0)
None

Strategy Logic (pseudocode)

# MACDMomentum_V1186  [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 ((breakout_50 == 1 and rel_volume > 1.2) or (sma_50 > sma_200 and ret_20d > 0.0)) and vol_pctile < 0.8 and rsi_14 < 70.0):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown < -0.08 or rsi_14 > 80.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.1%-2.7%-3.5%-2.1%
Total Return-8.4%-7.9%-12.6%-26.3%
Sharpe-0.08-0.56-0.38-0.22
Sortino-0.04-0.19-0.15-0.09
Calmar-0.04-0.34-0.20-0.06
Volatility8.7%4.7%8.6%8.0%
Max DD-25.7%-7.9%-17.6%-33.3%
Win Rate51.9%48.5%44.4%48.8%
Avg Win1.9%0.8%1.7%1.6%
Avg Loss-2.3%-1.2%-2.0%-1.9%
Payoff0.840.660.860.82
Expectancy-0.1%-0.2%-0.3%-0.2%
Profit Factor0.900.620.690.78
Trades543336123
Avg Holding Days3.02.02.42.5
Turnover10.817.615.413.4
Exposure4.3%3.5%4.2%4.1%

Growth of $100

MACDMomentum_V1186 vs TSLA Buy & Hold
MACDMomentum_V1186 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.2%-0.50-2.9%7
20174.8%1.35-0.1%2
2018-4.6%-0.90-6.1%2
20195.1%1.01-0.1%2
20200.0%0.000.0%0
2021-3.4%-0.47-6.3%27
2022-4.6%-1.04-6.1%6

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE8317.4%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-6.9%-1.020%
hidden testLOW VOLATILITY4381.4%0.146%
hidden testMEDIUM VOLATILITY250-7.6%-1.094%
hidden testNORMAL811-5.5%-0.645%
hidden testSIDEWAYS293-8.0%-1.126%
hidden testUPTREND371-1.9%-0.166%
trainDOWNTREND518-0.0%-0.700%
trainEXPENSIVE3118.9%1.651%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.3%0.420%
trainLOW VOLATILITY7453.8%0.439%
trainMEDIUM VOLATILITY568-11.7%-1.284%
trainNORMAL1,601-2.7%-0.285%
trainSIDEWAYS592-2.1%-0.275%
trainUPTREND902-0.2%-0.027%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2580.0%0.000%
validationLOW VOLATILITY1835.1%0.869%
validationMEDIUM VOLATILITY315-9.2%-1.633%
validationNORMAL474-4.2%-0.716%
validationSIDEWAYS206-2.9%-0.427%
validationUPTREND425-3.3%-0.803%

Trades (full period)

latest 100 of 123
EntryExitEntry PxExit PxReturnDays
2025-12-112025-12-30$446.89$454.431.35%13
2025-12-042025-12-09$454.53$445.17-1.43%4
2025-09-122025-09-15$395.94$410.045.72%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-212025-07-22$328.49$332.11-0.44%2
2024-10-032024-10-04$240.66$250.08-2.84%2
2024-10-012024-10-02$258.02$249.02-1.26%2
2024-09-272024-09-30$260.46$261.631.80%2
2024-09-252024-09-26$257.02$254.220.70%2
2024-09-232024-09-24$250.00$254.273.78%2
2024-09-182024-09-19$227.20$243.92-0.40%2
2024-09-162024-09-17$226.78$227.87-1.38%2
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-012024-07-02$209.86$231.264.68%2
2024-06-272024-06-28$197.42$197.880.27%2
2023-12-282023-12-29$253.18$248.48-2.69%2
2023-12-262023-12-27$256.61$261.441.13%2
2023-12-212023-12-22$254.50$252.542.22%2
2023-12-192023-12-20$257.22$247.141.47%2
2023-12-152023-12-18$253.50$252.080.62%2
2023-12-132023-12-14$239.29$251.050.61%2
2023-12-112023-12-12$239.74$237.01-1.50%2
2023-12-072023-12-08$242.64$243.840.93%2
2023-12-052023-12-06$238.72$239.370.91%2
2023-12-012023-12-04$238.83$235.58-0.58%2
2023-11-292023-11-30$244.14$240.08-1.00%2
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-10-062023-10-09$260.53$259.67-0.01%2
2023-09-202023-09-21$262.59$255.70-1.33%2
2023-09-182023-09-19$265.28$266.50-2.81%2
2023-09-142023-09-15$276.04$274.391.24%2
2023-09-122023-09-13$267.48$271.30-1.94%2
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-08-312023-09-01$258.08$245.010.21%2
2023-06-262023-06-27$241.05$250.21-5.00%2
2022-04-082022-04-11$341.83$325.31-2.56%2
2022-04-062022-04-07$348.59$352.42-3.49%2
2022-04-012022-04-04$361.53$381.820.36%2
2022-03-252022-03-28$336.88$363.95-0.42%2
2022-03-232022-03-24$333.04$337.970.25%2
2022-03-212022-03-22$307.05$331.331.23%2
2021-12-282021-12-29$362.82$362.06-0.56%2
2021-10-132021-10-14$270.36$272.770.37%2
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-10-062021-10-07$260.92$264.540.06%2
2021-10-042021-10-05$260.51$260.200.49%2
2021-09-302021-10-01$258.49$258.41-0.76%2
2021-09-282021-09-29$259.19$260.44-1.55%2
2021-09-172021-09-20$253.16$243.390.10%2
2021-09-152021-09-16$251.94$252.331.06%2
2021-09-132021-09-14$247.67$248.160.57%2
2021-09-092021-09-10$251.62$245.42-0.06%2
2021-09-072021-09-08$250.97$251.291.95%2
2021-09-022021-09-03$244.13$244.52-0.35%2
2021-08-312021-09-01$245.24$244.700.37%2
2021-08-032021-08-04$236.58$236.97-0.15%2
2021-07-092021-07-12$218.98$228.570.35%2
2021-07-072021-07-08$214.88$217.60-1.97%2
2021-07-022021-07-06$226.30$219.86-0.04%2
2021-06-302021-07-01$226.57$225.97-0.28%2
2021-06-282021-06-29$229.57$226.921.84%2
2021-06-242021-06-25$226.61$223.962.67%2
2021-04-282021-04-29$231.47$225.67-1.33%2
2021-04-262021-04-27$246.07$234.910.80%2
2021-04-222021-04-23$239.90$243.13-2.78%2
2021-04-202021-04-21$239.66$248.040.33%2
2021-04-162021-04-19$246.59$238.21-0.06%2
2021-04-142021-04-15$244.08$246.28-3.32%2
2019-12-162019-12-17$25.43$25.274.99%2
2019-10-152019-10-16$17.19$17.320.13%2
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-01-182018-01-19$22.97$23.33-0.76%2
2017-12-122017-12-13$22.74$22.602.79%2
2017-03-272017-03-28$18.01$18.501.98%2
2016-08-052016-08-08$15.34$15.08-0.36%2
2016-08-032016-08-04$15.05$15.37-0.66%2
2016-08-012016-08-02$15.33$15.15-1.79%2
2016-07-282016-07-29$15.37$15.650.58%2
2016-07-262016-07-27$15.30$15.23-0.33%2
2016-07-222016-07-25$14.82$15.330.48%2
2016-06-082016-06-09$15.70$15.290.93%2
2015-12-312016-01-04$16.00$14.890.48%2
2015-09-282015-09-29$16.56$16.44-2.80%2
2015-09-242015-09-25$17.54$17.130.47%2
2015-09-212015-09-23$17.61$17.40-0.06%3
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-07-012015-07-09$17.94$17.19-4.09%6
2015-06-232015-06-30$17.84$17.880.54%6
2015-05-062015-05-07$15.36$15.79-1.02%2
2014-11-282014-12-01$16.30$15.44-1.42%2
2014-11-252014-11-26$16.54$16.560.28%2
2014-11-202014-11-21$16.58$16.190.15%2
2014-11-182014-11-19$17.18$16.521.01%2
2014-11-142014-11-17$17.25$16.932.06%2
2014-11-122014-11-13$16.61$16.78-0.79%2
2014-09-082014-09-12$18.81$18.610.69%5
2014-08-042014-08-25$15.90$17.507.86%16
2014-06-262014-07-03$15.71$15.28-2.67%6
2014-06-232014-06-25$15.81$15.790.87%3