Strategy Zoo / S1373

LongTermTrend_V1373

ARCHIVEDhybrid

llm1) Added regime gates: only allow UPTREND or SIDEWAYS, block HIGH_VOLATILITY and EXTREME bubble to reduce overfitting to stressed periods. 2) Simplified/regularized entry: removed overfit cumret guards, kept robust signals (200slope+price, 20d momentum, MACD+50, 50-breakout+relvol) and added dist_sma_20 > -8% to avoid buying deep pullbacks. 3) Improved exit: multi-condition exit (MACD < 0 OR price < SMA50 OR 5-day loss < -5%) for faster losses cut. 4) Position sizing rules: reduce size at higher volatility (vol_pctile>0.75 -> 50%, >0.5 -> 75%) to control drawdowns. Aim: better generalization and risk control while preserving trend capture.

Fitness
0.2800
Generation
63
Complexity
21
Created
2026-10-09

Lineage

Parents (1)
LongTermTrend_V1083S1083 · gen 49ELITEllm

swapped indicator ret_20d -> cumret_252d; removed entry condition: rsi_14 > 34.4934

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1373  [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.0024) or ret_20d > 0.085 or (macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and rel_volume > 1.5)) and dist_sma_20 > -0.08 and sma_20 < close):
    position = 1.0
if long and (macd_hist < 0.0 or close < sma_50 or ret_5d < -0.05):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.1%33.9%-9.4%3.6%
Total Return-0.9%140.3%-30.9%69.6%
Sharpe0.101.23-0.290.27
Sortino0.081.18-0.220.22
Calmar-0.001.33-0.220.07
Volatility21.3%26.6%24.1%23.2%
Max DD-49.5%-25.5%-43.3%-49.5%
Win Rate36.6%54.4%29.2%38.6%
Avg Win4.3%5.9%6.4%5.4%
Avg Loss-2.5%-2.9%-3.1%-2.7%
Payoff1.742.052.061.99
Expectancy0.0%1.9%-0.3%0.4%
Profit Factor1.002.440.851.25
Trades1425765264
Avg Holding Days4.24.54.54.4
Turnover35.738.034.935.9
Exposure23.5%26.7%24.1%24.3%

Growth of $100

LongTermTrend_V1373 vs TSLA Buy & Hold
LongTermTrend_V1373 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-8.4%-0.62-14.6%13
201710.3%0.58-12.8%25
2018-14.6%-1.08-19.1%8
2019-4.0%-0.00-24.2%7
202098.2%2.67-10.5%11
202123.0%0.82-25.5%33
2022-1.5%0.03-21.9%11

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-3.6%-1.411%
hidden testEXPENSIVE83-5.0%-0.1540%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-10.8%-0.632%
hidden testLOW VOLATILITY44121.9%0.9234%
hidden testMEDIUM VOLATILITY250-53.8%-1.8130%
hidden testNORMAL814-7.5%-0.3224%
hidden testSIDEWAYS296-38.6%-1.4937%
hidden testUPTREND37115.9%0.5231%
trainDOWNTREND518-8.1%-1.211%
trainEXPENSIVE31141.9%1.5734%
trainEXTREME10011.6%1.551%
trainHIGH VOLATILITY6999.2%0.452%
trainLOW VOLATILITY74515.1%0.7342%
trainMEDIUM VOLATILITY568-23.5%-1.0227%
trainNORMAL1,601-6.2%-0.3023%
trainSIDEWAYS592-15.7%-0.7326%
trainUPTREND90219.7%0.7535%
validationDOWNTREND125-0.4%-2.020%
validationEXPENSIVE138115.9%3.2241%
validationEXTREME14453.1%2.863%
validationHIGH VOLATILITY258-8.3%-0.661%
validationLOW VOLATILITY1833.4%0.1648%
validationMEDIUM VOLATILITY31583.3%2.3336%
validationNORMAL4742.3%0.0930%
validationSIDEWAYS206-23.9%-1.0328%
validationUPTREND42569.9%2.2334%

Trades (full period)

