Strategy Zoo / S0676

LongTermTrend_V0676

ARCHIVEDhybrid

llmSimplified and regularized entry logic: require price > sma_50 or a volume-backed 50-day breakout, plus modest 20d momentum and gentle 200-day slope to reduce overfitting and increase generalization. Added multi-condition exit (macd_hist < 0 OR cross below sma_50 OR 1-day stop-loss) to improve risk control. Introduced regime gates to avoid expensive/bubbly or very high-volatility environments. Added volatility-based position scaling (higher size in low vol, reduced in medium, minimal in high). Reduced base position from 1.0 to 0.8 to lower tail-risk.

Fitness
0.1080
Generation
31
Complexity
16
Created
2026-09-24

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_V0676  [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 or (breakout_50 == 1 and rel_volume > 1.2)) and sma_200_slope > -0.004 and ret_20d > 0.02 and macd_hist > -1.0):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or ret_1d < -0.03):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-5.0%3.5%6.4%-0.5%
Total Return-33.8%10.8%25.8%-7.7%
Sharpe-0.280.320.460.04
Sortino-0.180.220.300.02
Calmar-0.110.190.21-0.01
Volatility14.6%13.7%16.2%14.9%
Max DD-43.8%-18.1%-30.1%-49.3%
Win Rate36.8%25.9%37.5%35.3%
Avg Win2.9%8.3%6.4%4.4%
Avg Loss-2.2%-2.0%-2.6%-2.3%
Payoff1.324.102.461.94
Expectancy-0.3%0.7%0.8%0.1%
Profit Factor0.771.431.471.06
Trades1062740173
Avg Holding Days4.05.04.84.3
Turnover21.214.417.318.8
Exposure12.7%11.5%12.8%12.5%

Growth of $100

LongTermTrend_V0676 vs TSLA Buy & Hold
LongTermTrend_V0676 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-3.6%-0.31-8.9%13
201713.9%1.79-4.3%4
2018-12.3%-1.09-13.4%9
2019-11.3%-0.44-19.6%10
20200.0%0.000.0%0
202110.6%0.63-18.1%19
20220.2%0.09-17.0%8

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 testDOWNTREND270-2.9%-1.391%
hidden testEXPENSIVE8334.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.6%-0.211%
hidden testLOW VOLATILITY43022.5%1.3520%
hidden testMEDIUM VOLATILITY250-7.9%-0.4212%
hidden testNORMAL8035.2%0.3115%
hidden testSIDEWAYS293-11.7%-0.6723%
hidden testUPTREND37130.3%1.4914%
trainDOWNTREND518-6.5%-1.211%
trainEXPENSIVE31110.3%1.812%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-0.9%-0.061%
trainLOW VOLATILITY7454.5%0.3225%
trainMEDIUM VOLATILITY568-19.5%-1.2811%
trainNORMAL1,601-7.2%-0.4416%
trainSIDEWAYS592-16.2%-1.0116%
trainUPTREND9025.2%0.3017%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-0.1%-0.990%
validationLOW VOLATILITY183-6.8%-0.4929%
validationMEDIUM VOLATILITY31514.4%0.7811%
validationNORMAL4746.9%0.4018%
validationSIDEWAYS206-17.6%-1.0217%
validationUPTREND42516.3%1.1812%

Trades (full period)

