Strategy Zoo / S0401

LongTermTrend_V0401

ARCHIVEDhybrid

parameterchanged ret_20d threshold 0.05 -> 0.0175

Fitness
0.6392
Generation
18
Complexity
10
Created
2026-09-18

Lineage

Parents (1)
LongTermTrend_V0235S0235 · gen 11ARCHIVEDparameter

added entry filter: dist_sma_50 > -0.0774

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0401  [hybrid]
if flat and (((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.0175 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774):
    position = 1.0
if long and ret_20d < -0.03:
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR23.1%98.0%22.0%35.6%
Total Return424.2%676.8%108.6%8643.8%
Sharpe0.771.580.730.97
Sortino0.821.790.751.04
Calmar0.352.610.740.54
Volatility34.7%51.9%35.8%39.1%
Max DD-66.2%-37.5%-29.7%-66.2%
Win Rate35.0%44.4%47.1%40.0%
Avg Win28.7%48.2%17.3%35.2%
Avg Loss-6.7%-7.5%-4.8%-6.5%
Payoff4.286.403.615.41
Expectancy5.7%17.2%5.6%10.2%
Profit Factor2.305.123.203.60
Trades40181775
Avg Holding Days25.025.723.425.8
Turnover10.112.09.510.3
Exposure51.5%58.9%42.9%50.9%

Growth of $100

LongTermTrend_V0401 vs TSLA Buy & Hold
LongTermTrend_V0401 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
20166.7%0.41-27.6%3
201710.1%0.49-30.9%6
2018-29.2%-0.97-39.9%7
201925.6%0.82-33.0%3
2020603.8%3.03-33.7%6
202140.7%1.08-28.1%6
2022-24.9%-0.71-28.3%6

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 testDOWNTREND267-11.2%-0.5621%
hidden testEXPENSIVE83118.7%2.1883%
hidden testEXTREME48195.3%3.4769%
hidden testHIGH VOLATILITY25416.7%0.3742%
hidden testLOW VOLATILITY42956.4%2.1242%
hidden testMEDIUM VOLATILITY248-15.9%-0.4146%
hidden testNORMAL8006.6%0.2137%
hidden testSIDEWAYS29313.9%0.4937%
hidden testUPTREND37163.1%1.3264%
trainDOWNTREND518-2.4%-0.1516%
trainEXPENSIVE31169.3%1.7578%
trainEXTREME100399.0%5.4098%
trainHIGH VOLATILITY69952.2%1.1746%
trainLOW VOLATILITY74540.1%1.6159%
trainMEDIUM VOLATILITY568-22.3%-0.7248%
trainNORMAL1,601-4.8%-0.1744%
trainSIDEWAYS592-10.0%-0.3447%
trainUPTREND90267.5%1.5275%
validationDOWNTREND12536.1%1.7311%
validationEXPENSIVE13873.4%1.2868%
validationEXTREME144347.4%4.1793%
validationHIGH VOLATILITY25891.0%1.3451%
validationLOW VOLATILITY18321.8%0.7768%
validationMEDIUM VOLATILITY315109.2%2.3060%
validationNORMAL4743.7%0.1146%
validationSIDEWAYS206-35.7%-1.0048%
validationUPTREND425152.3%2.4078%

Trades (full period)

76 trades
EntryExitEntry PxExit PxReturnDays
2026-08-24—$348.95—0.28%19OPEN
2026-05-052026-06-08$389.37$408.95-0.58%24
2026-04-202026-04-24$392.50$376.30-6.90%5
2025-12-082026-01-07$439.58$431.41-5.04%21
2025-08-112025-11-14$339.03$404.3521.70%69
2025-07-212025-07-23$328.49$332.560.54%3
2025-06-242025-06-26$340.47$325.78-6.25%3
2025-04-302025-06-13$282.16$325.319.05%32
2024-10-252025-01-14$269.19$396.3654.53%54
2024-09-032024-10-14$210.60$219.161.52%30
2024-08-222024-08-23$210.66$220.32-5.84%2
2024-06-272024-08-02$197.42$207.6710.21%26
2024-04-302024-05-29$183.28$176.19-9.10%21
2023-11-172024-01-10$234.30$233.940.39%36
2023-10-052023-10-10$260.05$263.62-0.77%4
2023-10-032023-10-04$246.53$261.16-2.21%2
2023-09-062023-09-28$251.92$246.38-6.42%17
2023-05-242023-08-02$182.90$254.1140.25%48
2022-09-202022-09-26$308.73$276.01-11.09%5
2022-09-122022-09-14$304.42$302.61-2.71%3
2022-07-142022-08-29$238.31$284.8221.29%33
2022-06-272022-06-29$244.92$228.49-5.50%3
2022-03-212022-04-27$307.05$293.84-3.39%27
2022-01-042022-01-24$383.20$310.00-21.49%14
2021-12-092021-12-10$334.60$339.01-6.29%2
2021-08-032021-12-01$236.58$365.0060.99%85
2021-06-112021-07-26$203.30$219.215.24%31
2021-04-142021-05-11$244.08$205.73-17.65%20
2021-04-062021-04-12$230.54$233.99-2.23%5
2020-11-182021-02-11$162.21$270.5581.90%58
2020-11-042020-11-10$140.33$136.79-0.82%5
2020-10-222020-10-29$141.93$136.94-4.12%6
2020-10-052020-10-20$141.89$140.653.59%12
2020-08-142020-09-24$110.05$129.2617.09%29
2020-04-142020-08-10$47.33$94.57122.74%83
2019-09-132020-03-04$16.35$49.97202.61%119
2019-07-162019-08-12$16.83$15.27-7.48%20
2019-03-012019-03-04$19.65$19.02-8.04%2
2019-01-182019-01-22$20.15$19.93-13.16%2
2018-10-262018-12-19$22.06$22.206.83%37
2018-08-032018-08-31$23.21$20.11-13.45%21
2018-06-122018-07-06$22.85$20.59-7.09%18
2018-04-302018-05-04$19.59$19.61-3.47%5
2018-03-132018-03-19$22.79$20.90-7.18%5
2018-02-262018-03-02$23.83$22.34-6.19%5
2017-12-122018-02-09$22.74$20.69-4.35%41
2017-10-052017-10-10$23.69$23.71-3.59%4
2017-09-152017-09-29$25.32$22.74-10.25%11
2017-08-042017-09-07$23.79$23.37-0.93%24
2017-05-262017-07-06$21.68$20.593.03%28
2017-03-272017-05-24$18.01$20.6815.24%42
2016-12-142017-03-08$13.25$16.4625.20%57
2016-07-122016-08-23$14.98$14.99-1.02%31
2016-06-082016-06-23$15.70$13.09-15.52%12
2016-03-042016-05-04$13.40$14.8418.45%43
2015-11-302016-01-05$15.35$14.90-3.73%25
2015-09-092015-10-02$16.59$16.50-3.53%18
2015-08-062015-08-07$16.41$16.17-9.08%2
2015-04-092015-07-28$14.01$17.6521.59%77
2014-11-112014-12-02$16.74$15.43-4.44%15
2014-09-182014-09-24$17.59$16.81-4.39%5
2014-08-042014-09-16$15.90$17.388.61%31
2014-06-062014-07-17$13.88$14.364.75%29
2014-05-272014-06-04$14.10$13.60-1.33%7
2014-05-062014-05-08$13.82$11.91-7.23%3
2014-01-152014-03-26$10.94$14.2036.42%49
2013-12-132014-01-14$9.84$10.75-5.70%21
2013-06-282013-10-22$7.16$11.4457.67%81
2013-03-222013-06-26$2.44$7.05183.80%67
2013-03-132013-03-15$2.60$2.35-5.99%3
2013-01-232013-02-26$2.40$2.30-2.49%24
2012-11-062013-01-11$2.08$2.196.23%46
2012-09-182012-09-27$2.09$1.90-15.54%8
2012-08-242012-09-06$1.97$1.90-9.26%9
2012-06-192012-07-20$2.14$2.121.15%23
2012-01-302012-04-10$1.97$2.1612.80%50