Strategy Zoo / S0507

LongTermTrend_V0507

ARCHIVEDhybrid

llmSimplified and regularized entries (require modest 20d momentum + either 50-day trend or 20-day breakout). Added conservative exits (20d stop loss -10% or close back below 50 SMA). Introduced regime gates to avoid trading in high-volatility and bubble regimes. Reduced base size and added volatility-based scaling to limit drawdown and overfitting.

Fitness
0.1159
Generation
23
Complexity
13
Created
2026-09-22

Lineage

Parents (1)
LongTermTrend_V0470S0470 · gen 21ARCHIVEDllm

removed entry condition: cumret_252d > -0.1997; changed ret_20d threshold -0.03 -> -0.1474

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0507  [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) or breakout_20 > 0.5) and ret_20d > 0.02):
    position = 0.6
if long and (ret_20d < -0.1 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.9%-0.3%-2.7%-1.8%
Total Return-14.0%-0.8%-9.7%-22.9%
Sharpe-0.100.05-0.11-0.07
Sortino-0.060.03-0.07-0.05
Calmar-0.06-0.01-0.11-0.05
Volatility11.9%14.1%14.7%13.1%
Max DD-33.8%-27.3%-24.2%-37.3%
Win Rate36.4%14.3%31.6%32.2%
Avg Win4.6%31.5%9.3%7.5%
Avg Loss-3.2%-4.6%-4.7%-3.9%
Payoff1.456.892.001.94
Expectancy-0.4%0.6%-0.3%-0.2%
Profit Factor0.831.150.920.92
Trades3371959
Avg Holding Days13.826.311.714.6
Turnover5.02.86.24.8
Exposure12.6%14.0%13.1%13.0%

Growth of $100

LongTermTrend_V0507 vs TSLA Buy & Hold
LongTermTrend_V0507 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-9.7%-1.10-15.3%5
201711.0%1.88-3.3%4
2018-11.0%-1.10-11.6%3
20193.5%0.29-11.9%4
20200.0%0.000.0%0
202110.8%0.64-18.8%4
2022-10.5%-0.63-22.4%3

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 testDOWNTREND268-2.2%-1.400%
hidden testEXPENSIVE8325.7%2.441%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-10.5%-0.831%
hidden testLOW VOLATILITY42916.4%1.1720%
hidden testMEDIUM VOLATILITY249-23.8%-1.3713%
hidden testNORMAL801-4.6%-0.3015%
hidden testSIDEWAYS293-23.6%-1.4020%
hidden testUPTREND37116.0%0.9117%
trainDOWNTREND518-2.5%-1.100%
trainEXPENSIVE3117.5%1.781%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-1.6%-0.141%
trainLOW VOLATILITY74512.7%1.0426%
trainMEDIUM VOLATILITY568-18.8%-1.5710%
trainNORMAL1,601-2.9%-0.2216%
trainSIDEWAYS592-13.6%-1.1711%
trainUPTREND9027.7%0.5120%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-7.1%-1.000%
validationLOW VOLATILITY18313.2%0.9334%
validationMEDIUM VOLATILITY315-0.1%-0.0114%
validationNORMAL4741.2%0.0722%
validationSIDEWAYS206-12.7%-0.7421%
validationUPTREND4257.4%0.5115%

Trades (full period)

59 trades
EntryExitEntry PxExit PxReturnDays
2026-05-082026-06-08$428.35$408.95-2.97%21
2026-04-202026-04-21$392.50$386.42-1.34%2
2025-12-082026-01-05$439.58$451.67-2.24%19
2025-08-252025-09-15$346.60$410.049.60%15
2025-08-122025-08-21$340.84$320.11-2.80%8
2025-07-212025-07-25$328.49$316.06-4.53%5
2025-06-022025-06-06$342.69$295.14-10.95%5
2025-05-222025-05-28$341.04$356.904.92%4
2025-05-122025-05-13$318.38$334.073.93%2
2024-09-242024-10-14$254.27$219.16-7.88%15
2024-09-162024-09-20$226.78$238.253.45%5
2024-09-062024-09-09$210.73$216.27-5.18%2
2024-06-142024-07-12$178.01$248.2318.50%19
2024-06-102024-06-12$173.79$177.29-2.43%3
2023-11-292024-01-10$244.14$233.94-2.87%29
2023-09-122023-09-22$267.48$244.88-4.05%9
2023-05-312023-08-03$203.93$259.3215.53%45
2023-03-312023-04-06$207.46$185.06-3.04%5
2023-02-282023-03-10$205.71$173.44-10.39%9
2022-09-122022-09-26$304.42$276.01-4.98%11
2022-08-022022-09-01$300.59$277.16-4.39%23
2022-03-212022-04-27$307.05$293.84-1.49%27
2021-12-092021-12-14$334.60$319.50-5.91%4
2021-11-232021-12-03$369.68$338.32-3.83%8
2021-06-242021-11-10$226.61$355.9831.54%98
2021-04-142021-04-30$244.08$236.48-6.89%13
2019-11-222019-12-17$22.20$25.274.45%17
2019-10-152019-10-25$17.19$21.889.89%9
2019-09-112019-09-25$16.47$15.25-3.18%11
2019-07-222019-07-26$17.05$15.20-6.85%5
2018-11-262018-12-21$23.07$21.32-1.88%19
2018-03-132018-03-15$22.79$21.71-3.41%3
2018-01-222018-02-09$23.44$20.69-6.05%15
2017-12-122017-12-26$22.74$21.15-0.76%10
2017-03-272017-03-28$18.01$18.501.49%2
2017-01-312017-02-03$16.80$16.760.10%4
2016-12-282017-01-25$14.65$16.969.25%19
2016-10-042016-10-05$14.09$13.90-0.76%2
2016-07-262016-08-29$15.30$14.35-2.72%25
2016-06-082016-06-10$15.70$14.59-0.88%3
2016-03-282016-05-05$15.35$14.10-1.32%29
2016-03-212016-03-24$15.89$15.18-2.72%4
2015-12-302016-01-05$15.87$14.90-3.58%4
2015-09-222015-09-29$17.40$16.44-3.72%6
2015-08-062015-08-07$16.41$16.17-5.45%2
2015-04-282015-07-28$15.37$17.655.62%64
2015-04-142015-04-21$13.83$13.96-1.41%6
2014-11-122014-11-24$16.61$16.45-2.07%9
2014-06-172014-09-23$15.44$16.696.97%69
2013-03-262013-04-02$2.52$2.9610.06%5
2013-03-142013-03-18$2.46$2.34-5.85%3
2013-02-152013-02-22$2.47$2.41-4.92%5
2013-02-122013-02-14$2.53$2.55-0.07%3
2013-01-232013-01-24$2.40$2.471.26%2
2012-11-062013-01-14$2.08$2.222.72%47
2012-09-182012-09-21$2.09$2.00-3.16%4
2012-07-162012-07-24$2.40$1.99-6.42%7
2012-06-192012-06-25$2.14$2.213.60%5
2012-02-152012-04-10$2.24$2.160.18%38