Strategy Zoo / S0918

LongTermTrend_V0918

ARCHIVEDhybrid

llm1) Simplified and de-overfitted entry: replaced overly-specific stacked ret_20d/cumret thresholds with two robust paths — a trend-following path (price>200sma, positive 200sma slope, moderate 20d momentum and 1y participation) and a volume-confirmed 20-day breakout path (breakout_20 + rel_volume>1.5 + macd_hist>0 + price>50sma). 2) Added exit stop: keep macd_hist<0 exit but add a hard drawdown stop (>12%) to limit large losing streaks. 3) Introduced regime gates: allow only UPTREND and low/medium volatility, and exclude bubble regimes above NORMAL to reduce tail risk. 4) Reduced base_position to 0.8 to lower overall risk and drawdown sensitivity. These structural changes aim to improve out-of-sample robustness and reduce overfitting.

Fitness
0.3363
Generation
42
Complexity
16
Created
2026-09-30

Lineage

Parents (1)
LongTermTrend_V0844S0844 · gen 38ARCHIVEDllm

changed sma_200_slope threshold -0.0024 -> -0.0003; changed cumret_252d threshold -0.1997 -> 0.2888

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0918  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and ((close > sma_200 and sma_200_slope > 0.0 and ret_20d > 0.02 and cumret_252d > 0.12 and dist_sma_50 > -0.15) or (breakout_20 == 1 and rel_volume > 1.5 and macd_hist > 0.0 and close > sma_50)):
    position = 0.8
