Strategy Zoo / S1371

LongTermTrend_V1371

ARCHIVEDhybrid

llmSimplified and regularized entry logic (require short-term momentum + MACD and either 50-day strength or a breakout with volume); relaxed overfit ret_20d threshold; tightened distance-from-50SMA to avoid deeply lagging setups. Improved exit to a multi-condition rule (MACD flip OR price below SMA50 OR extreme volatility) to cut losses and avoid whipsaws. Added regime gates to avoid downdrafts and very high volatility / extreme bubble environments. Reduced base_position to 0.8 to lower exposure.

Fitness
0.3696
Generation
63
Complexity
20
Created
2026-10-09

Lineage

Parents (1)
LongTermTrend_V1083S1083 · gen 49ELITEllm

swapped indicator ret_20d -> cumret_252d; removed entry condition: rsi_14 > 34.4934

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1371  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (close > sma_20 and macd_hist > 0.0 and ((close > sma_50 and (sma_200_slope > -0.0024 or ret_20d > 0.06) and dist_sma_50 > -0.12) or (breakout_50 == 1 and rel_volume > 1.2))):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or vol_pctile > 0.95):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR4.0%24.6%0.8%7.2%
Total Return36.9%93.3%3.0%179.0%
Sharpe0.331.190.130.49
Sortino0.231.000.090.36
Calmar0.131.480.030.23
Volatility15.7%20.2%17.3%17.1%
Max DD-31.8%-16.6%-29.6%-31.8%
Win Rate35.7%33.3%28.6%33.3%
Avg Win6.9%15.7%9.3%9.8%
Avg Loss-3.1%-2.3%-3.1%-2.9%
Payoff2.266.762.963.33
Expectancy0.5%3.7%0.4%1.3%
Profit Factor1.263.381.181.66
Trades562128105
Avg Holding Days7.58.97.67.9
Turnover11.311.212.211.5
Exposure15.0%17.5%15.7%15.7%

Growth of $100

LongTermTrend_V1371 vs TSLA Buy & Hold
LongTermTrend_V1371 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.7%5
201718.3%1.19-10.3%14
2018-5.5%-0.68-9.7%3
20194.1%0.29-19.6%4
202056.0%2.24-7.1%6
202122.9%0.99-16.0%10
20220.7%0.12-16.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 testDOWNTREND278-2.8%-1.371%
hidden testEXPENSIVE8335.6%1.5621%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-8.6%-0.632%
hidden testLOW VOLATILITY44120.5%1.1524%
hidden testMEDIUM VOLATILITY250-18.7%-0.9716%
hidden testNORMAL814-1.0%-0.0616%
hidden testSIDEWAYS296-27.2%-1.4326%
hidden testUPTREND37129.6%1.3719%
trainDOWNTREND518-6.5%-1.211%
trainEXPENSIVE31137.0%1.8822%
trainEXTREME1009.3%1.551%
trainHIGH VOLATILITY69910.1%0.641%
trainLOW VOLATILITY74515.3%1.0528%
trainMEDIUM VOLATILITY568-14.3%-0.8415%
trainNORMAL1,601-1.3%-0.0814%
trainSIDEWAYS592-8.8%-0.5519%
trainUPTREND90221.0%1.1021%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13887.6%3.1327%
validationEXTREME14430.7%2.282%
validationHIGH VOLATILITY258-9.5%-1.000%
validationLOW VOLATILITY1838.1%0.5231%
validationMEDIUM VOLATILITY31560.6%2.2224%
validationNORMAL4743.4%0.1819%
validationSIDEWAYS206-4.4%-0.2517%
validationUPTREND42544.8%1.8723%

Trades (full period)

