Strategy Zoo / S0576

LongTermTrend_V0576

ARCHIVEDhybrid

llmReplaced duplicate ret_20d gates with a concise momentum + trend filter (sma_50>sma_200, positive sma_50_slope, ret_20d>3%); added longer-term drawdown sanity check. Introduced regime gates to trade only in UPTREND and non-high volatility, and only in NORMAL bubble. Improved exits: combine weak short-term momentum, break of sma_50, negative slope, and large drawdown. Added volatility-based position scaling (lower size in high vol) and reduced base position to 0.8 to lower risk and drawdown.

Fitness
0.0936
Generation
26
Complexity
13
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0454S0454 · gen 21ARCHIVEDllm

entry = LongTermTrend_V0323 OR PriceMomentum_V0160

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0576  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (sma_50 > sma_200 and sma_50_slope > 0.0 and ret_20d > 0.03 and cumret_252d > -0.2):
    position = 0.8
if long and (ret_20d < 0.02 or close < sma_50 or sma_50_slope < 0.0 or drawdown > 0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.2%1.8%-5.8%-2.3%
Total Return-16.3%5.5%-19.9%-29.4%
Sharpe-0.180.20-0.51-0.17
Sortino-0.070.08-0.17-0.06
Calmar-0.090.06-0.21-0.05
Volatility9.8%12.8%10.6%10.7%
Max DD-25.4%-29.7%-28.1%-43.6%
Win Rate31.6%33.3%27.3%30.6%
Avg Win4.6%16.3%2.5%6.1%
Avg Loss-3.3%-5.6%-3.6%-3.8%
Payoff1.392.900.691.63
Expectancy-0.8%1.7%-1.9%-0.7%
Profit Factor0.641.450.260.72
Trades1961136
Avg Holding Days8.611.75.98.3
Turnover3.83.24.83.9
Exposure5.7%6.8%4.6%5.7%

Growth of $100

LongTermTrend_V0576 vs TSLA Buy & Hold
LongTermTrend_V0576 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-1.5%-0.42-3.1%1
2017-0.3%-0.23-0.9%1
2018-2.4%-0.42-6.1%1
2019-0.4%-0.02-5.2%3
20200.0%0.000.0%0
202116.3%0.86-22.3%4
2022-9.4%-0.95-12.1%2

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 testDOWNTREND2690.0%0.000%
hidden testEXPENSIVE830.0%0.000%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-0.9%-0.111%
hidden testLOW VOLATILITY429-2.0%-0.217%
hidden testMEDIUM VOLATILITY250-16.0%-1.185%
hidden testNORMAL802-6.3%-0.555%
hidden testSIDEWAYS293-1.6%-0.591%
hidden testUPTREND371-12.4%-0.7511%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3115.6%1.171%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6991.9%0.220%
trainLOW VOLATILITY7450.3%0.0313%
trainMEDIUM VOLATILITY568-9.1%-1.062%
trainNORMAL1,601-3.3%-0.307%
trainSIDEWAYS5920.0%0.000%
trainUPTREND902-3.9%-0.2713%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-6.5%-0.661%
validationLOW VOLATILITY18322.6%2.5116%
validationMEDIUM VOLATILITY315-1.6%-0.107%
validationNORMAL4744.1%0.2611%
validationSIDEWAYS2060.0%0.000%
validationUPTREND4254.6%0.2712%

Trades (full period)

36 trades
EntryExitEntry PxExit PxReturnDays
2025-12-122026-01-05$458.96$451.67-1.67%15
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-082025-07-09$297.81$295.880.89%2
2024-10-032024-10-14$240.66$219.16-10.21%8
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-09-032024-09-04$210.60$219.41-1.47%2
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-07-312023-08-02$267.43$254.11-1.77%3
2023-07-252023-07-28$265.28$266.44-4.13%4
2023-06-262023-07-21$241.05$260.021.99%19
2022-04-052022-04-21$363.75$336.26-11.98%12
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-232021-11-29$369.68$379.00-5.35%4
2021-09-142021-11-10$248.16$355.9829.55%42
2021-09-012021-09-13$244.70$247.67-0.09%8
2019-12-132019-12-17$23.89$25.274.69%3
2019-11-272019-12-06$22.09$22.390.20%7
2019-11-222019-11-25$22.20$22.42-5.07%2
2018-12-042018-12-18$23.98$22.47-2.37%10
2017-02-012017-02-03$16.62$16.76-0.28%3
2016-07-262016-08-09$15.30$15.27-1.49%11
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-07-132015-07-23$17.48$17.812.56%9
2015-06-182015-07-09$17.46$17.19-1.77%15
2015-06-102015-06-16$16.71$16.87-1.92%5
2014-09-192014-09-22$17.29$16.67-1.52%2
2014-08-052014-09-16$15.90$17.385.11%30
2014-06-232014-07-16$15.81$14.48-3.59%17
2013-03-262013-04-02$2.52$2.9613.44%5
2013-02-152013-02-22$2.47$2.41-6.61%5
2013-02-122013-02-14$2.53$2.55-0.10%3
2012-12-212012-12-28$2.27$2.21-1.88%5
2012-03-272012-04-10$2.53$2.16-9.26%10
2012-02-232012-03-20$2.30$2.331.66%19