Strategy Zoo / S0874

LongTermTrend_V0874

ARCHIVEDhybrid

llmSimplified and strengthened trend+momentum entry: use sma_50>sma_200 with positive slope, require modest 20d momentum (ret_20d>3%) and a recent breakout/20d high. Added volatility filter vol_pctile<0.6 to avoid choppy/high-vol entries. Replaced redundant ret_20d checks. Improved exits: multi-condition exit (20d loss <-8%, low RSI, extreme vol spike, or drawdown<-12%) for earlier risk control. Added regime gates to require UPTREND, LOW_VOLATILITY and NORMAL bubble. Reduced base_position to 0.8 to lower leverage and drawdown.

Fitness
0.4361
Generation
40
Complexity
14
Created
2026-09-29

Lineage

Parents (1)
LongTermTrend_V0605S0605 · gen 28ARCHIVEDllm

entry from LongTermTrend_V0323, exit from PriceMomentum_V0557

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0874  [hybrid]
if flat and ((sma_50 > sma_200 and sma_50_slope > 0.0) and ret_20d > 0.03 and (breakout_20 > 0.0 or roll_high_20 > 0.0) and vol_pctile < 0.6):
    position = 0.8
if long and (ret_20d < -0.08 or rsi_14 < 35.0 or vol_pctile > 0.95 or drawdown < -0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR3.3%51.0%-7.7%8.6%
Total Return29.3%244.1%-25.7%238.2%
Sharpe0.271.69-0.560.53
Sortino0.181.53-0.270.37
Calmar0.141.85-0.280.19
Volatility17.9%26.4%12.9%19.0%
Max DD-24.1%-27.5%-27.8%-45.9%
Win Rate31.3%47.8%32.0%36.3%
Avg Win6.8%16.8%1.9%10.1%
Avg Loss-2.2%-2.4%-2.6%-2.4%
Payoff3.077.100.744.26
Expectancy0.6%6.8%-1.1%2.2%
Profit Factor1.396.510.352.42
Trades32232580
Avg Holding Days12.68.54.69.1
Turnover6.512.310.88.7
Exposure15.2%18.3%7.8%14.0%

Growth of $100

LongTermTrend_V0874 vs TSLA Buy & Hold
LongTermTrend_V0874 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.5%-1.30-2.9%5
20178.0%0.47-16.9%5
2018-6.6%-1.20-8.6%1
20197.7%0.84-5.1%4
2020217.6%3.34-14.2%6
202116.7%0.73-18.0%12
2022-10.2%-1.56-11.7%5

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 testDOWNTREND2730.0%0.000%
hidden testEXPENSIVE83-4.8%-0.1837%
hidden testEXTREME4823.7%0.9313%
hidden testHIGH VOLATILITY254-2.9%-1.050%
hidden testLOW VOLATILITY4334.1%0.369%
hidden testMEDIUM VOLATILITY250-31.0%-1.5814%
hidden testNORMAL806-9.3%-1.024%
hidden testSIDEWAYS293-3.5%-1.181%
hidden testUPTREND371-15.3%-0.7619%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31129.5%1.0247%
trainEXTREME10098.4%2.5723%
trainHIGH VOLATILITY6998.1%0.407%
trainLOW VOLATILITY7459.3%0.6122%
trainMEDIUM VOLATILITY568-5.2%-0.2817%
trainNORMAL1,601-5.8%-0.488%
trainSIDEWAYS5923.6%0.792%
trainUPTREND9028.4%0.3233%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13865.9%2.0044%
validationEXTREME144171.6%4.1227%
validationHIGH VOLATILITY25835.7%1.306%
validationLOW VOLATILITY18323.5%1.6121%
validationMEDIUM VOLATILITY31564.2%2.1127%
validationNORMAL474-0.2%-0.018%
validationSIDEWAYS2060.0%0.000%
validationUPTREND42579.4%2.2633%

Trades (full period)

80 trades
EntryExitEntry PxExit PxReturnDays
2025-12-122026-01-16$458.96$437.50-1.55%24
2025-10-142025-11-14$429.24$404.35-6.25%24
2025-09-222025-10-13$434.21$435.90-2.39%16
2025-09-172025-09-19$425.86$426.07-1.06%3
2025-07-312025-08-01$308.27$302.63-2.86%2
2024-12-112024-12-23$424.77$430.603.98%9
2024-10-112024-10-14$217.80$219.16-7.18%2
2024-10-092024-10-10$241.05$238.77-1.29%2
2024-10-072024-10-08$240.83$244.50-3.12%2
2024-10-032024-10-04$240.66$250.08-2.84%2
2024-09-052024-09-06$230.17$210.733.76%2
2024-09-032024-09-04$210.60$219.41-1.47%2
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-07-312023-08-01$267.43$261.070.14%2
2023-07-272023-07-28$255.71$266.44-2.77%2
2023-07-252023-07-26$265.28$264.35-1.28%2
2023-07-192023-07-20$291.26$262.90-0.73%2
2023-07-172023-07-18$290.38$293.342.40%2
2023-07-132023-07-14$277.90$281.381.58%2
2023-07-112023-07-12$269.79$271.99-0.11%2
2023-07-072023-07-10$274.43$269.61-0.77%2
2023-07-052023-07-06$282.48$276.540.60%2
2023-06-302023-07-03$261.77$279.821.17%2
2023-06-282023-06-29$256.24$257.501.77%2
2023-06-262023-06-27$241.05$250.21-5.00%2
2022-04-192022-04-20$342.72$325.731.74%2
2022-04-142022-04-18$328.33$334.76-3.08%2
2022-04-122022-04-13$328.98$340.790.74%2
2022-04-082022-04-11$341.83$325.31-2.56%2
2022-04-052022-04-07$363.75$352.42-7.15%3
2021-12-092021-12-10$334.60$339.01-5.03%2
2021-10-042021-11-10$260.51$355.9825.18%28
2021-09-282021-10-01$259.19$258.41-1.76%4
2021-09-242021-09-27$258.13$263.792.04%2
2021-09-222021-09-23$250.65$251.211.20%2
2021-09-202021-09-21$243.39$246.46-3.25%2
2021-09-162021-09-17$252.33$253.16-0.04%2
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-092021-09-10$251.62$245.42-0.06%2
2021-09-072021-09-08$250.97$251.291.95%2
2021-09-012021-09-02$244.70$244.13-0.34%2
2020-11-192021-02-23$166.42$232.9536.73%64
2020-10-262020-10-27$140.09$141.56-0.23%2
2020-10-222020-10-23$141.93$140.210.44%2
2020-10-162020-10-20$146.56$140.65-3.38%3
2020-06-012020-07-27$59.87$102.6453.54%40
2020-05-282020-05-29$53.72$55.67-1.57%2
2019-12-132020-02-04$23.89$59.1486.57%35
2019-12-042019-12-05$22.20$22.02-0.91%2
2019-12-022019-12-03$22.32$22.411.03%2
2019-11-272019-11-29$22.09$22.000.42%2
2019-11-222019-11-25$22.20$22.42-5.07%2
2018-12-132018-12-19$25.12$22.20-6.62%5
2017-08-172017-10-17$23.46$23.72-2.75%43
2017-03-282017-07-06$18.50$20.5916.71%70
2017-02-072017-02-28$17.17$16.67-3.66%15
2017-02-032017-02-06$16.76$17.18-0.23%2
2017-02-012017-02-02$16.62$16.77-1.01%2
2016-08-052016-08-08$15.34$15.08-0.36%2
2016-08-032016-08-04$15.05$15.37-0.66%2
2016-08-012016-08-02$15.33$15.15-1.79%2
2016-07-282016-07-29$15.37$15.650.58%2
2016-07-262016-07-27$15.30$15.23-0.33%2
2015-06-182015-08-07$17.46$16.17-4.35%36
2015-06-122015-06-15$16.71$16.69-0.39%2
2015-06-102015-06-11$16.71$16.76-1.81%2
2014-08-052014-09-23$15.90$16.693.86%35
2014-07-152014-07-16$14.64$14.48-2.67%2
2014-07-112014-07-14$14.54$15.11-0.64%2
2014-07-092014-07-10$14.87$14.631.30%2
2014-06-232014-07-08$15.81$14.60-2.54%11
2014-02-132014-03-25$13.31$14.7010.21%28
2013-10-112013-10-24$11.91$11.54-4.02%10
2013-09-092013-10-10$10.71$11.530.87%24
2013-06-282013-07-17$7.16$8.02-0.01%13
2013-05-022013-05-10$3.61$5.1223.93%7
2013-03-262013-04-11$2.52$2.919.22%12
2013-01-242013-02-26$2.47$2.30-3.61%23
2012-12-212012-12-31$2.27$2.26-2.97%6
2012-02-232012-04-10$2.30$2.16-2.46%33