Strategy Zoo / S1334

LongTermTrend_V1334

ARCHIVEDhybrid

llmSimplified and made entry more robust: require price above sma_50 and sma_50 above sma_200 (clean trend) plus one of macd_hist>0, ret_20d>5%, or breakout_20, and require rel_volume>1.0 to avoid weak breakouts. Added multi-condition exit: exit on macd_hist<0 OR price crossing below sma_50 OR drawdown>15% to limit large losses. Added regime gates to only trade in UPTREND and avoid high-volatility and extreme-bubble environments (volatility LOW/MEDIUM, bubble NORMAL/EXPENSIVE). Reduced base position to 0.8 to lower risk/exposure.

Fitness
0.3889
Generation
61
Complexity
14
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V1193S1193 · gen 54ARCHIVEDllm

changed macd_hist threshold 0.0 -> 1.2086

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1334  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (close > sma_50 and sma_50 > sma_200 and (macd_hist > 0.0 or ret_20d > 0.05 or breakout_20 == 1) and rel_volume > 1.0):
    position = 0.8
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
CAGR3.7%27.3%-13.3%3.5%
Total Return34.0%106.2%-41.4%65.8%
Sharpe0.361.41-1.150.32
Sortino0.190.99-0.480.17
Calmar0.131.92-0.310.07
Volatility12.5%18.2%11.8%13.7%
Max DD-28.0%-14.2%-43.4%-48.2%
Win Rate48.8%64.3%20.0%44.2%
Avg Win4.5%10.5%2.5%6.4%
Avg Loss-3.3%-2.5%-3.9%-3.4%
Payoff1.384.210.661.89
Expectancy0.5%5.9%-2.6%0.9%
Profit Factor1.327.580.161.49
Trades43142077
Avg Holding Days5.79.85.36.5
Turnover8.77.58.58.4
Exposure8.5%13.0%7.4%9.1%

Growth of $100

LongTermTrend_V1334 vs TSLA Buy & Hold
LongTermTrend_V1334 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-2.6%-0.63-3.7%2
20172.7%0.26-9.9%11
2018-5.0%-0.96-6.1%3
201912.8%1.61-3.0%0
202063.7%2.53-6.4%4
202113.8%0.72-13.6%9
202210.5%0.90-8.5%1

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 testEXPENSIVE83-25.2%-1.4215%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-1.1%-0.121%
hidden testLOW VOLATILITY440-6.7%-0.6310%
hidden testMEDIUM VOLATILITY250-38.1%-2.469%
hidden testNORMAL813-13.1%-1.157%
hidden testSIDEWAYS295-23.1%-2.0711%
hidden testUPTREND371-16.0%-1.0010%
trainDOWNTREND518-1.7%-1.000%
trainEXPENSIVE31137.3%1.8620%
trainEXTREME1009.3%1.551%
trainHIGH VOLATILITY69910.1%0.851%
trainLOW VOLATILITY74513.4%1.0916%
trainMEDIUM VOLATILITY568-14.3%-1.078%
trainNORMAL1,601-2.3%-0.217%
trainSIDEWAYS592-0.5%-0.075%
trainUPTREND90211.2%0.6415%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13879.8%3.0823%
validationEXTREME14419.8%1.851%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY18326.2%2.1621%
validationMEDIUM VOLATILITY31554.4%2.1619%
validationNORMAL47411.9%0.6914%
validationSIDEWAYS2065.7%0.4013%
validationUPTREND42543.1%1.9517%

Trades (full period)

77 trades
EntryExitEntry PxExit PxReturnDays
2025-12-042025-12-30$454.53$454.432.22%18
2025-11-062025-11-07$445.91$429.52-2.96%2
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-10-242025-10-27$433.72$452.42-2.88%2
2025-09-172025-10-06$425.86$453.251.48%14
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-242025-07-25$305.30$316.06-6.71%2
2024-10-072024-10-08$240.83$244.50-3.12%2
2024-09-232024-10-04$250.00$250.080.70%10
2024-09-192024-09-20$243.92$238.255.72%2
2024-09-062024-09-09$210.73$216.27-6.91%2
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-10-112023-10-17$262.99$254.85-3.10%5
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-07-202023-07-21$262.90$260.02-7.94%2
2023-06-262023-06-27$241.05$250.21-5.00%2
2022-03-212022-04-11$307.05$325.3110.49%16
2021-11-242021-11-26$372.00$360.640.34%2
2021-10-132021-11-10$270.36$355.9821.37%21
2021-09-272021-10-07$263.79$264.540.71%9
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-05-032021-05-04$228.30$224.53-2.92%2
2021-04-142021-04-29$244.08$225.67-7.29%12
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-122021-01-25$283.15$293.603.35%9
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-12-102020-12-17$209.02$218.632.29%6
2020-11-182020-12-08$162.21$216.6334.96%14
2019-12-132020-01-22$23.89$37.9740.01%26
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
2017-12-122017-12-27$22.74$20.78-2.96%11
2017-09-122017-09-25$24.18$23.00-2.90%10
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-062017-06-14$23.52$25.386.41%7
2017-05-022017-05-04$21.26$19.70-3.09%3
2017-04-262017-04-27$20.68$20.58-1.08%2
2017-03-272017-04-04$18.01$20.2510.49%7
2017-03-202017-03-22$17.46$17.00-3.46%3
2017-02-232017-02-24$17.07$17.13-5.28%2
2017-02-102017-02-22$17.95$18.232.29%8
2017-02-082017-02-09$17.47$17.951.27%2
2016-07-262016-08-09$15.30$15.27-1.49%11
2016-06-082016-06-10$15.70$14.59-1.18%3
2015-09-222015-09-29$17.40$16.44-4.94%6
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-06-232015-07-09$17.84$17.19-1.58%12
2015-06-182015-06-19$17.46$17.500.29%2
2014-11-122014-11-24$16.61$16.45-2.78%9
2014-09-022014-09-12$18.94$18.613.01%9
2014-07-312014-08-25$14.89$17.509.51%18
2014-07-152014-07-16$14.64$14.48-2.67%2
2014-07-092014-07-10$14.87$14.631.30%2
2014-06-172014-07-07$15.44$14.841.53%14
2014-02-142014-02-26$13.22$16.8719.03%8
2013-10-092013-10-10$11.25$11.53-2.88%2
2013-10-072013-10-08$12.20$11.650.76%2
2013-09-202013-10-04$12.23$12.07-2.17%11
2013-09-102013-09-11$11.09$10.902.66%2
2013-03-262013-04-02$2.52$2.9613.44%5
2013-02-212013-02-22$2.34$2.41-7.17%2
2013-02-192013-02-20$2.62$2.574.67%2
2013-01-232013-02-14$2.40$2.557.21%17
2013-01-032013-01-04$2.32$2.29-1.49%2
2012-12-242012-12-26$2.29$2.240.50%2
2012-06-272012-07-03$2.13$2.04-3.22%5
2012-06-192012-06-25$2.14$2.214.76%5
2012-03-272012-04-05$2.53$2.30-5.25%8
2012-03-122012-03-13$2.40$2.412.76%2
2012-02-152012-02-29$2.24$2.231.39%10