Strategy Zoo / S1504

LongTermTrend_V1504

ARCHIVEDhybrid

llmReplaced repetitive ret_20d rules with a simpler trend/momentum entry: (close>sma_50 & sma_50_slope>0 & ret_20d>3%) OR (breakout_20 & macd_hist>0 & cumret_252d>-20%). Added stronger exit: ret_20d<-3% OR close<sma_50 OR drawdown<-6% to limit large drawdowns. Added regime gates to avoid entries in high-volatility or bubble regimes (allow only UPTREND/SIDEWAYS, LOW/MEDIUM volatility, NORMAL bubble). Introduced volatility-based position sizing: reduce size to 40% when vol_pctile>0.7. Lowered base_position to 0.8 to temper overall exposure.

Fitness
0.0516
Generation
69
Complexity
16
Created
2026-10-13

Lineage

Parents (1)
LongTermTrend_V1110S1110 · gen 51ARCHIVEDllm

entry = LongTermTrend_V0605 OR PriceMomentum_V1003

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1504  [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 and ret_20d > 0.03) or (breakout_20 > 0.0 and macd_hist > 0.0 and cumret_252d > -0.2)):
    position = 0.8
if long and (ret_20d < -0.03 or close < sma_50 or drawdown < -0.06):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-5.5%0.0%-10.1%-5.6%
Total Return-36.1%0.0%-33.1%-57.3%
Sharpe-0.420.07-0.71-0.40
Sortino-0.240.04-0.39-0.22
Calmar-0.140.00-0.27-0.09
Volatility11.6%13.3%13.7%12.5%
Max DD-40.3%-27.4%-37.7%-62.8%
Win Rate40.1%52.7%45.7%44.2%
Avg Win1.6%1.8%1.9%1.7%
Avg Loss-1.5%-1.9%-2.5%-1.9%
Payoff1.020.940.790.93
Expectancy-0.3%0.0%-0.5%-0.3%
Profit Factor0.691.050.660.74
Trades1425581278
Avg Holding Days2.52.32.12.3
Turnover28.529.334.530.2
Exposure8.5%7.5%7.7%8.1%

Growth of $100

LongTermTrend_V1504 vs TSLA Buy & Hold
LongTermTrend_V1504 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-4.1%-0.57-10.0%22
201710.0%1.68-1.8%12
2018-15.4%-1.50-15.3%14
2019-1.1%-0.12-6.7%16
20200.0%0.000.0%0
20213.2%0.25-22.9%33
2022-3.1%-0.27-7.4%22

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 testDOWNTREND278-1.6%-1.000%
hidden testEXPENSIVE8333.8%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.9%-0.751%
hidden testLOW VOLATILITY443-1.8%-0.1411%
hidden testMEDIUM VOLATILITY250-25.6%-1.518%
hidden testNORMAL816-14.7%-1.059%
hidden testSIDEWAYS298-21.4%-1.5710%
hidden testUPTREND371-6.5%-0.3611%
trainDOWNTREND518-0.4%-0.850%
trainEXPENSIVE3112.9%1.311%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-0.7%-0.070%
trainLOW VOLATILITY7450.0%0.0018%
trainMEDIUM VOLATILITY568-16.7%-1.316%
trainNORMAL1,601-6.8%-0.5210%
trainSIDEWAYS592-8.4%-0.797%
trainUPTREND902-5.3%-0.3514%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY1836.5%0.5517%
validationMEDIUM VOLATILITY3156.1%0.378%
validationNORMAL4741.4%0.0812%
validationSIDEWAYS2066.6%0.776%
validationUPTREND425-1.6%-0.1011%

Trades (full period)

latest 100 of 278
EntryExitEntry PxExit PxReturnDays
2026-10-092026-10-12$382.70$378.031.48%2
2026-10-072026-10-08$377.81$375.00-0.76%2
2026-07-022026-07-06$393.45$419.77-6.15%2
2026-06-042026-06-05$418.45$391.00-1.15%2
2026-06-022026-06-03$423.74$423.701.35%2
2026-05-292026-06-01$435.79$415.88-1.30%2
2026-05-272026-05-28$440.36$442.101.09%2
2026-05-222026-05-26$426.01$433.591.40%2
2026-05-202026-05-21$417.26$417.852.44%2
2026-05-182026-05-19$409.99$404.11-2.48%2
2026-05-142026-05-15$443.30$422.24-0.51%2
2026-05-122026-05-13$433.45$445.27-2.23%2
2026-05-082026-05-11$428.35$445.003.05%2
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-312026-01-02$449.72$438.07-0.99%2
2025-12-122025-12-30$458.96$454.432.18%12
2025-12-082025-12-09$439.58$445.17-2.87%2
2025-09-122025-09-15$395.94$410.045.72%2
2025-09-092025-09-10$346.97$347.79-0.03%2
2025-09-052025-09-08$350.84$346.402.75%2
2025-09-032025-09-04$334.09$338.530.99%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-122025-08-13$340.84$339.380.27%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-272025-05-28$362.89$356.905.39%2
2025-05-222025-05-23$341.04$339.341.37%2
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-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-302024-10-01$261.63$258.020.20%2
2024-09-262024-09-27$254.22$260.46-1.03%2
2024-09-242024-09-25$254.27$257.021.21%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-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-252024-06-26$187.35$196.371.93%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-102024-06-11$173.79$170.66-1.82%2
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-12-282023-12-29$253.18$248.48-2.69%2
2023-12-202023-12-21$247.14$254.50-3.29%2
2023-12-152023-12-18$253.50$252.080.62%2
2023-11-292023-11-30$244.14$240.08-1.00%2
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-09-152023-09-18$274.39$265.28-0.64%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-272023-07-28$255.71$266.44-2.77%2
2023-07-252023-07-26$265.28$264.35-1.28%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
2023-05-312023-06-01$203.93$207.520.94%2
2023-04-032023-04-04$194.77$192.58-5.05%2
2023-03-062023-03-07$193.81$187.71-1.77%2
2023-03-022023-03-03$190.90$197.79-4.84%2
2023-02-282023-03-01$205.71$202.77-0.90%2
2022-09-202022-09-21$308.73$300.80-0.25%2
2022-09-122022-09-13$304.42$292.131.10%2
2022-08-262022-08-29$288.09$284.82-2.31%2
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-222022-08-23$289.91$296.45-1.98%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-122022-08-15$300.03$309.323.58%2
2022-08-102022-08-11$294.36$286.632.95%2
2022-08-082022-08-09$290.42$283.330.47%2
2022-08-042022-08-05$308.63$288.170.16%2
2022-08-022022-08-03$300.59$307.400.73%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-04-112022-04-12$325.31$328.98-4.02%2
2022-04-072022-04-08$352.42$341.830.72%2
2022-04-052022-04-06$363.75$348.59-3.94%2
2022-03-292022-03-30$366.52$364.660.41%2