Strategy Zoo / S0681

LongTermTrend_V0681

ARCHIVEDhybrid

llmSimplified and regularized entry to reduce overfitting: require a basic trend/price position (close>sma_50 or not far below sma_50), plus short-term momentum (ret_20d>3% or macd_hist>0), and either a breakout with elevated volume or price above sma_50. Added a volatility filter (vol_pctile<0.75). Introduced robust exits: exit on negative macd_hist, price crossing below sma_50, or portfolio drawdown >6% to limit losses. Added regime gates to avoid trading in high-volatility or bubbly/extreme regimes and allow only UPTREND/SIDEWAYS and NORMAL bubble. Reduced base position to 0.75 for more conservative sizing.

Fitness
0.0663
Generation
31
Complexity
20
Created
2026-09-24

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0681  [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 or dist_sma_50 > -0.1) and (ret_20d > 0.03 or macd_hist > 0.0) and ((breakout_50 == 1 and rel_volume > 1.2) or close > sma_50) and vol_pctile < 0.75):
    position = 0.75
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.06):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-3.6%-1.8%-7.9%-4.4%
Total Return-25.4%-5.4%-26.3%-48.0%
Sharpe-0.19-0.05-0.40-0.22
Sortino-0.12-0.03-0.27-0.14
Calmar-0.09-0.08-0.21-0.08
Volatility14.1%15.1%17.1%15.1%
Max DD-42.2%-24.0%-38.0%-56.0%
Win Rate36.1%37.5%32.1%35.2%
Avg Win3.2%3.6%4.3%3.6%
Avg Loss-2.2%-2.2%-2.7%-2.4%
Payoff1.471.591.591.52
Expectancy-0.2%-0.1%-0.5%-0.3%
Profit Factor0.830.950.750.82
Trades973253182
Avg Holding Days4.65.34.64.7
Turnover18.216.021.418.6
Exposure13.0%13.6%15.3%13.7%

Growth of $100

LongTermTrend_V0681 vs TSLA Buy & Hold
LongTermTrend_V0681 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-5.1%-0.49-10.0%11
20179.8%1.17-4.1%7
2018-10.7%-0.96-14.3%9
2019-7.4%-0.28-18.4%9
20200.0%0.000.0%0
2021-4.9%-0.12-23.6%21
2022-0.4%0.04-16.6%10

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 testDOWNTREND270-2.7%-1.391%
hidden testEXPENSIVE8332.1%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-8.2%-0.631%
hidden testLOW VOLATILITY4308.2%0.4824%
hidden testMEDIUM VOLATILITY250-31.2%-1.5315%
hidden testNORMAL803-11.2%-0.6218%
hidden testSIDEWAYS293-35.0%-1.8327%
hidden testUPTREND37112.6%0.6017%
trainDOWNTREND518-6.1%-1.211%
trainEXPENSIVE3119.7%1.821%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-0.6%-0.041%
trainLOW VOLATILITY7457.4%0.5524%
trainMEDIUM VOLATILITY568-18.5%-1.2413%
trainNORMAL1,601-5.3%-0.3416%
trainSIDEWAYS592-11.4%-0.7317%
trainUPTREND9025.0%0.3017%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-8.9%-1.000%
validationLOW VOLATILITY1833.3%0.2332%
validationMEDIUM VOLATILITY3153.7%0.2014%
validationNORMAL474-1.1%-0.0622%
validationSIDEWAYS206-12.7%-0.7519%
validationUPTREND4254.9%0.3015%

Trades (full period)

