Strategy Zoo / S0989

LongTermTrend_V0989

ARCHIVEDhybrid

llmAdded regime gates to limit trading to uptrends and non-extreme volatility/bubble conditions; introduced a multi-factor exit (20d loss threshold, close below SMA50, and portfolio drawdown trigger) for stronger risk control; implemented position scaling rules to reduce size in high volatility or near-52w-high states and to allow full size when long-term slope is strongly positive; lowered base position to be more conservative.

Fitness
0.2952
Generation
45
Complexity
33
Created
2026-10-01

Lineage

Parents (1)
LongTermTrend_V0958S0958 · gen 44ARCHIVEDllm

entry from LongTermTrend_V0663, exit from PriceMomentum_V0640

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0989  [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.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and rsi_14 > 34.4934):
    position = 0.8
if long and (ret_20d < -0.02 or close < sma_50 or drawdown < -0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR1.6%25.7%-3.3%5.0%
Total Return13.7%98.4%-11.7%103.9%
Sharpe0.181.30-0.150.39
Sortino0.120.99-0.080.25
Calmar0.070.77-0.160.12
Volatility14.3%19.0%14.7%15.5%
Max DD-23.4%-33.1%-20.8%-41.4%
Win Rate38.8%45.9%47.9%43.4%
Avg Win3.2%7.1%2.4%4.2%
Avg Loss-1.9%-1.9%-2.6%-2.1%
Payoff1.713.660.922.00
Expectancy0.1%2.2%-0.2%0.6%
Profit Factor1.083.110.851.54
Trades673748152
Avg Holding Days5.64.73.14.7
Turnover13.519.720.616.5
Exposure12.8%14.4%8.8%12.1%

Growth of $100

LongTermTrend_V0989 vs TSLA Buy & Hold
LongTermTrend_V0989 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-5.5%-0.85-10.7%11
201712.7%0.81-10.3%21
2018-7.5%-0.99-8.6%2
20196.1%0.69-6.2%2
202070.6%2.69-7.1%5
202135.5%1.41-19.8%22
2022-16.7%-1.90-19.1%10

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 testDOWNTREND2750.0%0.000%
hidden testEXPENSIVE8333.7%1.1140%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-14.0%-1.451%
hidden testLOW VOLATILITY4346.0%0.529%
hidden testMEDIUM VOLATILITY251-4.7%-0.2116%
hidden testNORMAL808-6.1%-0.486%
hidden testSIDEWAYS293-5.0%-1.261%
hidden testUPTREND371-1.7%-0.0822%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31139.4%1.6930%
trainEXTREME1009.3%1.551%
trainHIGH VOLATILITY6998.2%0.671%
trainLOW VOLATILITY74513.5%0.8824%
trainMEDIUM VOLATILITY568-18.5%-1.2012%
trainNORMAL1,601-4.9%-0.4010%
trainSIDEWAYS592-3.4%-1.061%
trainUPTREND9028.1%0.3828%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13895.3%3.1341%
validationEXTREME14437.8%2.612%
validationHIGH VOLATILITY258-6.5%-0.661%
validationLOW VOLATILITY18314.8%1.1421%
validationMEDIUM VOLATILITY31555.9%2.1422%
validationNORMAL4740.1%0.0010%
validationSIDEWAYS206-11.0%-1.581%
validationUPTREND42549.2%1.9825%

Trades (full period)

latest 100 of 152
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.73%2
2026-05-292026-06-01$435.79$415.88-1.30%2
2025-12-042026-01-05$454.53$451.67-1.63%21
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-182025-09-19$416.85$426.07-1.85%2
2025-09-162025-09-17$421.62$425.862.10%2
2025-09-122025-09-15$395.94$410.045.72%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.44%2
2025-06-042025-06-05$332.05$284.70-3.00%2
2025-06-022025-06-03$342.69$344.27-1.03%2
2025-05-292025-05-30$358.43$346.460.18%2
2025-05-272025-05-28$362.89$356.905.39%2
2025-05-222025-05-23$341.04$339.341.37%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-252024-09-26$257.02$254.220.70%2
2024-09-232024-09-24$250.00$254.273.78%2
2024-09-182024-09-19$227.20$243.92-0.40%2
2024-09-162024-09-17$226.78$227.87-1.38%2
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-09-042024-09-05$219.41$230.173.18%2
2024-07-112024-07-12$241.03$248.23-6.91%2
2024-07-092024-07-10$262.33$263.262.81%2
2024-07-052024-07-08$251.52$252.941.50%2
2024-07-022024-07-03$231.26$246.397.99%2
2023-09-012023-09-05$245.01$256.49-4.21%2
2023-08-302023-08-31$256.90$258.08-0.25%2
2023-07-202023-07-21$262.90$260.02-7.94%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-142023-07-17$281.38$290.380.84%2
2023-07-122023-07-13$271.99$277.900.49%2
2023-07-102023-07-11$269.61$269.79-1.56%2
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-07-032023-07-05$279.82$282.485.35%2
2023-06-292023-06-30$257.50$261.770.23%2
2023-06-272023-06-28$250.21$256.242.88%2
2023-06-232023-06-26$256.60$241.05-2.58%2
2023-06-212023-06-22$259.46$264.61-4.53%2
2023-06-162023-06-20$260.54$274.451.29%2
2023-06-142023-06-15$256.79$255.90-0.75%2
2023-06-122023-06-13$249.83$258.711.62%2
2023-06-082023-06-09$234.86$244.403.50%2
2023-06-062023-06-07$221.31$224.571.20%2
2023-06-022023-06-05$213.97$217.612.32%2
2022-09-212022-09-22$300.80$288.59-2.21%2
2022-09-192022-09-20$309.07$308.731.35%2
2022-09-152022-09-16$303.75$303.350.14%2
2022-09-132022-09-14$292.13$302.61-3.39%2
2022-08-182022-08-19$302.87$296.67-0.46%2
2022-08-162022-08-17$306.56$304.00-0.87%2
2022-08-052022-08-08$288.17$290.42-5.46%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
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-302021-12-31$356.78$352.26-1.33%2
2021-12-282021-12-29$362.82$362.06-0.56%2
2021-11-232021-11-29$369.68$379.00-5.35%4
2021-10-042021-11-10$260.51$355.9825.18%28
2021-09-272021-10-01$263.79$258.41-0.04%5
2021-09-232021-09-24$251.21$258.130.02%2
2021-09-172021-09-20$253.16$243.390.10%2
2021-09-152021-09-16$251.94$252.331.06%2
2021-09-132021-09-14$247.67$248.160.57%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-022021-09-03$244.13$244.52-0.35%2
2021-08-312021-09-01$245.24$244.700.37%2
2021-08-262021-08-27$233.72$237.31-1.29%2
2021-08-242021-08-25$236.16$237.070.09%2
2021-08-192021-08-20$224.49$226.75-1.96%2
2021-08-132021-08-16$239.06$228.72-0.72%2
2021-08-112021-08-12$235.94$240.75-0.40%2
2021-08-092021-08-10$237.92$236.661.52%2
2021-08-052021-08-06$238.21$233.030.26%2
2021-01-122021-02-11$283.15$270.55-0.64%22
2020-12-102021-01-11$209.02$270.4035.18%21
2020-11-192020-12-08$166.42$216.6324.77%13
2020-11-092020-11-10$140.42$136.79-1.78%2
2020-10-132020-10-20$148.88$140.65-2.21%6
2020-06-252020-06-30$65.73$71.993.89%4
2019-12-162020-01-22$25.43$37.9740.42%25
2019-11-222019-11-25$22.20$22.42-5.07%2
2019-10-212019-10-22$16.90$17.04-1.23%2
2018-11-292018-12-19$22.74$22.20-2.60%14
2018-02-012018-02-06$23.28$22.26-4.95%4
2017-10-182017-10-19$23.98$23.450.72%2
2017-10-132017-10-16$23.70$23.37-0.18%2
2017-09-182017-09-26$25.67$23.02-7.53%7
2017-08-152017-08-18$24.16$23.16-2.77%4
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-052017-06-14$23.15$25.388.28%8
2017-05-122017-05-19$21.65$20.72-2.63%6
2017-04-242017-05-10$20.54$21.683.99%13
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-242017-04-04$17.54$20.2513.40%8
2017-03-202017-03-21$17.46$16.71-0.03%2