if long and (macd_hist < 0.0 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-5.5%44.2%-0.4%4.6%
Total Return-36.1%199.8%-1.4%93.4%
Sharpe-0.261.520.060.33
Sortino-0.171.640.040.25
Calmar-0.121.58-0.020.10
Volatility16.2%26.4%16.9%18.9%
Max DD-44.7%-28.0%-18.9%-44.7%
Win Rate38.8%55.4%39.4%43.9%
Avg Win3.8%6.1%4.3%4.9%
Avg Loss-3.1%-2.5%-2.7%-2.9%
Payoff1.242.421.601.72
Expectancy-0.4%2.3%0.1%0.6%
Profit Factor0.793.001.041.34
Trades985633187
Avg Holding Days5.25.46.25.5
Turnover19.729.914.220.3
Exposure16.6%26.2%14.6%18.1%

Growth of $100

LongTermTrend_V0918 vs TSLA Buy & Hold
LongTermTrend_V0918 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
20163.0%0.38-9.2%2
20175.5%0.41-14.7%24
2018-17.0%-1.76-17.7%6
2019-0.9%-0.06-8.5%1
2020141.2%3.04-10.8%18
202118.6%0.74-22.6%29
20224.5%0.33-12.6%8

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 testDOWNTREND274-3.3%-0.367%
hidden testEXPENSIVE8333.0%1.2332%
hidden testEXTREME4823.7%0.9313%
hidden testHIGH VOLATILITY254-11.4%-1.011%
hidden testLOW VOLATILITY43422.9%1.4420%
hidden testMEDIUM VOLATILITY250-24.2%-1.0818%
hidden testNORMAL807-3.6%-0.2413%
hidden testSIDEWAYS293-7.8%-0.4919%
hidden testUPTREND37111.2%0.5217%
trainDOWNTREND5180.4%0.054%
trainEXPENSIVE31112.3%0.5227%
trainEXTREME10030.8%1.6022%
trainHIGH VOLATILITY699-9.7%-0.701%
trainLOW VOLATILITY74514.0%0.8830%
trainMEDIUM VOLATILITY568-21.5%-1.1318%
trainNORMAL1,601-9.7%-0.6814%
trainSIDEWAYS592-13.2%-0.8216%
trainUPTREND902-1.1%-0.0624%
validationDOWNTREND125-1.9%-0.137%
validationEXPENSIVE13847.6%1.4538%
validationEXTREME144131.6%4.3218%
validationHIGH VOLATILITY25822.0%1.222%
validationLOW VOLATILITY18325.4%1.3639%
validationMEDIUM VOLATILITY31563.3%1.8339%
validationNORMAL47410.1%0.4525%
validationSIDEWAYS20613.2%0.6425%
validationUPTREND42565.4%2.1033%

Trades (full period)

latest 100 of 187
EntryExitEntry PxExit PxReturnDays
2026-09-012026-09-17$356.09$366.20-2.23%12
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-272026-06-02$440.36$423.74-3.41%5
2026-05-222026-05-26$426.01$433.591.40%2
2026-04-202026-05-21$392.50$417.853.26%24
2025-12-082025-12-30$439.58$454.430.73%16
2025-11-122025-11-13$430.60$401.99-1.80%2
2025-11-102025-11-11$445.23$439.622.76%2
2025-11-062025-11-07$445.91$429.52-2.96%2
2025-11-032025-11-05$468.37$462.07-2.29%3
2025-10-282025-10-29$460.55$461.511.28%2
2025-10-242025-10-27$433.72$452.42-2.88%2
2025-10-222025-10-23$438.97$448.98-0.82%2
2025-10-202025-10-21$447.43$442.601.32%2
2025-10-162025-10-17$428.75$439.31-1.34%2
2025-10-132025-10-14$435.90$429.244.17%2
2025-10-092025-10-10$435.54$413.49-0.73%2
2025-10-072025-10-08$433.09$438.69-3.72%2
2025-09-082025-10-06$346.40$453.2517.65%21
2025-09-042025-09-05$338.53$350.840.90%2
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-22$339.03$340.01-2.46%10
2025-07-212025-08-01$328.49$302.63-5.29%10
2025-06-042025-06-05$332.05$284.70-3.00%2
2025-05-192025-06-03$342.09$344.27-1.77%11
2025-05-122025-05-13$318.38$334.075.23%2
2024-12-112024-12-23$424.77$430.603.98%9
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-022024-07-12$231.26$248.2311.75%8
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-172023-12-14$234.30$251.051.82%19
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-07-222022-08-12$272.24$300.034.34%16
2022-04-192022-04-20$342.72$325.731.74%2
2022-04-142022-04-18$328.33$334.76-3.08%2
2022-04-122022-04-13$328.98$340.790.74%2
2022-03-212022-04-11$307.05$325.3110.49%16
2022-03-012022-03-15$288.12$267.30-9.75%11
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-092021-12-10$334.60$339.01-5.03%2
2021-11-302021-12-01$381.59$365.000.39%2
2021-11-262021-11-29$360.64$379.00-2.60%2
2021-11-232021-11-24$369.68$372.00-3.47%2
2021-10-122021-11-10$268.57$355.9823.06%22
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-282021-10-07$259.19$264.54-1.03%8
2021-09-242021-09-27$258.13$263.792.04%2
2021-09-222021-09-23$250.65$251.211.20%2
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-08-272021-08-30$237.31$243.641.07%2
2021-08-252021-08-26$237.07$233.720.15%2
2021-08-232021-08-24$235.43$236.162.90%2
2021-08-192021-08-20$224.49$226.75-1.96%2
2021-08-032021-08-17$236.58$221.90-2.79%11
2021-07-222021-07-23$216.42$214.46-0.90%2
2021-07-202021-07-21$220.17$218.431.61%2
2021-07-162021-07-19$214.74$215.41-0.94%2
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-112021-07-12$203.30$228.575.99%21
2021-05-032021-05-04$228.30$224.53-2.92%2
2021-04-092021-04-29$225.67$225.671.21%15
2021-02-102021-02-11$268.27$270.55-4.36%2
2021-02-052021-02-08$284.08$287.810.05%2
2021-02-032021-02-04$284.90$283.33-1.82%2
2021-02-012021-02-02$279.94$290.934.50%2
2021-01-282021-01-29$278.48$264.51-2.82%2
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-052021-01-25$245.04$293.6012.64%14
2020-12-312021-01-04$235.22$243.261.09%2
2020-12-292020-12-30$222.00$231.590.12%2
2020-12-242020-12-28$220.59$221.231.79%2
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-11-182020-12-17$162.21$218.6331.86%21
2020-11-062020-11-11$143.32$139.04-5.24%4
2020-11-042020-11-05$140.33$146.03-0.71%2
2020-10-262020-10-27$140.09$141.56-0.23%2
2020-10-222020-10-23$141.93$140.210.44%2
2020-10-132020-10-20$148.88$140.65-2.21%6
2020-08-312020-09-01$166.11$158.359.89%2
2020-08-262020-08-27$143.54$149.254.97%2
2020-07-022020-07-06$80.58$91.446.20%2
2020-06-302020-07-01$71.99$74.645.42%2
2020-06-262020-06-29$63.98$67.29-2.29%2
2020-06-032020-06-25$58.86$65.737.16%17
2020-06-012020-06-02$59.87$58.775.88%2
2020-05-272020-05-28$54.68$53.72-0.03%2
2019-12-172020-01-31$25.27$43.3751.65%31
2019-09-122019-09-25$16.39$15.25-7.91%10
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-12-072018-12-10$23.86$24.34-1.28%2
2018-12-042018-12-06$23.98$24.200.11%2
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-02-082018-02-09$21.02$20.69-7.06%2
2018-01-222018-02-05$23.44$22.21-1.57%11
2017-12-122017-12-27$22.74$20.78-2.96%11
2017-10-092017-10-10$22.86$23.71-3.28%2
2017-10-052017-10-06$23.69$23.79-0.09%2
2017-09-152017-09-25$25.32$23.00-5.79%7