latest 100 of 106
EntryExitEntry PxExit PxReturnDays
2026-10-07—$377.81—-1.27%2OPEN
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-282026-06-02$442.10$423.74-4.61%4
2026-05-082026-05-21$428.35$417.850.97%10
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-042025-12-30$454.53$454.432.22%18
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-09-082025-10-06$346.40$453.2517.65%21
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-05-192025-06-03$342.09$344.27-1.77%11
2025-05-122025-05-13$318.38$334.075.23%2
2024-09-232024-10-04$250.00$250.080.70%10
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-172024-07-12$187.44$248.2327.57%18
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-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-17$260.53$254.85-2.03%8
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-062023-07-07$276.54$274.43-1.84%2
2023-05-312023-06-27$203.93$250.2115.56%19
2023-03-242023-04-06$190.41$185.06-2.88%10
2022-09-132022-09-23$292.13$275.33-4.29%9
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-022022-08-12$300.59$300.03-2.97%9
2022-03-212022-04-11$307.05$325.3110.49%16
2021-12-282022-01-03$362.82$399.93-2.88%5
2021-10-132021-11-10$270.36$355.9821.37%21
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-08-312021-09-21$245.24$246.46-0.21%15
2021-08-022021-08-17$236.56$221.90-0.24%12
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-142021-04-29$244.08$225.67-7.29%12
2021-01-122021-01-25$283.15$293.603.35%9
2021-01-052021-01-11$245.04$270.4016.09%5
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
2020-11-092020-11-10$140.42$136.79-1.78%2
2020-10-142020-10-20$153.77$140.65-2.98%5
2019-12-162020-01-22$25.43$37.9740.42%25
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-03-142018-03-15$21.78$21.71-3.72%2
2018-01-112018-02-05$22.53$22.212.00%17
2017-12-122017-12-26$22.74$21.15-1.04%10
2017-10-182017-10-20$23.98$23.01-1.04%3
2017-10-132017-10-17$23.70$23.72-1.30%3
2017-09-122017-09-25$24.18$23.00-2.90%10
2017-08-152017-08-18$24.16$23.16-2.77%4
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-052017-06-14$23.15$25.388.28%8
2017-05-152017-05-16$21.06$21.13-2.36%2
2017-05-022017-05-04$21.26$19.70-3.09%3
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-242017-04-04$17.54$20.2513.40%8
2017-03-202017-03-22$17.46$17.00-3.46%3
2017-02-102017-02-22$17.95$18.232.29%8
2016-12-282017-02-02$14.65$16.7710.56%25
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-042016-04-14$16.47$16.795.55%9
2016-03-282016-04-01$15.35$15.840.55%5
2016-03-212016-03-24$15.89$15.18-3.63%4
2015-12-292016-01-05$15.81$14.90-2.04%5
2015-09-212015-09-29$17.61$16.44-3.90%7
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-06-222015-07-09$17.32$17.19-2.40%13
2015-04-282015-05-22$15.37$16.524.69%19
2015-04-142015-04-21$13.83$13.96-1.88%6
2014-11-252014-12-01$16.54$15.44-0.87%4
2014-11-122014-11-24$16.61$16.45-2.78%9
2014-10-082014-10-10$17.29$15.79-0.95%3
2014-09-022014-09-12$18.94$18.613.01%9
2014-07-312014-08-25$14.89$17.509.51%18
2014-06-162014-07-07$14.97$14.848.69%15
2014-06-122014-06-13$13.57$13.76-0.53%2
2014-06-062014-06-11$13.88$13.63-1.94%4
2014-05-282014-06-03$14.02$13.66-2.76%5
2014-02-132014-02-26$13.31$16.8721.13%9
2014-01-032014-01-10$9.97$9.71-1.52%6
2013-09-232013-10-04$12.07$12.07-4.52%10
2013-09-092013-09-10$10.71$11.09-3.16%2
2013-03-272013-04-02$2.54$2.9612.65%4
2013-03-082013-03-18$2.56$2.34-6.31%7
2013-01-232013-02-14$2.40$2.557.21%17
2012-11-062012-12-14$2.08$2.255.24%28
2012-09-182012-09-21$2.09$2.00-4.20%4