Strategy Zoo / S0903

LongTermTrend_V0903

ARCHIVEDhybrid

llmAdded regime gates to avoid high-volatility and extreme-bubble environments; simplified and consolidated entry rules to focus on 200-day trend confirmation and strong momentum/volume breakouts; tightened slope and cumulative-return filters to reduce chasing bad regimes; replaced fragile single-day exit with multi-condition exit (larger 20d stop, MACD + sma_50 weakness, and drawdown cap) to limit prolonged drawdowns; added volatility-based position sizing (vol_pctile tiers) and lowered base position to reduce risk in uncertain periods.

Fitness
0.1157
Generation
41
Complexity
24
Created
2026-09-30

Lineage

Parents (1)
LongTermTrend_V0756S0756 · gen 35ARCHIVEDllm

entry from LongTermTrend_V0583, exit from PriceMomentum_V0690

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0903  [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_200 and sma_200_slope > -0.0015 and ret_20d > 0.04 and cumret_252d > -0.15 and dist_sma_50 > -0.1) or ((macd_hist > 0.0 and close > sma_50 and sma_50 > sma_200) or (breakout_50 == 1 and rel_volume > 1.6))):
    position = 0.8
if long and (ret_20d < -0.05 or (macd_hist < 0.0 and close < sma_50) or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.1%1.0%-4.4%-2.1%
Total Return-15.9%3.1%-15.5%-26.7%
Sharpe-0.070.15-0.14-0.04
Sortino-0.050.10-0.09-0.03
Calmar-0.060.03-0.15-0.04
Volatility14.7%19.6%18.8%16.9%
Max DD-37.4%-33.6%-29.3%-47.7%
Win Rate39.5%30.8%30.0%35.2%
Avg Win4.5%12.8%7.1%6.4%
Avg Loss-3.5%-4.6%-4.0%-3.8%
Payoff1.292.791.791.68
Expectancy-0.3%0.8%-0.6%-0.2%
Profit Factor0.841.240.770.91
Trades38132071
Avg Holding Days12.314.510.612.2
Turnover7.66.98.67.7
Exposure17.1%18.5%16.4%17.2%

Growth of $100

LongTermTrend_V0903 vs TSLA Buy & Hold
LongTermTrend_V0903 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-10.4%-0.83-16.9%4
20179.5%1.04-4.9%8
2018-15.0%-1.31-15.8%3
20195.9%0.73-5.9%1
20200.0%0.000.0%0
202112.8%0.61-20.2%7
2022-17.5%-0.82-33.6%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 testDOWNTREND274-2.8%-1.381%
hidden testEXPENSIVE8334.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-13.9%-0.832%
hidden testLOW VOLATILITY4341.7%0.1024%
hidden testMEDIUM VOLATILITY2501.0%0.0418%
hidden testNORMAL807-6.7%-0.3419%
hidden testSIDEWAYS293-21.1%-0.9326%
hidden testUPTREND37111.9%0.5420%
trainDOWNTREND518-5.1%-1.211%
trainEXPENSIVE31110.9%1.902%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-1.8%-0.171%
trainLOW VOLATILITY74515.7%0.9233%
trainMEDIUM VOLATILITY568-22.3%-1.4216%
trainNORMAL1,601-3.5%-0.2121%
trainSIDEWAYS592-8.7%-0.6016%
trainUPTREND9026.1%0.3427%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2584.0%0.271%
validationLOW VOLATILITY1839.0%0.4845%
validationMEDIUM VOLATILITY315-1.4%-0.0618%
validationNORMAL4744.7%0.1930%
validationSIDEWAYS206-27.1%-1.1728%
validationUPTREND42518.4%0.8919%

Trades (full period)

71 trades
EntryExitEntry PxExit PxReturnDays
2026-05-082026-06-08$428.35$408.95-4.08%21
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-042026-01-05$454.53$451.67-1.63%21
2025-08-252025-09-15$346.60$410.0412.89%15
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-292025-08-01$321.20$302.63-4.42%4
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-06-022025-06-06$342.69$295.14-14.50%5
2025-05-222025-05-28$341.04$356.906.58%4
2025-05-122025-05-13$318.38$334.075.23%2
2024-09-232024-10-14$250.00$219.16-6.94%16
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-07-022024-07-12$231.26$248.2311.75%8
2023-11-162024-01-10$233.59$233.94-2.64%37
2023-10-162023-10-19$253.92$220.11-2.83%4
2023-10-112023-10-13$262.99$251.12-1.60%3
2023-10-062023-10-10$260.53$263.62-0.28%3
2023-08-302023-09-25$256.90$246.99-3.85%18
2023-06-262023-08-02$241.05$254.111.46%27
2022-09-202022-09-26$308.73$276.01-8.95%5
2022-09-122022-09-14$304.42$302.61-2.16%3
2022-08-042022-08-31$308.63$275.61-7.85%20
2022-03-212022-04-27$307.05$293.84-2.35%27
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-312022-01-04$352.26$383.209.53%3
2021-12-282021-12-30$362.82$356.78-0.73%3
2021-12-092021-12-10$334.60$339.01-5.03%2
2021-11-232021-12-01$369.68$365.00-0.96%6
2021-08-032021-11-10$236.58$355.9834.50%71
2021-06-142021-07-26$205.90$219.214.30%30
2021-05-032021-05-05$228.30$223.65-4.21%3
2021-04-142021-04-30$244.08$236.48-9.14%13
2019-11-222019-12-17$22.20$25.275.89%17
2018-11-272018-12-20$22.93$21.03-3.12%17
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-01-222018-02-09$23.44$20.69-8.08%15
2017-12-122017-12-26$22.74$21.15-1.04%10
2017-10-182017-10-23$23.98$22.47-2.55%4
2017-10-162017-10-17$23.37$23.72-1.28%2
2017-10-122017-10-13$23.71$23.700.08%2
2017-03-242017-03-28$17.54$18.504.67%3
2017-03-202017-03-22$17.46$17.00-3.46%3
2017-01-312017-02-03$16.80$16.760.14%4
2016-12-282017-01-25$14.65$16.9612.46%19
2016-07-222016-08-29$14.82$14.35-0.31%27
2016-06-082016-06-16$15.70$14.53-5.20%7
2016-03-292016-05-04$15.34$14.840.65%27
2016-03-212016-03-24$15.89$15.18-3.63%4
2015-10-012015-10-02$15.99$16.50-2.90%2
2015-09-212015-09-30$17.61$16.56-4.45%8
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-04-282015-07-28$15.37$17.657.37%64
2014-11-112014-12-02$16.74$15.43-3.50%15
2014-10-082014-10-09$17.29$17.13-0.25%2
2014-07-312014-09-23$14.89$16.697.35%38
2014-06-062014-07-17$13.88$14.363.93%29
2014-05-282014-06-04$14.02$13.60-2.66%6
2014-01-132014-01-14$9.29$10.75-3.66%2
2014-01-072014-01-08$9.96$10.091.12%2
2013-03-262013-04-02$2.52$2.9613.44%5
2013-03-082013-03-18$2.56$2.34-6.31%7
2013-02-152013-02-22$2.47$2.41-6.61%5
2013-02-122013-02-14$2.53$2.55-0.10%3
2013-01-232013-01-24$2.40$2.471.68%2
2012-11-062013-01-14$2.08$2.223.52%47
2012-09-182012-09-21$2.09$2.00-4.20%4
2012-07-062012-07-24$2.07$1.99-1.50%13
2012-06-272012-07-03$2.13$2.04-3.22%5
2012-06-192012-06-25$2.14$2.214.76%5
2012-02-152012-04-10$2.24$2.160.02%38