Strategy Zoo / S1027

LongTermTrend_V1027

ARCHIVEDhybrid

llmSimplified and strengthened trend entry (require close>sma50, sma50>sma200, positive MACD hist, and non-negative long-term slope) to avoid weak rallies; added a tighter breakout leg (breakout_50 + rel_volume>1.3 + ret_5d>2.5%) to capture real breakouts; improved exits with an explicit sma50 breakdown, a 20-day momentum stop at -2%, and an exit on extreme volatility (vol_pctile>0.85); added regime gates to restrict trading to UPTREND and lower/medium volatility and avoid EXTREME bubble states; reduced base_position to 0.8 to lower sizing and drawdown risk.

Fitness
0.3486
Generation
47
Complexity
17
Created
2026-10-02

Lineage

Parents (1)
LongTermTrend_V0959S0959 · gen 44ARCHIVEDllm

entry from LongTermTrend_V0521, exit from PriceMomentum_V0817

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1027  [hybrid]
require regime.trend in ['UPTREND']
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 and sma_200_slope > -0.0024) or (breakout_50 == 1 and rel_volume > 1.3 and ret_5d > 0.025)):
    position = 0.8
if long and (close < sma_50 or ret_20d < -0.02 or vol_pctile > 0.85):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR5.1%26.3%2.4%8.6%
Total Return49.1%101.5%9.1%235.3%
Sharpe0.421.290.220.59
Sortino0.270.810.120.36
Calmar0.310.830.110.27
Volatility14.1%19.6%16.8%16.1%
Max DD-16.5%-31.5%-20.7%-31.5%
Win Rate38.7%40.0%50.0%41.5%
Avg Win6.3%28.1%7.1%11.4%
Avg Loss-2.3%-4.4%-5.1%-3.2%
Payoff2.786.371.383.51
Expectancy1.1%8.6%1.0%2.8%
Profit Factor1.764.251.382.49
Trades31101253
Avg Holding Days11.114.712.012.2
Turnover6.35.35.15.8
Exposure12.9%14.5%11.2%12.8%

Growth of $100

LongTermTrend_V1027 vs TSLA Buy & Hold
LongTermTrend_V1027 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.3%-0.38-8.7%3
201714.4%0.89-11.2%13
2018-4.9%-0.81-8.6%1
201913.2%1.66-3.0%0
202062.9%2.53-7.1%4
202148.6%1.81-15.2%5
2022-19.3%-1.49-19.2%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 testDOWNTREND2760.0%0.000%
hidden testEXPENSIVE8348.1%1.5941%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.8%-0.691%
hidden testLOW VOLATILITY43616.7%1.2013%
hidden testMEDIUM VOLATILITY250-7.0%-0.2919%
hidden testNORMAL809-0.6%-0.049%
hidden testSIDEWAYS293-10.1%-1.401%
hidden testUPTREND37117.5%0.6728%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31143.8%1.8730%
trainEXTREME1009.3%1.551%
trainHIGH VOLATILITY69910.8%0.951%
trainLOW VOLATILITY74517.8%1.1625%
trainMEDIUM VOLATILITY568-15.5%-1.0112%
trainNORMAL1,601-1.6%-0.1310%
trainSIDEWAYS592-1.7%-0.650%
trainUPTREND90214.5%0.6928%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13894.1%3.1239%
validationEXTREME14430.7%2.282%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY18326.3%2.0721%
validationMEDIUM VOLATILITY31553.1%1.9423%
validationNORMAL4743.6%0.2111%
validationSIDEWAYS206-12.0%-1.120%
validationUPTREND42550.8%2.0326%

Trades (full period)

53 trades
EntryExitEntry PxExit PxReturnDays
2025-12-042026-01-05$454.53$451.67-1.63%21
2025-09-122025-11-14$395.94$404.357.41%46
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-242025-07-25$305.30$316.06-6.71%2
2025-07-212025-07-23$328.49$332.560.44%3
2024-10-032024-10-14$240.66$219.16-10.21%8
2024-09-232024-09-27$250.00$260.465.19%5
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-022024-07-12$231.26$248.2311.75%8
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-06-082023-08-02$234.86$254.1113.00%38
2022-04-052022-04-27$363.75$293.84-19.20%16
2021-12-302021-12-31$356.78$352.26-1.33%2
2021-12-282021-12-29$362.82$362.06-0.56%2
2021-08-312021-11-10$245.24$355.9831.27%51
2021-01-122021-02-11$283.15$270.55-0.64%22
2020-12-102021-01-11$209.02$270.4035.18%21
2020-11-192020-12-08$166.42$216.6324.77%13
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
2018-12-042018-12-19$23.98$22.20-4.93%11
2017-10-182017-10-19$23.98$23.450.72%2
2017-10-162017-10-17$23.37$23.72-1.28%2
2017-10-122017-10-13$23.71$23.700.08%2
2017-09-182017-09-26$25.67$23.02-7.53%7
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-19$21.06$20.72-3.04%5
2017-05-022017-05-10$21.26$21.68-0.49%7
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-21$17.46$16.71-0.03%2
2017-01-052017-02-28$15.12$16.676.69%37
2016-07-262016-08-18$15.30$14.90-2.50%18
2016-06-082016-06-09$15.70$15.290.93%2
2016-04-052016-05-03$17.03$15.49-1.78%21
2015-06-092015-07-28$17.07$17.65-1.05%35
2014-10-082014-10-09$17.29$17.13-0.25%2
2014-08-042014-09-16$15.90$17.387.00%31
2014-07-312014-08-01$14.89$15.55-2.12%2
2014-06-232014-07-16$15.81$14.48-3.59%17
2014-02-132014-02-26$13.31$16.8721.13%9
2013-09-092013-10-22$10.71$11.442.74%32
2013-03-272013-04-02$2.54$2.9612.65%4
2013-03-122013-03-15$2.61$2.35-4.76%4
2013-03-082013-03-11$2.56$2.610.34%2
2013-01-232013-02-22$2.40$2.41-0.08%22
2012-12-042012-12-14$2.26$2.25-2.47%9
2012-02-232012-04-10$2.30$2.16-2.46%33
2012-02-212012-02-22$2.30$2.28-1.23%2