Strategy Zoo / S0484

LongTermTrend_V0484

ARCHIVEDhybrid

llm1) Simplified and strengthened entry: require either clear long-term uptrend (close>200SMA & 200SMA slope>0), or short-term uptrend (close>50SMA & 50SMA slope>0), or meaningful 20d momentum (>4%). 2) Added volatility and recent-year performance filters at entry (vol_pctile<0.75, cumret_252d>-15%) to avoid entering into high-vol/deeply losing regimes. 3) Reworked exit to be multi-condition: exit on weak 20d returns, bearish 50SMA break with negative slope, sudden drawdown limit, or volatility spike (vol_pctile>0.9). 4) Added regime gates to restrict trading to UPTREND/SIDEWAYS and non-HIGH volatility, and avoid EXTREME bubble regimes. 5) Introduced volatility-based position sizing rules (low->0.8, medium->0.5, high->0.0) and reduced base position to 0.6 to lower tail risk and drawdown.

Fitness
0.2071
Generation
22
Complexity
21
Created
2026-09-19

Lineage

Parents (1)
LongTermTrend_V0165S0165 · gen 8ARCHIVEDllm

entry from LongTermTrend_V0140, exit from PriceMomentum_V0160

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0484  [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.0) or (close > sma_50 and sma_50_slope > 0.0) or ret_20d > 0.04) and vol_pctile < 0.75 and cumret_252d > -0.15):
    position = 0.6
if long and (ret_20d < 0.02 or (close < sma_50 and sma_50_slope < 0.0) or drawdown < -0.08 or vol_pctile > 0.9):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-4.0%20.2%-11.7%-1.4%
Total Return-27.6%73.8%-36.9%-19.2%
Sharpe-0.211.04-0.84-0.02
Sortino-0.181.18-0.70-0.02
Calmar-0.091.02-0.27-0.03
Volatility14.4%19.6%13.7%15.4%
Max DD-42.3%-19.9%-43.8%-49.0%
Win Rate42.8%49.0%42.4%44.1%
Avg Win1.5%2.4%1.3%1.7%
Avg Loss-1.3%-1.5%-1.4%-1.3%
Payoff1.151.640.951.27
Expectancy-0.1%0.4%-0.2%0.0%
Profit Factor0.861.570.701.00
Trades325155184664
Avg Holding Days2.62.52.12.5
Turnover48.962.059.854.3
Exposure15.7%18.4%13.5%15.7%

Growth of $100

LongTermTrend_V0484 vs TSLA Buy & Hold
LongTermTrend_V0484 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-13.1%-1.87-14.5%35
2017-1.6%-0.04-17.5%56
20180.4%0.10-5.4%16
2019-3.6%-0.26-13.7%16
202055.7%2.70-7.0%18
202114.9%0.68-18.8%89
2022-5.0%-0.26-13.0%47

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 testDOWNTREND267-7.7%-2.001%
hidden testEXPENSIVE83-2.6%-0.1326%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.1%-0.451%
hidden testLOW VOLATILITY4292.6%0.2019%
hidden testMEDIUM VOLATILITY248-42.5%-2.5417%
hidden testNORMAL800-13.1%-0.9913%
hidden testSIDEWAYS293-30.9%-1.8518%
hidden testUPTREND3711.0%0.0719%
trainDOWNTREND518-12.0%-1.301%
trainEXPENSIVE31126.7%1.4527%
trainEXTREME1007.0%1.551%
trainHIGH VOLATILITY699-3.1%-0.231%
trainLOW VOLATILITY745-0.2%-0.0226%
trainMEDIUM VOLATILITY568-6.6%-0.4020%
trainNORMAL1,601-9.4%-0.6814%
trainSIDEWAYS592-5.1%-0.4013%
trainUPTREND9023.5%0.2026%
validationDOWNTREND125-3.4%-1.730%
validationEXPENSIVE13870.7%2.9434%
validationEXTREME14431.9%2.852%
validationHIGH VOLATILITY2586.3%0.451%
validationLOW VOLATILITY1832.3%0.1629%
validationMEDIUM VOLATILITY31542.3%1.6727%
validationNORMAL4742.1%0.1119%
validationSIDEWAYS206-16.8%-0.9320%
validationUPTREND42545.3%1.9923%

Trades (full period)

