Strategy Zoo / S0637

LongTermTrend_V0637

ARCHIVEDhybrid

llm1) Simplified and strengthened entry to require momentum OR breakout plus a trend confirmation (sma50>sma200 or positive macd_hist). 2) Relaxed sma_200_slope threshold to avoid overfitting and added a short-term ret_5d filter to capture recent momentum. 3) Improved exit: exit on negative macd_hist OR sharp 5-day loss OR >8% drawdown to cut losses earlier. 4) Added regime gates to avoid entering in downtrends and high volatility, and to avoid extreme bubble regimes. 5) Added volatility-based position scaling (reduce size in high vol) and reduced base position to 0.9 to lower risk.

Fitness
0.0541
Generation
29
Complexity
21
Created
2026-09-24

Lineage

Parents (1)
LongTermTrend_V0452S0452 · gen 21ARCHIVEDllm

entry = LongTermTrend_V0235 OR MACDMomentum_V0272

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0637  [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_200 and sma_200_slope > -0.001) or (ret_20d > 0.04 and ret_5d > 0.01) or (breakout_50 == 1 and rel_volume > 1.3)) and (sma_50 > sma_200 or macd_hist > 0.0)):
    position = 0.9
if long and (macd_hist < 0.0 or ret_5d < -0.06 or drawdown < -0.08):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-12.5%14.4%-13.1%-7.6%
Total Return-65.6%49.8%-40.5%-68.5%
Sharpe-0.540.64-0.55-0.24
Sortino-0.430.64-0.49-0.21
Calmar-0.180.35-0.26-0.11
Volatility20.7%26.5%21.2%22.1%
Max DD-70.4%-40.9%-50.8%-70.4%
Win Rate42.9%46.8%42.2%43.6%
Avg Win2.1%3.4%2.2%2.5%
Avg Loss-2.1%-2.2%-2.0%-2.1%
Payoff0.991.541.091.19
Expectancy-0.3%0.4%-0.2%-0.1%
Profit Factor0.741.360.800.91
Trades331141187659
Avg Holding Days2.42.42.12.3
Turnover74.784.690.880.7
Exposure21.0%23.2%19.9%21.2%

Growth of $100

LongTermTrend_V0637 vs TSLA Buy & Hold
LongTermTrend_V0637 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-12.4%-1.20-15.5%28
201718.6%0.84-17.2%61
2018-12.9%-1.72-14.2%13
20194.6%0.46-11.7%16
202077.5%2.46-10.3%23
2021-10.2%-0.16-40.9%83
2022-6.0%-0.21-19.1%33

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 testDOWNTREND270-7.9%-1.681%
hidden testEXPENSIVE83-38.7%-1.3135%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.3%-0.241%
hidden testLOW VOLATILITY430-3.4%-0.1728%
hidden testMEDIUM VOLATILITY250-35.6%-1.2225%
hidden testNORMAL803-9.6%-0.4620%
hidden testSIDEWAYS293-30.3%-1.3624%
hidden testUPTREND3710.1%0.0031%
trainDOWNTREND518-17.5%-1.271%
trainEXPENSIVE31132.2%1.0437%
trainEXTREME10010.5%1.551%
trainHIGH VOLATILITY699-7.9%-0.392%
trainLOW VOLATILITY745-9.7%-0.5134%
trainMEDIUM VOLATILITY568-17.2%-0.7327%
trainNORMAL1,601-21.0%-1.1219%
trainSIDEWAYS592-16.8%-0.9918%
trainUPTREND902-3.8%-0.1535%
validationDOWNTREND125-5.1%-1.731%
validationEXPENSIVE13888.9%2.6444%
validationEXTREME14447.6%2.853%
validationHIGH VOLATILITY258-7.8%-0.691%
validationLOW VOLATILITY1834.7%0.2632%
validationMEDIUM VOLATILITY31544.3%1.1937%
validationNORMAL474-13.3%-0.5123%
validationSIDEWAYS206-24.7%-1.0022%
validationUPTREND42543.6%1.4230%

Trades (full period)

