Strategy Zoo / S0606

LongTermTrend_V0606

ARCHIVEDhybrid

llmSimplified and regularized entry: require price > SMA50 plus either SMA50>200 or positive 200-day slope to enforce trend; require momentum confirmation (MACD histogram >0, 20d return >3%, 50-day breakout, or elevated relative volume). Kept short-term confirmation with price > SMA20. Exit broadened to include MACD flip OR a hard drawdown stop (15%) OR extreme volatility (vol_pctile>0.9) to limit large losses. Added regime gates to avoid downtrends, high volatility, and bubble states (trade only in UPTREND/SIDEWAYS, LOW/MEDIUM vol, NORMAL bubble). Added volatility-based position sizing (scale down in high vol, full size in low vol, medium size otherwise) to reduce risk and improve out-of-sample robustness.

Fitness
0.1340
Generation
28
Complexity
19
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0606  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and ((close > sma_50 and (sma_50 > sma_200 or sma_200_slope > 0.0)) and (macd_hist > 0.0 or ret_20d > 0.03 or breakout_50 == 1 or rel_volume > 1.2) and sma_20 < close):
    position = 1.0
if long and (macd_hist < 0.0 or drawdown > 0.15 or vol_pctile > 0.9):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-5.4%8.5%-8.1%-3.4%
Total Return-36.0%27.9%-26.9%-40.2%
Sharpe-0.260.50-0.35-0.11
Sortino-0.150.32-0.21-0.06
Calmar-0.100.40-0.24-0.06
Volatility16.2%20.3%19.1%17.9%
Max DD-55.7%-21.3%-33.5%-60.3%
Win Rate37.5%50.0%39.4%39.8%
Avg Win3.9%7.0%3.8%4.5%
Avg Loss-3.2%-3.6%-3.8%-3.4%
Payoff1.241.961.001.31
Expectancy-0.5%1.7%-0.8%-0.3%
Profit Factor0.751.960.650.87
Trades721833123
Avg Holding Days5.17.55.65.6
Turnover18.012.017.816.8
Exposure14.7%15.5%16.2%15.2%

Growth of $100

LongTermTrend_V0606 vs TSLA Buy & Hold
LongTermTrend_V0606 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-7.1%-0.84-8.7%3
201712.6%1.08-6.6%7
2018-19.8%-1.57-24.0%8
2019-10.2%-0.81-15.9%5
20200.0%0.000.0%0
20216.4%0.36-21.3%14
20226.0%0.42-17.6%3

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 testDOWNTREND269-3.6%-1.401%
hidden testEXPENSIVE8342.8%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.4%-0.162%
hidden testLOW VOLATILITY429-3.6%-0.1924%
hidden testMEDIUM VOLATILITY250-16.0%-0.6918%
hidden testNORMAL802-12.1%-0.6119%
hidden testSIDEWAYS293-17.5%-0.7131%
hidden testUPTREND371-0.2%-0.0116%
trainDOWNTREND518-5.0%-0.870%
trainEXPENSIVE31113.0%1.822%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-1.6%-0.121%
trainLOW VOLATILITY7458.6%0.4928%
trainMEDIUM VOLATILITY568-24.5%-1.3814%
trainNORMAL1,601-7.9%-0.4418%
trainSIDEWAYS592-6.7%-0.3818%
trainUPTREND902-2.3%-0.1221%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2581.3%0.071%
validationLOW VOLATILITY18313.8%0.8434%
validationMEDIUM VOLATILITY31515.4%0.6417%
validationNORMAL47416.3%0.6425%
validationSIDEWAYS2062.3%0.1120%
validationUPTREND42517.1%0.7418%

Trades (full period)