latest 100 of 664
EntryExitEntry PxExit PxReturnDays
2026-07-022026-07-06$393.45$419.77-4.61%2
2026-06-302026-07-01$420.60$425.301.16%2
2026-06-232026-06-24$381.61$375.53-3.59%2
2026-06-162026-06-17$404.66$396.38-1.07%2
2026-06-122026-06-15$406.43$411.150.97%2
2026-06-092026-06-10$396.68$381.59-1.92%2
2026-06-042026-06-05$418.45$391.00-0.86%2
2026-06-022026-06-03$423.74$423.701.01%2
2026-05-292026-06-01$435.79$415.88-0.98%2
2026-05-272026-05-28$440.36$442.100.82%2
2026-05-222026-05-26$426.01$433.591.05%2
2026-05-202026-05-21$417.26$417.851.83%2
2026-05-182026-05-19$409.99$404.11-1.86%2
2026-05-142026-05-15$443.30$422.24-0.39%2
2026-05-122026-05-13$433.45$445.27-1.68%2
2026-05-082026-05-11$428.35$445.002.29%2
2026-04-202026-04-21$392.50$386.42-1.34%2
2026-03-172026-03-18$399.27$392.780.44%2
2026-03-122026-03-13$395.01$391.20-2.00%2
2026-03-102026-03-11$399.24$407.82-0.04%2
2026-03-062026-03-09$396.73$398.68-1.42%2
2026-03-042026-03-05$405.94$405.551.94%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.39%2
2026-02-242026-02-25$409.38$417.401.31%2
2026-02-202026-02-23$411.82$399.83-0.10%2
2026-02-182026-02-19$411.32$411.71-0.02%2
2026-02-132026-02-17$417.44$410.63-0.07%2
2026-02-112026-02-12$428.27$417.070.31%2
2026-02-092026-02-10$417.32$425.210.79%2
2026-02-052026-02-06$397.21$411.11-1.42%2
2026-02-032026-02-04$421.96$406.01-0.10%2
2026-01-302026-02-02$430.41$421.811.87%2
2026-01-282026-01-29$431.46$416.56-0.04%2
2026-01-262026-01-27$435.20$430.90-1.97%2
2026-01-222026-01-23$449.36$449.062.37%2
2026-01-202026-01-21$419.25$431.44-2.62%2
2026-01-152026-01-16$438.57$437.50-0.21%2
2026-01-132026-01-14$447.20$439.20-0.35%2
2026-01-092026-01-12$445.01$448.961.15%2
2026-01-072026-01-08$431.41$435.80-0.33%2
2026-01-052026-01-06$451.67$432.961.74%2
2025-12-102026-01-02$451.45$438.070.60%16
2025-12-082025-12-09$439.58$445.17-2.15%2
2025-12-042025-12-05$454.53$455.000.93%2
2025-12-022025-12-03$429.24$446.74-0.25%2
2025-11-282025-12-01$430.17$430.140.38%2
2025-11-252025-11-26$419.40$426.580.11%2
2025-11-212025-11-24$391.09$417.78-0.75%2
2025-11-192025-11-20$403.99$395.230.29%2
2025-11-172025-11-18$408.92$401.250.56%2
2025-11-132025-11-14$401.99$404.35-4.10%2
2025-11-112025-11-12$439.62$430.60-0.88%2
2025-10-312025-11-10$456.56$445.23-1.46%7
2025-10-282025-10-30$460.55$440.101.08%3
2025-10-242025-10-27$433.72$452.42-2.16%2
2025-10-212025-10-23$442.60$448.98-1.26%3
2025-10-172025-10-20$439.31$447.431.36%2
2025-10-152025-10-16$435.15$428.750.71%2
2025-10-132025-10-14$435.90$429.243.13%2
2025-10-092025-10-10$435.54$413.49-0.55%2
2025-10-062025-10-08$453.25$438.690.39%3
2025-09-292025-10-03$443.21$429.83-0.67%5
2025-09-242025-09-26$442.79$440.40-0.42%3
2025-09-222025-09-23$434.21$425.851.03%2
2025-09-182025-09-19$416.85$426.07-1.39%2
2025-09-162025-09-17$421.62$425.861.57%2
2025-09-122025-09-15$395.94$410.044.29%2
2025-09-102025-09-11$347.79$368.810.02%2
2025-09-082025-09-09$346.40$346.97-0.88%2
2025-09-042025-09-05$338.53$350.840.68%2
2025-09-022025-09-03$329.36$334.09-0.93%2
2025-08-282025-08-29$345.98$333.87-0.74%2
2025-08-262025-08-27$351.67$349.600.76%2
2025-08-222025-08-25$340.01$346.603.61%2
2025-08-192025-08-20$329.31$323.90-1.17%2
2025-08-152025-08-18$330.56$335.16-1.02%2
2025-08-132025-08-14$339.38$335.58-0.38%2
2025-08-112025-08-12$339.03$340.841.59%2
2025-08-052025-08-06$308.72$319.91-0.22%2
2025-07-312025-08-01$308.27$302.63-2.14%2
2025-07-292025-07-30$321.20$319.04-0.93%2
2025-07-232025-07-24$332.56$305.30-0.04%2
2025-07-212025-07-22$328.49$332.11-0.33%2
2025-07-172025-07-18$319.41$329.65-0.54%2
2025-07-152025-07-16$310.78$321.67-1.28%2
2025-06-052025-06-06$284.70$295.14-8.67%2
2025-06-032025-06-04$344.27$332.050.16%2
2025-05-302025-06-02$346.46$342.69-2.12%2
2025-05-282025-05-29$356.90$358.43-1.11%2
2025-05-232025-05-27$339.34$362.89-0.42%2
2025-05-212025-05-22$334.62$341.04-1.72%2
2025-05-192025-05-20$342.09$343.82-1.47%2
2025-05-122025-05-13$318.38$334.073.93%2
2025-03-042025-03-05$272.04$279.10-2.78%2
2025-02-272025-02-28$281.95$292.98-1.94%2
2025-02-252025-02-26$302.80$290.80-5.15%2
2025-02-212025-02-24$337.80$330.53-2.93%2
2025-02-192025-02-20$360.56$354.400.97%2
2025-02-142025-02-18$355.84$354.11-0.14%2