Strategy Zoo / S0812

LongTermTrend_V0812

ARCHIVEDhybrid

llmAdded regime gating to only trade in UPTREND / low-medium volatility and non-extreme bubble; revamped entry to require either 100-day trend + positive 50-day slope or a 20-day breakout with short-term momentum; added volatility filter on entry (vol_pctile < 0.75); implemented tiered position sizing by vol_pctile (scale down in high vol) and slightly increase size when 50-day slope is strong; strengthened exits to include a 20-day stop-loss (-3%), a drawdown stop (-12%), and a faster exit on breakdown below sma_50 with a 1-day drop. Reduced base position to 0.7 to lower portfolio risk.

Fitness
0.0695
Generation
37
Complexity
19
Created
2026-09-26

Lineage

Parents (1)
LongTermTrend_V0519S0519 · gen 24ARCHIVEDllm

entry from LongTermTrend_V0323, exit from PriceMomentum_V0449

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0812  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (((close > sma_100 and sma_50_slope > 0.0) or (breakout_20 == 1 and ret_5d > 0.02)) and cumret_252d > -0.2 and vol_pctile < 0.75):
    position = 0.7
if long and (ret_20d < -0.03 or drawdown < -0.12 or (close < sma_50 and ret_1d < -0.02)):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.5%-4.3%-4.1%-3.3%
Total Return-18.3%-12.3%-14.5%-38.8%
Sharpe-0.16-0.22-0.27-0.20
Sortino-0.10-0.13-0.15-0.12
Calmar-0.08-0.16-0.17-0.07
Volatility11.5%14.8%12.5%12.5%
Max DD-33.2%-27.1%-24.3%-47.1%
Win Rate40.7%39.6%50.7%43.3%
Avg Win1.8%2.8%1.9%2.0%
Avg Loss-1.5%-2.1%-2.3%-1.8%
Payoff1.241.320.821.11
Expectancy-0.1%-0.2%-0.2%-0.2%
Profit Factor0.850.870.840.85
Trades1235371247
Avg Holding Days3.52.62.33.0
Turnover21.624.726.823.5
Exposure10.6%7.9%7.0%9.1%

Growth of $100

LongTermTrend_V0812 vs TSLA Buy & Hold
LongTermTrend_V0812 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.6%-1.62-17.6%20
201713.0%1.99-1.7%20
2018-15.4%-1.66-15.3%4
20190.5%0.11-8.0%7
20200.0%0.000.0%0
2021-0.6%0.07-21.2%37
2022-19.4%-1.67-21.7%15

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 testDOWNTREND2720.0%0.000%
hidden testEXPENSIVE8329.5%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-12.2%-1.451%
hidden testLOW VOLATILITY432-4.1%-0.419%
hidden testMEDIUM VOLATILITY2506.7%0.3711%
hidden testNORMAL805-7.0%-0.548%
hidden testSIDEWAYS293-7.9%-1.311%
hidden testUPTREND371-2.4%-0.1217%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3119.3%1.841%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6990.3%0.031%
trainLOW VOLATILITY7453.1%0.2519%
trainMEDIUM VOLATILITY568-11.1%-0.8812%
trainNORMAL1,601-4.2%-0.3313%
trainSIDEWAYS592-5.6%-0.991%
trainUPTREND902-0.5%-0.0323%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2583.4%0.271%
validationLOW VOLATILITY1835.6%0.6216%
validationMEDIUM VOLATILITY315-14.0%-0.769%
validationNORMAL474-5.3%-0.2813%
validationSIDEWAYS206-16.8%-1.551%
validationUPTREND4252.3%0.1214%

Trades (full period)

latest 100 of 247
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-01-082026-01-13$435.80$447.202.69%4
2026-01-062026-01-07$432.96$431.41-3.04%2
2025-12-032026-01-05$446.74$451.671.43%22
2025-11-282025-12-02$430.17$429.240.44%3
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-11-132025-11-14$401.99$404.35-4.79%2
2025-09-122025-09-15$395.94$410.045.01%2
2025-09-042025-09-05$338.53$350.840.79%2
2025-07-312025-08-01$308.27$302.63-2.50%2
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-242025-07-25$305.30$316.06-5.87%2
2025-07-222025-07-23$332.11$332.560.63%2
2025-07-182025-07-21$329.65$328.492.10%2
2025-07-162025-07-17$321.67$319.412.31%2
2025-07-142025-07-15$316.90$310.780.62%2
2025-07-102025-07-11$309.87$313.513.17%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-272025-05-28$362.89$356.904.71%2
2025-05-222025-05-23$341.04$339.341.20%2
2024-10-212024-10-22$218.85$217.97-0.73%2
2024-10-172024-10-18$220.89$220.70-0.28%2
2024-10-152024-10-16$219.57$221.33-0.01%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-10-032024-10-04$240.66$250.08-2.49%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-182024-09-19$227.20$243.92-0.35%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-09-042024-09-05$219.41$230.172.79%2
2024-08-302024-09-03$214.11$210.602.52%2
2024-07-112024-07-12$241.03$248.23-6.05%2
2024-07-092024-07-10$262.33$263.262.46%2
2024-07-052024-07-08$251.52$252.941.32%2
2024-07-022024-07-03$231.26$246.396.99%2
2024-01-032024-01-04$238.45$237.93-2.95%2
2023-08-242023-08-25$230.04$238.59-2.15%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
2023-07-282023-07-31$266.44$267.432.80%2
2023-07-262023-07-27$264.35$255.71-0.39%2
2023-07-242023-07-25$269.06$265.282.29%2
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-272023-06-28$250.21$256.242.52%2
2023-06-232023-06-26$256.60$241.05-2.26%2
2023-06-212023-06-22$259.46$264.61-3.96%2
2023-06-162023-06-20$260.54$274.451.13%2
2023-06-142023-06-15$256.79$255.90-0.66%2
2023-06-122023-06-13$249.83$258.711.41%2
2023-06-082023-06-09$234.86$244.403.07%2
2023-06-062023-06-07$221.31$224.571.05%2
2023-06-022023-06-05$213.97$217.612.03%2
2022-09-212022-09-22$300.80$288.59-1.94%2
2022-09-192022-09-20$309.07$308.731.18%2
2022-09-152022-09-16$303.75$303.350.12%2
2022-09-122022-09-13$304.42$292.130.97%2
2022-08-182022-08-19$302.87$296.67-0.40%2
2022-08-162022-08-17$306.56$304.00-0.76%2
2022-08-052022-08-08$288.17$290.42-4.78%2
2022-04-262022-04-27$292.14$293.84-8.66%2
2022-04-222022-04-25$335.02$332.67-0.40%2
2022-04-202022-04-21$325.73$336.26-3.61%2
2022-04-182022-04-19$334.76$342.721.23%2
2022-04-132022-04-14$340.79$328.332.37%2
2022-04-082022-04-11$341.83$325.31-2.24%2
2022-04-052022-04-07$363.75$352.42-6.27%3
2022-01-122022-01-13$368.74$343.852.61%2
2022-01-032022-01-04$399.93$383.209.33%2
2021-12-302021-12-31$356.78$352.26-1.16%2
2021-12-272021-12-29$364.65$362.061.27%3
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