latest 100 of 123
EntryExitEntry PxExit PxReturnDays
2026-06-302026-07-06$420.60$419.77-4.65%4
2026-05-272026-06-02$440.36$423.74-4.27%5
2026-05-222026-05-26$426.01$433.591.75%2
2026-05-082026-05-21$428.35$417.851.13%10
2026-04-202026-04-21$392.50$386.42-2.22%2
2025-12-042025-12-30$454.53$454.432.68%18
2025-09-052025-09-15$350.84$410.0416.73%7
2025-08-252025-09-03$346.60$334.09-3.32%7
2025-08-112025-08-21$339.03$320.11-1.94%9
2025-07-212025-08-01$328.49$302.63-6.67%10
2025-06-042025-06-05$332.05$284.70-3.75%2
2025-06-022025-06-03$342.69$344.27-1.29%2
2025-05-222025-05-28$341.04$356.908.23%4
2025-05-122025-05-13$318.38$334.076.54%2
2024-10-092024-10-10$241.05$238.77-1.61%2
2024-10-072024-10-08$240.83$244.50-3.90%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-01-032024-01-04$238.45$237.93-4.21%2
2023-12-152024-01-02$253.50$248.42-1.22%11
2023-11-162023-12-14$233.59$251.05-1.66%20
2023-10-052023-10-17$260.05$254.85-2.97%9
2023-08-302023-09-25$256.90$246.99-4.97%18
2023-07-202023-07-21$262.90$260.02-9.93%2
2023-07-182023-07-19$293.34$291.260.82%2
2023-07-142023-07-17$281.38$290.381.05%2
2023-07-122023-07-13$271.99$277.900.61%2
2023-07-102023-07-11$269.61$269.79-1.95%2
2023-07-052023-07-07$282.48$274.43-1.37%3
2023-06-302023-07-03$261.77$279.821.46%2
2023-06-282023-06-29$256.24$257.502.21%2
2023-06-262023-06-27$241.05$250.21-6.25%2
2022-08-152022-08-19$309.32$296.670.75%5
2022-08-042022-08-12$308.63$300.03-6.94%7
2022-03-212022-04-11$307.05$325.3113.04%16
2021-12-272022-01-04$364.65$383.2012.22%7
2021-11-232021-11-24$369.68$372.00-4.33%2
2021-10-122021-11-10$268.57$355.9828.98%22
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-09-242021-09-27$258.13$263.792.55%2
2021-09-222021-09-23$250.65$251.211.50%2
2021-08-302021-09-21$243.64$246.462.36%16
2021-08-262021-08-27$233.72$237.31-1.61%2
2021-08-242021-08-25$236.16$237.070.11%2
2021-08-192021-08-20$224.49$226.75-2.45%2
2021-07-302021-08-17$229.07$221.901.10%13
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-29$244.08$225.67-9.10%12
2019-12-132019-12-17$23.89$25.275.85%3
2019-12-112019-12-12$23.51$23.980.91%2
2019-11-262019-11-27$21.93$22.09-2.40%2
2019-11-222019-11-25$22.20$22.42-6.33%2
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-12-072018-12-10$23.86$24.34-1.60%2
2018-12-042018-12-06$23.98$24.200.14%2
2018-11-292018-11-30$22.74$23.37-2.12%2
2018-11-272018-11-28$22.93$23.19-0.80%2
2018-03-132018-03-15$22.79$21.71-5.65%3
2018-02-082018-02-09$21.02$20.69-8.82%2
2018-01-112018-02-05$22.53$22.212.47%17
2017-12-122017-12-26$22.74$21.15-1.32%10
2017-10-132017-10-23$23.70$22.47-3.17%7
2017-03-242017-03-28$17.54$18.505.85%3
2017-03-202017-03-23$17.46$16.99-2.68%4
2017-03-152017-03-16$17.05$17.47-1.08%2
2017-02-012017-02-02$16.62$16.77-1.27%2
2016-12-282017-01-25$14.65$16.9615.75%19
2016-07-222016-08-09$14.82$15.272.36%13
2016-06-082016-06-16$15.70$14.53-6.49%7
2015-12-292016-01-06$15.81$14.60-2.60%6
2015-09-212015-09-30$17.61$16.56-5.55%8
2015-08-062015-08-07$16.41$16.17-9.08%2
2015-07-202015-07-22$18.82$17.86-3.06%3
2015-07-152015-07-16$17.54$17.78-1.14%2
2015-06-222015-07-09$17.32$17.19-3.07%13
2015-06-182015-06-19$17.46$17.500.37%2
2015-06-122015-06-15$16.71$16.69-0.49%2
2015-06-092015-06-10$17.07$16.71-0.31%2
2015-06-052015-06-08$16.61$17.091.11%2
2015-06-032015-06-04$16.60$16.390.06%2
2015-06-012015-06-02$16.63$16.56-0.74%2
2015-05-282015-05-29$16.76$16.721.42%2
2015-05-262015-05-27$16.50$16.50-0.31%2
2015-05-132015-05-22$16.21$16.520.16%8
2014-11-122014-12-01$16.61$15.44-2.81%13
2014-10-072014-10-13$17.30$14.97-9.28%5
2014-09-152014-09-16$16.92$17.38-9.27%2
2014-09-022014-09-12$18.94$18.613.73%9
2014-08-282014-08-29$17.59$17.980.03%2
2014-08-262014-08-27$17.45$17.55-0.51%2
2014-07-312014-08-25$14.89$17.5011.94%18
2014-07-292014-07-30$15.00$15.26-0.12%2
2014-05-282014-07-07$14.02$14.848.14%28
2014-01-072014-01-08$9.96$10.091.40%2
2013-03-262013-04-02$2.52$2.9616.82%5
2013-03-082013-03-18$2.56$2.34-7.87%7