latest 100 of 182
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.97%3
2026-06-052026-06-08$391.00$408.95-5.07%2
2026-06-032026-06-04$423.70$418.45-0.16%2
2026-05-272026-06-02$440.36$423.74-3.20%5
2026-05-222026-05-26$426.01$433.591.31%2
2026-05-082026-05-21$428.35$417.850.93%10
2026-04-202026-04-21$392.50$386.42-1.67%2
2025-12-312026-01-02$449.72$438.07-0.93%2
2025-12-042025-12-30$454.53$454.432.10%18
2025-09-082025-09-15$346.40$410.049.42%6
2025-09-042025-09-05$338.53$350.840.85%2
2025-08-252025-09-03$346.60$334.09-2.48%7
2025-08-112025-08-21$339.03$320.11-1.44%9
2025-07-292025-07-30$321.20$319.04-1.16%2
2025-07-212025-07-25$328.49$316.06-5.67%5
2025-06-042025-06-05$332.05$284.70-2.81%2
2025-06-022025-06-03$342.69$344.27-0.97%2
2025-05-222025-05-28$341.04$356.906.16%4
2025-05-122025-05-13$318.38$334.074.91%2
2024-10-112024-10-14$217.80$219.16-6.73%2
2024-10-092024-10-10$241.05$238.77-1.21%2
2024-10-072024-10-08$240.83$244.50-2.92%2
2024-09-232024-10-04$250.00$250.080.67%10
2024-09-162024-09-20$226.78$238.254.30%5
2024-09-062024-09-09$210.73$216.27-6.48%2
2024-06-142024-07-12$178.01$248.2323.41%19
2024-06-102024-06-11$173.79$170.66-1.71%2
2024-05-292024-05-30$176.19$178.79-0.39%2
2024-01-032024-01-04$238.45$237.93-3.16%2
2023-12-152024-01-02$253.50$248.42-0.87%11
2023-11-292023-12-14$244.14$251.05-2.40%12
2023-11-222023-11-24$234.21$235.45-2.32%2
2023-11-162023-11-17$233.59$234.30-3.00%2
2023-10-052023-10-17$260.05$254.85-2.22%9
2023-09-122023-09-22$267.48$244.88-5.06%9
2023-09-062023-09-07$251.92$251.49-1.49%2
2023-08-302023-09-05$256.90$256.49-3.69%4
2023-07-312023-08-01$267.43$261.070.13%2
2023-07-272023-07-28$255.71$266.44-2.60%2
2023-07-252023-07-26$265.28$264.35-1.20%2
2023-07-202023-07-21$262.90$260.02-7.45%2
2023-07-182023-07-19$293.34$291.260.61%2
2023-07-142023-07-17$281.38$290.380.79%2
2023-07-122023-07-13$271.99$277.900.46%2
2023-07-102023-07-11$269.61$269.79-1.47%2
2023-07-052023-07-07$282.48$274.43-1.02%3
2023-06-302023-07-03$261.77$279.821.09%2
2023-06-282023-06-29$256.24$257.501.66%2
2023-05-312023-06-27$203.93$250.2114.56%19
2023-03-242023-04-06$190.41$185.06-2.68%10
2023-03-062023-03-07$193.81$187.71-1.66%2
2023-03-022023-03-03$190.90$197.79-4.54%2
2023-02-282023-03-01$205.71$202.77-0.84%2
2022-09-122022-09-23$304.42$275.33-2.88%10
2022-08-262022-08-29$288.09$284.82-2.17%2
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-222022-08-23$289.91$296.45-1.86%2
2022-08-152022-08-19$309.32$296.670.57%5
2022-08-022022-08-12$300.59$300.03-2.77%9
2022-04-192022-04-20$342.72$325.731.63%2
2022-04-142022-04-18$328.33$334.76-2.89%2
2022-04-122022-04-13$328.98$340.790.70%2
2022-03-212022-04-11$307.05$325.319.84%16
2021-12-282022-01-03$362.82$399.93-2.70%5
2021-12-092021-12-10$334.60$339.01-4.72%2
2021-11-262021-11-29$360.64$379.00-2.44%2
2021-11-232021-11-24$369.68$372.00-3.25%2
2021-10-122021-11-10$268.57$355.9821.58%22
2021-10-082021-10-11$261.83$263.98-0.92%2
2021-09-282021-10-07$259.19$264.54-0.96%8
2021-09-242021-09-27$258.13$263.791.91%2
2021-09-222021-09-23$250.65$251.211.12%2
2021-08-312021-09-21$245.24$246.46-0.20%15
2021-08-272021-08-30$237.31$243.641.00%2
2021-08-252021-08-26$237.07$233.720.14%2
2021-08-232021-08-24$235.43$236.162.72%2
2021-08-192021-08-20$224.49$226.75-1.84%2
2021-08-022021-08-17$236.56$221.90-0.22%12
2021-07-222021-07-23$216.42$214.46-0.84%2
2021-07-202021-07-21$220.17$218.431.51%2
2021-07-162021-07-19$214.74$215.41-0.88%2
2021-07-132021-07-15$222.85$216.87-3.69%3
2021-06-242021-07-12$226.61$228.57-0.07%12
2021-05-032021-05-04$228.30$224.53-2.74%2
2021-04-142021-04-29$244.08$225.67-6.83%12
2019-12-132019-12-17$23.89$25.274.40%3
2019-12-042019-12-05$22.20$22.02-0.86%2
2019-12-022019-12-03$22.32$22.410.97%2
2019-11-272019-11-29$22.09$22.000.39%2
2019-11-222019-11-25$22.20$22.42-4.75%2
2019-10-152019-10-25$17.19$21.8812.34%9
2019-09-112019-09-25$16.47$15.25-4.01%11
2019-07-222019-07-26$17.05$15.20-8.60%5
2019-03-012019-03-04$19.65$19.02-6.03%2
2018-12-112018-12-18$24.45$22.47-3.56%6
2018-12-072018-12-10$23.86$24.34-1.20%2
2018-12-042018-12-06$23.98$24.200.10%2
2018-11-292018-11-30$22.74$23.37-1.59%2
2018-11-262018-11-27$23.07$22.934.49%2
2018-03-132018-03-15$22.79$21.71-4.25%3