Strategy Zoo / S1327

LongTermTrend_V1327

ARCHIVEDhybrid

llmReduce exposure and remove redundant ret_20d stacking; add regime gates to only trade in uptrends and lower-to-medium volatility; replace brittle multiple ret_20d checks with a combined trend-or-breakout entry (200-day trend filter OR 20-day breakout momentum) plus RSI and distance-from-52w-high sanity checks; improve exits with SMA50 breakdown and clearer stop-loss (ret_20d < -5% or drawdown < -12%); add position scaling rules to cut size in high volatility or during drawdowns and to allow full size on strong breakout momentum.

Fitness
0.2846
Generation
61
Complexity
17
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V0519S0519 · gen 24ARCHIVEDllm

entry from LongTermTrend_V0323, exit from PriceMomentum_V0449

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1327  [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_200 and sma_200_slope > 0.0) or (breakout_20 > 0.0 and ret_20d > 0.03)) and rsi_14 < 70.0 and dist_52w_high < 0.5):
    position = 0.7
if long and (close < sma_50 or ret_20d < -0.05 or drawdown < -0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.0%26.0%-8.9%1.4%
Total Return-14.8%99.9%-29.4%22.7%
Sharpe-0.071.27-0.720.17
Sortino-0.041.24-0.420.12
Calmar-0.061.22-0.270.03
Volatility14.5%19.7%11.9%15.1%
Max DD-34.8%-21.2%-33.1%-41.7%
Win Rate40.0%41.2%37.7%39.8%
Avg Win2.4%5.1%1.6%3.2%
Avg Loss-1.9%-1.6%-1.9%-1.8%
Payoff1.243.270.881.77
Expectancy-0.2%1.2%-0.5%0.2%
Profit Factor0.832.290.531.17
Trades1206861249
Avg Holding Days4.03.52.83.7
Turnover21.131.722.823.7
Exposure13.3%15.6%8.3%12.5%

Growth of $100

LongTermTrend_V1327 vs TSLA Buy & Hold
LongTermTrend_V1327 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-1.2%-0.57-2.9%9
2017-2.2%-0.06-14.4%23
2018-15.4%-1.66-15.3%4
201918.2%2.31-2.6%5
202058.1%2.54-7.3%15
202123.0%0.89-21.2%41
20220.3%0.07-7.3%11

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE8317.7%0.6735%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-6.1%-1.030%
hidden testLOW VOLATILITY440-1.9%-0.179%
hidden testMEDIUM VOLATILITY250-22.8%-1.3915%
hidden testNORMAL813-11.8%-1.216%
hidden testSIDEWAYS295-6.7%-1.642%
hidden testUPTREND371-16.4%-0.8820%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31118.6%0.7829%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY699-0.8%-0.062%
trainLOW VOLATILITY7459.2%0.6821%
trainMEDIUM VOLATILITY568-14.6%-0.8917%
trainNORMAL1,601-5.3%-0.4411%
trainSIDEWAYS592-5.5%-0.961%
trainUPTREND9021.4%0.0729%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13875.0%2.7442%
validationEXTREME14437.2%2.852%
validationHIGH VOLATILITY2587.4%0.461%
validationLOW VOLATILITY1836.2%0.5121%
validationMEDIUM VOLATILITY31550.4%2.0124%
validationNORMAL4746.7%0.3612%
validationSIDEWAYS206-1.5%-1.410%
validationUPTREND42545.2%1.7328%

Trades (full period)

latest 100 of 249
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.64%2
2026-05-292026-06-01$435.79$415.88-1.14%2
2026-02-172026-02-18$410.63$411.32-1.28%2
2026-02-122026-02-13$417.07$417.44-1.97%2
2026-02-102026-02-11$425.21$428.271.18%2
2026-02-062026-02-09$411.11$417.322.31%2
2026-02-042026-02-05$406.01$397.21-2.78%2
2026-02-022026-02-03$421.81$421.96-1.54%2
2026-01-122026-01-13$448.96$447.200.48%2
2026-01-082026-01-09$435.80$445.010.57%2
2026-01-062026-01-07$432.96$431.41-3.04%2
2025-12-042026-01-05$454.53$451.67-1.39%21
2025-12-022025-12-03$429.24$446.74-0.29%2
2025-11-282025-12-01$430.17$430.140.45%2
2025-11-252025-11-26$419.40$426.580.13%2
2025-11-212025-11-24$391.09$417.78-0.87%2
2025-11-192025-11-20$403.99$395.230.34%2
2025-11-172025-11-18$408.92$401.250.65%2
2025-10-142025-11-14$429.24$404.35-5.41%24
2025-09-262025-10-13$440.40$435.90-1.64%12
2025-09-122025-09-15$395.94$410.045.01%2
2025-09-042025-09-05$338.53$350.840.79%2
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.39%2
2025-07-172025-07-18$319.41$329.65-0.63%2
2025-07-152025-07-16$310.78$321.67-1.49%2
2025-06-042025-06-05$332.05$284.70-2.62%2
2025-06-022025-06-03$342.69$344.27-0.90%2
2025-05-292025-05-30$358.43$346.460.16%2
2025-05-272025-05-28$362.89$356.904.71%2
2025-05-222025-05-23$341.04$339.341.20%2
2025-02-212025-02-24$337.80$330.53-3.42%2
2025-02-192025-02-20$360.56$354.401.13%2
2025-02-142025-02-18$355.84$354.11-0.16%2
2025-02-122025-02-13$336.51$355.941.57%2
2025-02-102025-02-11$350.73$328.50-2.25%2
2025-02-062025-02-07$374.32$361.62-0.85%2
2024-10-112024-10-14$217.80$219.16-6.28%2
2024-10-092024-10-10$241.05$238.77-1.13%2
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-09-262024-09-27$254.22$260.46-0.90%2
2024-09-242024-09-25$254.27$257.021.05%2
2024-09-162024-09-17$226.78$227.87-1.21%2
2024-09-062024-09-09$210.73$216.27-6.05%2
2024-01-112024-01-12$227.22$218.89-2.15%2
2024-01-092024-01-10$234.96$233.94-1.74%2
2024-01-052024-01-08$237.49$240.45-0.27%2
2024-01-032024-01-04$238.45$237.93-2.95%2
2023-08-312023-09-01$258.08$245.010.18%2
2023-08-292023-08-30$257.18$256.905.24%2
2023-08-252023-08-28$238.59$238.822.46%2
2023-08-232023-08-24$236.86$230.040.96%2
2023-08-212023-08-22$231.28$233.194.99%2
2023-08-172023-08-18$219.22$215.49-2.12%2
2023-08-152023-08-16$232.96$225.60-2.12%2
2023-08-112023-08-14$242.65$239.76-0.91%2
2023-08-092023-08-10$242.19$245.34-2.24%2
2023-08-072023-08-08$251.45$249.70-0.80%2
2023-08-032023-08-04$259.32$253.861.29%2
2023-08-012023-08-02$261.07$254.11-1.80%2
2022-09-202022-09-21$308.73$300.80-0.22%2
2022-08-162022-08-17$306.56$304.00-0.76%2
2022-05-042022-05-05$317.54$291.093.20%2
2022-04-252022-04-26$332.67$292.14-0.63%2
2022-04-212022-04-22$336.26$335.022.12%2
2022-04-192022-04-20$342.72$325.731.52%2
2022-04-142022-04-18$328.33$334.76-2.70%2
2022-04-122022-04-13$328.98$340.790.65%2
2022-04-082022-04-11$341.83$325.31-2.24%2
2022-04-062022-04-07$348.59$352.42-3.06%2
2022-01-122022-01-13$368.74$343.852.61%2
2021-12-312022-01-03$352.26$399.93-1.03%2
2021-12-272021-12-30$364.65$356.781.12%4
2021-12-222021-12-23$336.29$355.675.10%2
2021-12-202021-12-21$299.98$312.84-2.59%2
2021-12-162021-12-17$308.97$310.86-3.66%2
2021-12-142021-12-15$319.50$325.33-0.71%2
2021-12-102021-12-13$339.01$322.140.78%2
2021-12-082021-12-09$356.32$334.601.00%2
2021-12-062021-12-07$336.34$350.58-0.55%2
2021-12-022021-12-03$361.53$338.32-0.80%2
2021-11-302021-12-01$381.59$365.000.34%2
2021-11-232021-11-29$369.68$379.00-4.69%4
2021-10-042021-11-10$260.51$355.9821.92%28
2021-09-282021-10-01$259.19$258.41-1.54%4
2021-09-242021-09-27$258.13$263.791.79%2
2021-09-222021-09-23$250.65$251.211.05%2
2021-09-202021-09-21$243.39$246.46-2.84%2
2021-09-162021-09-17$252.33$253.16-0.03%2
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-102021-09-13$245.42$247.67-1.86%2
2021-09-082021-09-09$251.29$251.62-0.05%2
2021-09-032021-09-07$244.52$250.97-0.03%2
2021-09-012021-09-02$244.70$244.13-0.29%2
2021-08-302021-08-31$243.64$245.241.73%2
2021-08-262021-08-27$233.72$237.31-1.13%2
2021-08-242021-08-25$236.16$237.070.08%2
2021-08-192021-08-20$224.49$226.75-1.72%2
2021-08-172021-08-18$221.90$229.66-2.23%2