latest 100 of 659
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.82%2
2026-06-012026-06-02$415.88$423.74-4.29%2
2026-05-282026-05-29$442.10$435.790.18%2
2026-05-182026-05-19$409.99$404.11-2.79%2
2026-05-142026-05-15$443.30$422.24-0.58%2
2026-05-122026-05-13$433.45$445.27-2.51%2
2026-05-082026-05-11$428.35$445.003.44%2
2026-04-202026-04-21$392.50$386.42-2.00%2
2026-03-172026-03-18$399.27$392.780.66%2
2026-03-122026-03-13$395.01$391.20-3.00%2
2026-03-102026-03-11$399.24$407.82-0.05%2
2026-03-062026-03-09$396.73$398.68-2.14%2
2026-03-042026-03-05$405.94$405.552.92%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-2.08%2
2026-02-242026-02-25$409.38$417.401.97%2
2026-02-202026-02-23$411.82$399.83-0.16%2
2026-02-182026-02-19$411.32$411.71-0.03%2
2026-02-132026-02-17$417.44$410.63-0.10%2
2026-02-112026-02-12$428.27$417.070.47%2
2026-02-092026-02-10$417.32$425.211.18%2
2026-02-052026-02-06$397.21$411.11-2.13%2
2026-02-032026-02-04$421.96$406.01-0.15%2
2026-01-302026-02-02$430.41$421.812.81%2
2026-01-282026-01-29$431.46$416.56-0.06%2
2026-01-262026-01-27$435.20$430.90-2.96%2
2026-01-222026-01-23$449.36$449.063.55%2
2026-01-202026-01-21$419.25$431.44-3.93%2
2026-01-152026-01-16$438.57$437.50-0.31%2
2026-01-132026-01-14$447.20$439.20-0.53%2
2026-01-092026-01-12$445.01$448.961.72%2
2026-01-072026-01-08$431.41$435.80-0.50%2
2026-01-052026-01-06$451.67$432.962.61%2
2025-12-312026-01-02$449.72$438.07-1.11%2
2025-12-102025-12-30$451.45$454.432.78%14
2025-12-032025-12-09$446.74$445.172.00%5
2025-12-012025-12-02$430.14$429.24-0.19%2
2025-11-262025-11-28$426.58$430.171.36%2
2025-11-242025-11-25$417.78$419.405.96%2
2025-11-202025-11-21$395.23$391.09-2.13%2
2025-11-182025-11-19$401.25$403.99-1.87%2
2025-11-142025-11-17$404.35$408.920.35%2
2025-11-122025-11-13$430.60$401.99-2.02%2
2025-11-102025-11-11$445.23$439.623.11%2
2025-11-062025-11-07$445.91$429.52-3.32%2
2025-11-032025-11-05$468.37$462.07-2.59%3
2025-10-302025-10-31$440.10$456.56-4.35%2
2025-10-282025-10-29$460.55$461.511.44%2
2025-10-242025-10-27$433.72$452.42-3.24%2
2025-10-222025-10-23$438.97$448.98-0.92%2
2025-10-202025-10-21$447.43$442.601.48%2
2025-10-162025-10-17$428.75$439.31-1.50%2
2025-10-142025-10-15$429.24$435.15-1.55%2
2025-10-102025-10-13$413.49$435.90-4.73%2
2025-10-082025-10-09$438.69$435.540.98%2
2025-10-062025-10-07$453.25$433.094.72%2
2025-09-292025-10-03$443.21$429.83-1.06%5
2025-09-242025-09-26$442.79$440.40-0.68%3
2025-09-222025-09-23$434.21$425.851.54%2
2025-09-182025-09-19$416.85$426.07-2.08%2
2025-09-162025-09-17$421.62$425.862.36%2
2025-09-122025-09-15$395.94$410.046.43%2
2025-09-102025-09-11$347.79$368.810.03%2
2025-09-082025-09-09$346.40$346.97-1.32%2
2025-08-292025-09-02$333.87$329.36-3.33%2
2025-08-272025-08-28$349.60$345.98-0.71%2
2025-08-252025-08-26$346.60$351.671.56%2
2025-08-192025-08-20$329.31$323.90-1.75%2
2025-08-152025-08-18$330.56$335.16-1.52%2
2025-08-132025-08-14$339.38$335.58-0.57%2
2025-08-112025-08-12$339.03$340.842.38%2
2025-07-292025-07-30$321.20$319.04-1.39%2
2025-07-232025-07-24$332.56$305.30-0.06%2
2025-07-212025-07-22$328.49$332.11-0.50%2
2025-07-172025-07-18$319.41$329.65-0.81%2
2025-07-152025-07-16$310.78$321.67-1.92%2
2025-05-302025-06-02$346.46$342.69-3.18%2
2025-05-282025-05-29$356.90$358.43-1.66%2
2025-05-232025-05-27$339.34$362.89-0.63%2
2025-05-212025-05-22$334.62$341.04-2.59%2
2025-05-192025-05-20$342.09$343.82-2.21%2
2025-05-122025-05-13$318.38$334.075.89%2
2025-03-042025-03-05$272.04$279.10-4.16%2
2025-02-272025-02-28$281.95$292.98-2.92%2
2025-02-252025-02-26$302.80$290.80-7.72%2
2025-02-212025-02-24$337.80$330.53-4.39%2
2025-02-192025-02-20$360.56$354.401.46%2
2025-02-142025-02-18$355.84$354.11-0.21%2
2025-02-122025-02-13$336.51$355.942.01%2
2025-02-102025-02-11$350.73$328.50-2.89%2
2025-02-062025-02-07$374.32$361.62-1.10%2
2024-10-232024-10-24$213.65$260.48-1.96%2
2024-10-212024-10-22$218.85$217.97-0.93%2
2024-10-172024-10-18$220.89$220.70-0.36%2
2024-10-152024-10-16$219.57$221.33-0.01%2
2024-10-112024-10-14$217.80$219.16-8.08%2
2024-10-092024-10-10$241.05$238.77-1.45%2
2024-10-072024-10-08$240.83$244.50-3.51%2
2024-10-032024-10-04$240.66$250.08-3.20%2
2024-10-012024-10-02$258.02$249.02-1.42%2