latest 100 of 173
EntryExitEntry PxExit PxReturnDays
2026-05-272026-06-02$440.36$423.74-3.41%5
2026-05-222026-05-26$426.01$433.591.40%2
2026-05-192026-05-21$404.11$417.851.26%3
2026-05-082026-05-18$428.35$409.991.92%7
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-192025-12-30$481.20$454.43-4.09%7
2025-12-112025-12-18$446.89$483.372.67%6
2025-12-082025-12-09$439.58$445.17-2.87%2
2025-09-052025-09-15$350.84$410.0413.26%7
2025-09-032025-09-04$334.09$338.530.99%2
2025-08-252025-09-02$346.60$329.36-1.59%6
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-06-022025-06-03$342.69$344.27-1.03%2
2025-05-222025-05-28$341.04$356.906.58%4
2025-05-122025-05-13$318.38$334.075.23%2
2024-10-042024-10-07$250.08$240.832.97%2
2024-09-232024-10-03$250.00$240.663.48%9
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-06-142024-07-12$178.01$248.2325.07%19
2024-06-102024-06-11$173.79$170.66-1.82%2
2024-01-022024-01-03$248.42$238.45-0.18%2
2023-12-222023-12-29$252.54$248.48-0.56%5
2023-12-152023-12-21$253.50$254.50-1.39%5
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-10-052023-10-17$260.05$254.85-2.37%9
2023-09-202023-09-22$262.59$244.88-3.40%3
2023-09-122023-09-19$267.48$266.50-2.57%6
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-07-202023-07-21$262.90$260.02-7.94%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-102023-07-11$269.61$269.79-1.56%2
2023-07-052023-07-07$282.48$274.43-1.09%3
2023-06-272023-06-28$250.21$256.242.88%2
2023-06-232023-06-26$256.60$241.05-2.58%2
2023-05-312023-06-22$203.93$264.6122.52%16
2023-04-052023-04-06$185.52$185.06-3.09%2
2023-03-312023-04-04$207.46$192.58-0.30%3
2022-09-202022-09-23$308.73$275.33-5.47%4
2022-09-122022-09-14$304.42$302.61-2.16%3
2022-08-222022-08-23$289.91$296.45-1.98%2
2022-08-152022-08-19$309.32$296.670.61%5
2022-08-092022-08-12$283.33$300.03-1.18%4
2022-08-022022-08-08$300.59$290.42-2.57%5
2022-04-072022-04-11$352.42$325.31-1.70%3
2022-03-212022-04-06$307.05$348.5916.09%13
2021-11-042021-11-09$409.97$341.17-3.50%4
2021-10-122021-11-03$268.57$404.6236.92%17
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-282021-10-07$259.19$264.54-1.03%8
2021-09-242021-09-27$258.13$263.792.04%2
2021-09-222021-09-23$250.65$251.211.20%2
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-08-272021-08-30$237.31$243.641.07%2
2021-08-252021-08-26$237.07$233.720.15%2
2021-08-032021-08-17$236.58$221.90-2.79%11
2021-07-212021-07-22$218.43$216.42-0.79%2
2021-07-162021-07-19$214.74$215.41-0.94%2
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-04-292021-04-30$225.67$236.48-2.16%2
2021-04-262021-04-28$246.07$231.47-2.85%3
2021-04-212021-04-23$248.04$243.13-0.06%3
2021-04-162021-04-20$246.59$239.66-2.78%3
2021-04-142021-04-15$244.08$246.28-3.32%2
2019-12-132019-12-17$23.89$25.274.69%3
2019-12-052019-12-06$22.02$22.39-0.80%2
2019-12-032019-12-04$22.41$22.200.16%2
2019-11-292019-12-02$22.00$22.32-0.49%2
2019-11-262019-11-27$21.93$22.09-1.92%2
2019-11-222019-11-25$22.20$22.42-5.07%2
2019-10-152019-10-25$17.19$21.8813.15%9
2019-09-112019-09-25$16.47$15.25-4.29%11
2019-07-222019-07-26$17.05$15.20-9.19%5
2019-03-012019-03-04$19.65$19.02-6.43%2
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-12-072018-12-10$23.86$24.34-1.28%2
2018-12-042018-12-06$23.98$24.200.11%2
2018-11-282018-11-29$23.19$22.740.76%2
2018-11-262018-11-27$23.07$22.934.79%2
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-02-082018-02-09$21.02$20.69-7.06%2
2018-02-062018-02-07$22.26$23.000.04%2
2018-01-222018-02-05$23.44$22.21-1.57%11
2017-12-122017-12-26$22.74$21.15-1.04%10
2017-03-272017-03-28$18.01$18.501.98%2
2017-01-312017-02-02$16.80$16.77-0.60%3
2016-12-282017-01-25$14.65$16.9612.46%19
2016-08-152016-08-16$15.04$14.91-0.17%2
2016-07-222016-08-09$14.82$15.271.91%13
2016-06-082016-06-10$15.70$14.59-1.18%3
2016-04-292016-05-02$16.05$16.12-2.40%2
2016-04-272016-04-28$16.76$16.51-0.88%2
2016-04-252016-04-26$16.79$16.92-0.77%2
2016-04-212016-04-22$16.55$16.92-0.70%2
2016-04-192016-04-20$16.49$16.66-2.21%2
2016-04-152016-04-18$16.97$16.930.68%2
2016-04-112016-04-14$16.66$16.791.27%4