Strategy Zoo / S0988

LongTermTrend_V0988

ARCHIVEDhybrid

llmSimplified and regularized entry to reduce overfitting: keep long-term trend or recent 20d strength + short-term momentum (MACD or price>50SMA), require mild RSI floor and not-too-far below 50SMA. Added robust exits: 20d downside stop (-2%), plus breaks below 20SMA or 50SMA and extreme RSI to cut losses/rotations earlier. Added regime gates to block DOWNTREND, HIGH_VOLATILITY and EXPENSIVE/EXTREME bubble states. Added position scaling rules: reduce size in high vol (vol_pctile) and keep full size on strong volume spikes. Reduced base position from 1.0 to 0.8 to lower drawdown risk.

Fitness
0.0534
Generation
45
Complexity
19
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_V0988  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (((close > sma_200 and sma_200_slope > -0.001) or ret_20d > 0.04) and (macd_hist > 0.0 or close > sma_50) and rsi_14 > 35.0 and dist_sma_50 > -0.15):
    position = 0.8
if long and (ret_20d < -0.02 or close < sma_20 or close < sma_50 or rsi_14 > 78.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-5.6%-1.8%-11.0%-6.2%
Total Return-36.7%-5.3%-35.1%-61.1%
Sharpe-0.26-0.00-0.51-0.28
Sortino-0.19-0.00-0.39-0.20
Calmar-0.11-0.05-0.31-0.10
Volatility16.5%18.7%19.1%17.6%
Max DD-49.9%-33.7%-35.6%-64.9%
Win Rate33.8%44.1%32.5%35.7%
Avg Win3.3%3.1%3.6%3.3%
Avg Loss-2.1%-2.5%-2.4%-2.3%
Payoff1.571.261.491.47
Expectancy-0.3%-0.0%-0.5%-0.3%
Profit Factor0.810.990.720.82
Trades1305980269
Avg Holding Days4.43.83.74.1
Turnover26.131.534.429.3
Exposure17.6%17.5%18.6%17.8%

Growth of $100

LongTermTrend_V0988 vs TSLA Buy & Hold
LongTermTrend_V0988 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-6.7%-0.55-15.3%19
201714.5%1.71-4.3%13
2018-10.1%-0.80-15.6%6
2019-10.8%-0.42-22.6%11
20200.0%0.000.0%0
202110.7%0.58-16.8%40
2022-22.8%-1.09-33.7%18

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 testDOWNTREND275-3.7%-1.671%
hidden testEXPENSIVE8334.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-8.7%-0.632%
hidden testLOW VOLATILITY4341.5%0.0828%
hidden testMEDIUM VOLATILITY251-30.3%-1.2619%
hidden testNORMAL808-14.9%-0.7421%
hidden testSIDEWAYS293-42.9%-2.0231%
hidden testUPTREND37111.9%0.5022%
trainDOWNTREND518-6.5%-1.221%
trainEXPENSIVE3119.6%1.732%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6991.0%0.061%
trainLOW VOLATILITY7459.3%0.5832%
trainMEDIUM VOLATILITY568-28.9%-1.5319%
trainNORMAL1,601-7.4%-0.4022%
trainSIDEWAYS592-19.8%-1.0621%
trainUPTREND9027.0%0.3725%
validationDOWNTREND125-0.8%-2.671%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-5.8%-0.371%
validationLOW VOLATILITY18316.5%0.8940%
validationMEDIUM VOLATILITY315-5.0%-0.2418%
validationNORMAL474-0.1%-0.0028%
validationSIDEWAYS206-17.1%-0.6630%
validationUPTREND4258.5%0.4916%

Trades (full period)

latest 100 of 269
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-06-052026-06-08$391.00$408.95-5.40%2
2026-06-032026-06-04$423.70$418.45-0.17%2
2026-05-082026-06-02$428.35$423.740.73%17
2026-04-202026-04-21$392.50$386.42-1.78%2
2026-03-172026-03-18$399.27$392.780.59%2
2026-03-132026-03-16$391.20$395.56-0.93%2
2026-03-112026-03-12$407.82$395.011.56%2
2026-03-062026-03-09$396.73$398.68-1.90%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.85%2
2026-02-232026-02-24$399.83$409.38-2.49%2
2026-02-192026-02-20$411.71$411.82-0.08%2
2026-02-172026-02-18$410.63$411.32-1.46%2
2026-02-122026-02-13$417.07$417.44-2.25%2
2026-01-232026-01-26$449.06$435.20-0.21%2
2026-01-142026-01-15$439.20$438.57-1.59%2
2026-01-122026-01-13$448.96$447.200.55%2
2026-01-062026-01-07$432.96$431.41-3.47%2
2025-12-312026-01-02$449.72$438.07-0.99%2
2025-12-032025-12-30$446.74$454.435.56%19
2025-12-012025-12-02$430.14$429.24-0.17%2
2025-11-132025-11-14$401.99$404.35-5.47%2
2025-09-042025-09-15$338.53$410.0414.46%8
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-242025-07-25$305.30$316.06-6.71%2
2025-07-212025-07-23$328.49$332.560.44%3
2025-07-172025-07-18$319.41$329.65-0.72%2
2025-06-022025-06-05$342.69$284.70-3.49%4
2025-05-222025-05-28$341.04$356.906.58%4
2025-05-122025-05-13$318.38$334.075.23%2
2024-10-112024-10-14$217.80$219.16-7.18%2
2024-10-092024-10-10$241.05$238.77-1.29%2
2024-09-232024-10-08$250.00$244.500.78%12
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-09-032024-09-04$210.60$219.41-1.47%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-06-252024-07-03$187.35$246.3920.77%7
2024-06-142024-06-21$178.01$183.01-0.53%5
2024-01-092024-01-10$234.96$233.94-1.99%2
2024-01-052024-01-08$237.49$240.45-0.31%2
2023-12-142024-01-04$251.05$237.93-0.37%14
2023-11-292023-12-13$244.14$239.29-3.31%11
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-11-202023-11-21$235.60$241.200.28%2
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-11-142023-11-15$237.41$242.844.74%2
2023-11-082023-11-09$222.11$209.98-0.19%2
2023-10-172023-10-18$254.85$242.680.13%2
2023-10-132023-10-16$251.12$253.92-2.55%2
2023-10-112023-10-12$262.99$258.87-0.35%2
2023-10-052023-10-10$260.05$263.62-0.62%4
2023-10-032023-10-04$246.53$261.16-1.77%2
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-09-082023-09-11$248.50$273.58-1.11%2
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-08-282023-08-29$238.82$257.18-0.08%2
2023-08-072023-08-08$251.45$249.70-0.92%2
2023-08-032023-08-04$259.32$253.861.48%2
2023-08-012023-08-02$261.07$254.11-2.06%2
2023-07-282023-07-31$266.44$267.433.19%2
2023-07-262023-07-27$264.35$255.71-0.44%2
2023-07-242023-07-25$269.06$265.282.62%2
2023-06-212023-07-21$259.46$260.02-3.32%22
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-05-312023-06-07$203.93$224.577.78%6
2023-04-032023-04-06$194.77$185.06-8.66%4
2023-03-062023-03-07$193.81$187.71-1.77%2
2023-02-282023-03-03$205.71$197.79-6.62%4
2022-09-202022-09-23$308.73$275.33-5.47%4
2022-09-122022-09-14$304.42$302.61-2.16%3
2022-08-242022-08-26$297.10$288.09-0.26%3
2022-08-022022-08-23$300.59$296.45-2.05%16
2022-05-052022-05-06$291.09$288.55-6.82%2
2022-04-262022-04-27$292.14$293.84-9.90%2
2022-04-222022-04-25$335.02$332.67-0.46%2
2022-04-202022-04-21$325.73$336.26-4.12%2
2022-04-182022-04-19$334.76$342.721.41%2
2022-04-132022-04-14$340.79$328.332.71%2
2022-03-182022-04-12$301.80$328.989.51%18
2022-03-102022-03-11$279.43$265.12-2.08%2
2022-03-042022-03-07$279.43$268.19-0.26%2
2022-03-022022-03-03$293.30$279.761.28%2
2022-02-182022-02-22$285.66$273.84-1.93%2
2022-02-162022-02-17$307.80$292.12-0.08%2
2022-02-112022-02-14$286.67$291.92-4.10%2
2022-02-092022-02-10$310.67$301.520.71%2
2022-01-032022-01-04$399.93$383.2010.66%2
2021-12-302021-12-31$356.78$352.26-1.33%2