Strategy Zoo / S1242

LongTermTrend_V1242

ARCHIVEDhybrid

llmSimplified and strengthened entry momentum + trend signals (use sma_50 & slope or 20d momentum), added short-term breakout/5d filter, required recent 252d cumulative loss not too extreme, added a volatility percentiler cap to avoid extreme vols; broadened exits to include shallower 20d stop (-8%), close below sma_50, or large drawdown; added regime gates to allow only UPTREND/SIDEWAYS, avoid HIGH_VOLATILITY and non-normal bubble states; reduced base position to 0.8 for risk control.

Fitness
0.0507
Generation
57
Complexity
19
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V0822S0822 · gen 37ARCHIVEDllm

changed cumret_252d threshold -0.1997 -> -0.4102

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1242  [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_50 and sma_50_slope > 0.0) or ret_20d > 0.08) and (breakout_20 > 0.0 or ret_5d > 0.02) and cumret_252d > -0.3) and vol_pctile < 0.85):
    position = 0.8
if long and (ret_20d < -0.08 or close < sma_50 or drawdown < -0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-4.9%-1.9%2.0%-2.6%
Total Return-32.8%-5.7%7.6%-31.9%
Sharpe-0.35-0.080.24-0.16
Sortino-0.19-0.040.15-0.09
Calmar-0.11-0.060.12-0.05
Volatility12.3%13.3%10.4%12.0%
Max DD-46.0%-30.5%-16.9%-48.5%
Win Rate37.3%37.5%47.3%40.6%
Avg Win2.1%2.5%2.2%2.2%
Avg Loss-2.0%-1.6%-1.6%-1.8%
Payoff1.041.561.321.23
Expectancy-0.5%-0.1%0.2%-0.2%
Profit Factor0.620.931.190.84
Trades754055170
Avg Holding Days4.62.92.53.5
Turnover15.021.323.518.5
Exposure10.6%7.8%6.8%9.1%

Growth of $100

LongTermTrend_V1242 vs TSLA Buy & Hold
LongTermTrend_V1242 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.37-8.9%11
2017-2.6%-0.41-4.8%12
2018-14.3%-1.80-15.2%4
201910.4%1.43-1.8%8
20200.0%0.000.0%0
20215.5%0.37-18.2%23
2022-10.6%-0.92-17.6%17

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE83-0.2%-1.740%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY2545.0%0.940%
hidden testLOW VOLATILITY439-3.1%-0.2511%
hidden testMEDIUM VOLATILITY2509.7%0.907%
hidden testNORMAL8122.9%0.268%
hidden testSIDEWAYS294-15.1%-1.419%
hidden testUPTREND37118.3%1.3610%
trainDOWNTREND518-2.0%-0.710%
trainEXPENSIVE3117.1%1.351%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-0.7%-0.080%
trainLOW VOLATILITY7455.2%0.3921%
trainMEDIUM VOLATILITY568-20.9%-1.4810%
trainNORMAL1,601-6.7%-0.4913%
trainSIDEWAYS592-9.5%-0.918%
trainUPTREND902-2.1%-0.1318%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-16.1%-1.391%
validationLOW VOLATILITY18314.2%1.4016%
validationMEDIUM VOLATILITY3152.3%0.159%
validationNORMAL474-1.7%-0.1012%
validationSIDEWAYS206-14.6%-1.437%
validationUPTREND4255.2%0.3211%

Trades (full period)

latest 100 of 170
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.73%2
2026-06-172026-06-18$396.38$400.49-1.80%2
2026-06-152026-06-16$411.15$404.660.77%2
2026-05-272026-06-02$440.36$423.74-3.41%5
2026-05-122026-05-18$433.45$409.99-4.24%5
2026-05-082026-05-11$428.35$445.003.05%2
2025-12-042026-01-05$454.53$451.67-1.63%21
2025-09-112025-09-12$368.81$395.944.67%2
2025-09-092025-09-10$346.97$347.79-0.03%2
2025-08-292025-09-02$333.87$329.36-2.96%2
2025-08-272025-08-28$349.60$345.98-0.63%2
2025-08-252025-08-26$346.60$351.671.39%2
2025-08-132025-08-14$339.38$335.58-0.50%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-05-122025-05-13$318.38$334.075.23%2
2024-10-012024-10-02$258.02$249.02-1.26%2
2024-09-272024-09-30$260.46$261.631.80%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-162024-09-17$226.78$227.87-1.38%2
2024-09-052024-09-06$230.17$210.733.76%2
2024-07-102024-07-11$263.26$241.030.12%2
2024-07-082024-07-09$252.94$262.330.29%2
2024-07-032024-07-05$246.39$251.525.07%2
2024-07-012024-07-02$209.86$231.264.68%2
2024-06-272024-06-28$197.42$197.880.27%2
2024-06-182024-06-20$184.86$181.57-1.26%2
2024-06-142024-06-17$178.01$187.44-2.11%2
2024-06-032024-06-04$176.29$174.77-0.96%2
2023-12-202023-12-21$247.14$254.50-3.29%2
2023-12-182023-12-19$252.08$257.22-0.61%2
2023-12-112023-12-12$239.74$237.01-1.50%2
2023-12-012023-12-04$238.83$235.58-0.58%2
2023-11-292023-11-30$244.14$240.08-1.00%2
2023-11-202023-11-21$235.60$241.200.28%2
2023-09-182023-09-19$265.28$266.50-2.81%2
2023-09-142023-09-15$276.04$274.391.24%2
2023-09-122023-09-13$267.48$271.30-1.94%2
2023-07-312023-08-01$267.43$261.070.14%2
2023-07-192023-07-20$291.26$262.90-0.73%2
2023-07-172023-07-18$290.38$293.342.40%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-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
2023-05-312023-06-01$203.93$207.520.94%2
2023-03-012023-03-02$202.77$190.90-1.30%2
2022-09-202022-09-21$308.73$300.80-0.25%2
2022-09-162022-09-19$303.35$309.07-0.27%2
2022-09-142022-09-15$302.61$303.752.71%2
2022-09-122022-09-13$304.42$292.131.10%2
2022-09-082022-09-09$289.26$299.681.41%2
2022-08-192022-08-22$296.67$289.91-1.80%2
2022-08-172022-08-18$304.00$302.87-0.83%2
2022-08-152022-08-16$309.32$306.562.32%2
2022-08-042022-08-05$308.63$288.170.16%2
2022-08-022022-08-03$300.59$307.400.73%2
2022-05-052022-05-06$291.09$288.55-6.82%2
2022-04-252022-04-26$332.67$292.14-0.72%2
2022-04-202022-04-21$325.73$336.26-4.12%2
2022-04-042022-04-07$381.82$352.42-2.97%4
2022-03-292022-04-01$366.52$361.53-1.20%4
2022-03-252022-03-28$336.88$363.95-0.42%2
2022-03-232022-03-24$333.04$337.970.25%2
2021-12-272021-12-31$364.65$352.260.10%5
2021-11-232021-11-29$369.68$379.00-5.35%4
2021-10-082021-11-10$261.83$355.9822.85%24
2021-09-272021-10-01$263.79$258.41-0.04%5
2021-09-202021-09-21$243.39$246.46-3.25%2
2021-09-162021-09-17$252.33$253.16-0.04%2
2021-09-102021-09-13$245.42$247.67-2.13%2
2021-09-082021-09-09$251.29$251.62-0.06%2
2021-09-032021-09-07$244.52$250.97-0.03%2
2021-09-012021-09-02$244.70$244.13-0.34%2
2021-08-302021-08-31$243.64$245.241.97%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-132021-08-16$239.06$228.72-0.72%2
2021-08-052021-08-06$238.21$233.030.26%2
2021-08-032021-08-04$236.58$236.97-0.15%2
2021-07-302021-08-02$229.07$236.561.00%2
2021-07-012021-07-02$225.97$226.30-0.37%2
2021-06-292021-06-30$226.92$226.57-1.08%2
2021-06-242021-06-25$226.61$223.962.67%2
2021-04-272021-04-28$234.91$231.47-3.78%2
2021-04-192021-04-20$238.21$239.66-2.88%2
2021-04-152021-04-16$246.28$246.590.56%2
2019-12-112019-12-17$23.51$25.277.29%5
2019-10-182019-10-21$17.13$16.90-1.69%2
2019-10-162019-10-17$17.32$17.460.42%2
2019-09-172019-09-18$16.32$16.230.49%2
2019-09-132019-09-16$16.35$16.19-0.38%2