Strategy Zoo / S1286

LongTermTrend_V1286

ARCHIVEDhybrid

llm1) Added conservative regime gates: allow only UPTREND/SIDEWAYS and exclude HIGH_VOL/EXTREME bubble to reduce regime overfit. 2) Simplified and consolidated entry: require price > sma_50 plus momentum/breakout or 20d return, and modest 252d cumulative filter to avoid weak regimes. 3) Replaced fragile tiny daily stop with robust multi-condition exit: larger 20d stop (-5%), close < sma_50, or negative macd_hist to reduce whipsaw. 4) Introduced position sizing rules: reduce size in high vol (vol_pctile>0.8), moderate size when vol spike (vol_chg>0.15), and full size on strong breakout with high rel_volume. 5) Lowered base_position to 0.7 to reduce leverage and overfitting risk.

Fitness
0.2683
Generation
59
Complexity
16
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V1176S1176 · gen 54ARCHIVEDllm

entry from LongTermTrend_V0959, exit from PriceMomentum_V1021

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1286  [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_50 and (macd_hist > 0.0 or ret_20d > 0.05 or (breakout_50 == 1 and rel_volume > 1.3)) and cumret_252d > 0.02):
    position = 0.7
if long and (ret_20d < -0.05 or close < sma_50 or macd_hist < 0.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.0%21.0%-8.2%1.3%
Total Return-7.5%77.1%-27.3%21.6%
Sharpe-0.011.12-0.610.16
Sortino-0.011.05-0.360.12
Calmar-0.030.99-0.260.03
Volatility13.0%18.5%12.7%14.2%
Max DD-32.7%-21.2%-31.9%-42.7%
Win Rate37.0%49.0%30.8%38.8%
Avg Win3.2%4.8%2.7%3.8%
Avg Loss-2.0%-1.9%-2.3%-2.0%
Payoff1.612.471.171.84
Expectancy-0.1%1.4%-0.8%0.2%
Profit Factor0.952.370.521.16
Trades1084939196
Avg Holding Days4.54.94.74.7
Turnover19.022.914.618.6
Exposure13.6%17.9%10.8%13.8%

Growth of $100

LongTermTrend_V1286 vs TSLA Buy & Hold
LongTermTrend_V1286 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.5%-0.41-8.2%9
20177.0%0.55-8.9%25
2018-7.9%-1.11-11.4%7
20191.9%0.32-4.9%1
202061.5%2.66-5.8%11
202114.1%0.71-17.9%25
2022-4.0%-0.23-18.6%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 testDOWNTREND278-2.5%-1.371%
hidden testEXPENSIVE835.6%0.2524%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-0.8%-0.111%
hidden testLOW VOLATILITY4406.6%0.4917%
hidden testMEDIUM VOLATILITY250-40.0%-2.5910%
hidden testNORMAL813-9.5%-0.8110%
hidden testSIDEWAYS295-16.8%-1.2516%
hidden testUPTREND371-4.4%-0.2714%
trainDOWNTREND518-2.9%-1.101%
trainEXPENSIVE31123.3%1.2624%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY6995.6%0.511%
trainLOW VOLATILITY7458.7%0.6424%
trainMEDIUM VOLATILITY568-18.7%-1.2915%
trainNORMAL1,601-5.2%-0.4312%
trainSIDEWAYS592-4.1%-0.3613%
trainUPTREND9024.1%0.2421%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13886.4%3.3829%
validationEXTREME14433.0%2.612%
validationHIGH VOLATILITY258-8.3%-1.000%
validationLOW VOLATILITY1831.3%0.0931%
validationMEDIUM VOLATILITY31555.9%2.2225%
validationNORMAL474-2.1%-0.1219%
validationSIDEWAYS206-13.5%-0.8617%
validationUPTREND42543.5%1.9823%

Trades (full period)

latest 100 of 196
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-06-032026-06-04$423.70$418.45-0.15%2
2026-05-272026-06-02$440.36$423.74-2.99%5
2026-05-222026-05-26$426.01$433.591.23%2
2026-05-082026-05-21$428.35$417.850.88%10
2026-04-202026-04-21$392.50$386.42-1.56%2
2025-12-042025-12-30$454.53$454.431.98%18
2025-11-062025-11-07$445.91$429.52-2.59%2
2025-11-032025-11-05$468.37$462.07-1.99%3
2025-10-242025-10-27$433.72$452.42-2.52%2
2025-10-142025-10-15$429.24$435.15-1.21%2
2025-10-092025-10-10$435.54$413.49-0.64%2
2025-10-072025-10-08$433.09$438.69-3.25%2
2025-09-082025-10-06$346.40$453.2515.37%21
2025-09-042025-09-05$338.53$350.840.79%2
2025-08-252025-09-03$346.60$334.09-2.32%7
2025-08-112025-08-21$339.03$320.11-1.34%9
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-212025-07-25$328.49$316.06-5.29%5
2025-06-042025-06-05$332.05$284.70-2.62%2
2025-05-192025-06-03$342.09$344.27-1.52%11
2025-05-122025-05-13$318.38$334.074.58%2
2024-09-252024-10-04$257.02$250.08-3.88%8
2023-12-152024-01-02$253.50$248.42-0.80%11
2023-11-292023-12-14$244.14$251.05-2.24%12
2023-11-222023-11-24$234.21$235.45-2.17%2
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-10-162023-10-17$253.92$254.850.64%2
2023-10-112023-10-13$262.99$251.12-1.40%3
2023-10-062023-10-10$260.53$263.62-0.24%3
2023-07-202023-07-21$262.90$260.02-6.95%2
2023-07-182023-07-19$293.34$291.260.57%2
2023-07-142023-07-17$281.38$290.380.74%2
2023-07-122023-07-13$271.99$277.900.43%2
2023-07-102023-07-11$269.61$269.79-1.37%2
2023-07-062023-07-07$276.54$274.43-1.61%2
2023-07-032023-07-05$279.82$282.484.68%2
2023-06-292023-06-30$257.50$261.770.20%2
2023-06-132023-06-27$258.71$250.21-2.48%10
2022-09-152022-09-23$303.75$275.33-3.37%7
2022-09-132022-09-14$292.13$302.61-2.96%2
2022-08-262022-08-29$288.09$284.82-2.03%2
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-222022-08-23$289.91$296.45-1.73%2
2022-08-152022-08-19$309.32$296.670.53%5
2022-08-022022-08-12$300.59$300.03-2.57%9
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-03-212022-04-11$307.05$325.319.20%16
2021-12-312022-01-03$352.26$399.93-1.03%2
2021-12-282021-12-30$362.82$356.78-0.64%3
2021-11-262021-11-29$360.64$379.00-2.28%2
2021-11-232021-11-24$369.68$372.00-3.03%2
2021-10-122021-11-10$268.57$355.9820.11%22
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-272021-10-07$263.79$264.540.62%9
2021-09-232021-09-24$251.21$258.130.02%2
2021-08-312021-09-21$245.24$246.46-0.18%15
2021-08-252021-08-26$237.07$233.720.13%2
2021-08-232021-08-24$235.43$236.162.54%2
2021-08-192021-08-20$224.49$226.75-1.72%2
2021-08-022021-08-17$236.56$221.90-0.20%12
2021-07-212021-07-22$218.43$216.42-0.69%2
2021-07-162021-07-19$214.74$215.41-0.83%2
2021-07-132021-07-15$222.85$216.87-3.45%3
2021-06-242021-07-12$226.61$228.57-0.06%12
2021-05-032021-05-04$228.30$224.53-2.56%2
2021-04-142021-04-29$244.08$225.67-6.38%12
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.59%2
2021-02-012021-02-02$279.94$290.933.94%2
2021-01-282021-01-29$278.48$264.51-2.47%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-122021-01-25$283.15$293.602.93%9
2021-01-052021-01-11$245.04$270.4013.99%5
2020-12-312021-01-04$235.22$243.260.96%2
2020-12-292020-12-30$222.00$231.590.10%2
2020-12-242020-12-28$220.59$221.231.57%2
2020-12-182020-12-23$231.67$215.33-1.72%4
2020-12-102020-12-17$209.02$218.632.02%6
2020-11-182020-12-08$162.21$216.6330.13%14
2020-11-092020-11-10$140.42$136.79-1.55%2
2020-10-222020-10-23$141.93$140.210.38%2
2020-10-132020-10-20$148.88$140.65-1.93%6
2020-06-292020-06-30$67.29$71.993.48%2
2020-06-252020-06-26$65.73$63.981.69%2
2019-12-172020-01-22$25.27$37.9728.90%24
2019-11-222019-11-25$22.20$22.42-4.44%2
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-12-072018-12-10$23.86$24.34-1.12%2
2018-12-042018-12-06$23.98$24.200.10%2
2018-11-292018-11-30$22.74$23.37-1.49%2
2018-03-132018-03-15$22.79$21.71-3.97%3
2018-02-062018-02-07$22.26$23.000.04%2
2018-01-112018-02-05$22.53$22.211.76%17
2017-12-122017-12-26$22.74$21.15-0.90%10
2017-10-182017-10-20$23.98$23.01-0.91%3
2017-10-162017-10-17$23.37$23.72-1.12%2
2017-10-122017-10-13$23.71$23.700.07%2