latest 100 of 265
EntryExitEntry PxExit PxReturnDays
2026-10-07—$377.81—-1.59%2OPEN
2026-07-012026-07-06$425.30$419.77-6.64%3
2026-05-272026-06-02$440.36$423.74-4.27%5
2026-05-222026-05-26$426.01$433.591.75%2
2026-05-202026-05-21$417.26$417.853.05%2
2026-05-082026-05-19$428.35$404.11-0.63%8
2026-04-202026-04-21$392.50$386.42-2.22%2
2026-03-122026-03-13$395.01$391.20-3.34%2
2026-02-262026-02-27$408.58$402.51-2.31%2
2026-02-122026-02-13$417.07$417.44-2.81%2
2026-01-232026-01-26$449.06$435.20-0.27%2
2025-12-032025-12-30$446.74$454.436.87%19
2025-12-012025-12-02$430.14$429.24-0.21%2
2025-11-062025-11-07$445.91$429.52-3.69%2
2025-11-032025-11-05$468.37$462.07-2.89%3
2025-10-302025-10-31$440.10$456.56-4.83%2
2025-10-282025-10-29$460.55$461.511.60%2
2025-10-242025-10-27$433.72$452.42-3.60%2
2025-10-222025-10-23$438.97$448.98-1.02%2
2025-10-202025-10-21$447.43$442.601.65%2
2025-10-162025-10-17$428.75$439.31-1.67%2
2025-10-142025-10-15$429.24$435.15-1.73%2
2025-10-092025-10-10$435.54$413.49-0.92%2
2025-10-072025-10-08$433.09$438.69-4.64%2
2025-09-052025-10-06$350.84$453.2526.72%22
2025-08-252025-09-03$346.60$334.09-3.32%7
2025-08-112025-08-21$339.03$320.11-1.94%9
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-212025-07-25$328.49$316.06-7.57%5
2025-07-172025-07-18$319.41$329.65-0.90%2
2025-06-042025-06-05$332.05$284.70-3.75%2
2025-05-192025-06-03$342.09$344.27-2.28%11
2025-05-122025-05-13$318.38$334.076.54%2
2024-10-092024-10-10$241.05$238.77-1.61%2
2024-10-072024-10-08$240.83$244.50-3.90%2
2024-09-232024-10-04$250.00$250.080.81%10
2024-09-162024-09-20$226.78$238.255.71%5
2024-09-052024-09-09$230.17$216.27-4.14%3
2024-09-032024-09-04$210.60$219.41-1.84%2
2024-06-172024-07-12$187.44$248.2335.14%18
2024-01-032024-01-04$238.45$237.93-4.21%2
2023-12-152024-01-02$253.50$248.42-1.22%11
2023-11-292023-12-14$244.14$251.05-3.21%12
2023-11-272023-11-28$236.08$246.720.07%2
2023-11-222023-11-24$234.21$235.45-3.10%2
2023-11-202023-11-21$235.60$241.200.35%2
2023-11-162023-11-17$233.59$234.30-4.01%2
2023-11-142023-11-15$237.41$242.845.92%2
2023-10-182023-10-19$242.68$220.11-4.97%2
2023-10-052023-10-17$260.05$254.85-2.97%9
2023-09-122023-09-22$267.48$244.88-6.72%9
2023-09-082023-09-11$248.50$273.58-1.39%2
2023-09-062023-09-07$251.92$251.49-1.98%2
2023-08-302023-09-05$256.90$256.49-4.92%4
2023-07-202023-07-21$262.90$260.02-9.93%2
2023-07-182023-07-19$293.34$291.260.82%2
2023-07-142023-07-17$281.38$290.381.05%2
2023-07-122023-07-13$271.99$277.900.61%2
2023-07-102023-07-11$269.61$269.79-1.95%2
2023-07-052023-07-07$282.48$274.43-1.37%3
2023-06-302023-07-03$261.77$279.821.46%2
2023-06-282023-06-29$256.24$257.502.21%2
2023-05-312023-06-27$203.93$250.2119.59%19
2023-03-242023-04-06$190.41$185.06-3.68%10
2023-03-022023-03-03$190.90$197.79-6.05%2
2023-02-282023-03-01$205.71$202.77-1.12%2
2022-09-122022-09-23$304.42$275.33-3.89%10
2022-08-242022-08-25$297.10$296.070.02%2
2022-08-222022-08-23$289.91$296.45-2.47%2
2022-08-152022-08-19$309.32$296.670.75%5
2022-08-112022-08-12$286.63$300.03-2.82%2
2022-08-022022-08-10$300.59$294.36-4.88%7
2022-03-182022-04-11$301.80$325.3117.43%17
2022-03-102022-03-11$279.43$265.12-2.60%2
2022-03-032022-03-04$279.76$279.43-4.81%2
2022-02-162022-02-17$307.80$292.12-0.10%2
2022-01-122022-01-13$368.74$343.853.73%2
2021-12-272022-01-03$364.65$399.93-1.15%6
2021-11-302021-12-01$381.59$365.000.48%2
2021-11-232021-11-24$369.68$372.00-4.33%2
2021-10-122021-11-10$268.57$355.9828.98%22
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-09-282021-10-07$259.19$264.54-1.29%8
2021-09-242021-09-27$258.13$263.792.55%2
2021-09-222021-09-23$250.65$251.211.50%2
2021-08-302021-09-21$243.64$246.462.36%16
2021-08-262021-08-27$233.72$237.31-1.61%2
2021-08-242021-08-25$236.16$237.070.11%2
2021-08-192021-08-20$224.49$226.75-2.45%2
2021-07-302021-08-17$229.07$221.901.10%13
2021-07-132021-07-15$222.85$216.87-4.91%3
2021-07-092021-07-12$218.98$228.570.43%2
2021-06-242021-07-08$226.61$217.60-2.01%10
2021-06-222021-06-23$207.90$218.860.26%2
2021-06-182021-06-21$207.77$206.940.89%2
2021-06-152021-06-16$199.79$201.62-3.16%2
2021-06-112021-06-14$203.30$205.90-0.24%2
2021-06-022021-06-03$201.71$190.95-3.21%2
2021-05-282021-06-01$208.41$207.97-1.09%2
2021-04-222021-04-29$239.90$225.67-6.87%6