Strategy Zoo / S1223

LongTermTrend_V1223

ARCHIVEDhybrid

llm1) Added trend gate: require UPTREND; 2) Restricted volatility/bubble regimes to avoid high-volatility or bubbly markets; 3) Replaced brittle double ret_20d threshold with sma_50 crossover + sma_50_slope and MACD momentum filter; 4) Added volume/breakout filter (breakout_20/50 or rel_volume>1.2); 5) Tightened cumret guard to avoid buying after large past losses; 6) More robust exit: smaller 20d stop (-7%) or MACD+5d weakness; 7) Introduced position scaling: reduce size to 0.5 when vol_pctile>0.75 and lowered base position to 0.8.

Fitness
0.0945
Generation
56
Complexity
20
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V1159S1159 · gen 53ELITEllm

restricted to bubble regimes ['EXPENSIVE', 'EXTREME']

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1223  [hybrid]
require regime.trend in ['UPTREND']
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) and (ret_20d > 0.03 and macd_hist > 0.0) and (breakout_20 == 1 or breakout_50 == 1 or rel_volume > 1.2) and cumret_252d > -0.15):
    position = 0.8
if long and (ret_20d < -0.07 or (macd_hist < 0.0 and ret_5d < 0.0)):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.2%-2.2%2.0%-0.6%
Total Return-9.1%-6.4%7.6%-8.4%
Sharpe-0.15-0.120.26-0.02
Sortino-0.05-0.050.07-0.01
Calmar-0.10-0.070.12-0.02
Volatility6.6%12.1%9.4%8.7%
Max DD-12.4%-31.8%-16.6%-31.8%
Win Rate35.3%14.3%66.7%36.7%
Avg Win4.0%23.1%4.8%6.0%
Avg Loss-2.9%-4.4%-5.3%-3.7%
Payoff1.375.220.891.65
Expectancy-0.5%-0.5%1.4%-0.1%
Profit Factor0.750.871.780.95
Trades177630
Avg Holding Days8.210.17.28.4
Turnover3.43.72.63.3
Exposure4.9%6.8%3.1%4.8%

Growth of $100

LongTermTrend_V1223 vs TSLA Buy & Hold
LongTermTrend_V1223 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
20160.8%0.15-5.3%2
20179.5%2.08-0.7%1
2018-8.6%-1.51-8.6%2
20190.0%0.000.0%0
20200.0%0.000.0%0
202118.7%0.99-13.6%3
2022-21.2%-2.64-21.1%4

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE8317.4%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-13.6%-1.431%
hidden testLOW VOLATILITY4399.2%0.885%
hidden testMEDIUM VOLATILITY2506.8%1.023%
hidden testNORMAL8121.0%0.114%
hidden testSIDEWAYS2940.0%0.000%
hidden testUPTREND3716.1%0.418%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3112.4%1.211%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6990.0%0.000%
trainLOW VOLATILITY7451.9%0.2211%
trainMEDIUM VOLATILITY568-5.9%-0.763%
trainNORMAL1,601-1.7%-0.236%
trainSIDEWAYS592-3.7%-1.130%
trainUPTREND9020.3%0.0311%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY1830.3%0.0220%
validationMEDIUM VOLATILITY3154.1%0.285%
validationNORMAL474-2.3%-0.1511%
validationSIDEWAYS206-12.9%-1.801%
validationUPTREND4253.6%0.2411%

Trades (full period)

30 trades
EntryExitEntry PxExit PxReturnDays
2025-12-152025-12-30$475.31$454.430.02%11
2025-09-122025-09-15$395.94$410.045.72%2
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-032024-07-12$246.39$248.233.32%7
2023-07-062023-07-12$276.54$271.99-3.76%5
2023-06-052023-06-27$217.61$250.219.98%16
2022-09-202022-09-23$308.73$275.33-5.47%4
2022-08-162022-08-22$306.56$289.91-3.44%5
2022-08-052022-08-08$288.17$290.42-5.46%2
2022-04-052022-04-11$363.75$325.31-8.58%5
2021-09-282021-11-10$259.19$355.9823.14%32
2021-09-012021-09-21$244.70$246.46-0.74%14
2021-08-052021-08-17$238.21$221.90-2.92%9
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-02-012018-02-06$23.28$22.26-4.95%4
2017-01-052017-01-25$15.12$16.969.47%14
2016-07-262016-08-09$15.30$15.27-1.49%11
2016-04-052016-04-14$17.03$16.792.32%8
2015-07-212015-07-27$17.78$16.87-4.94%5
2015-06-222015-07-09$17.32$17.19-2.40%13
2015-05-122015-05-26$16.32$16.502.59%10
2015-04-292015-05-01$15.50$15.07-1.69%3
2014-09-022014-09-12$18.94$18.613.01%9
2014-08-052014-08-25$15.90$17.505.95%15
2014-06-242014-07-07$15.50$14.84-2.83%9
2013-02-122013-02-14$2.53$2.55-0.10%3
2012-11-292012-12-14$2.25$2.250.79%12
2012-03-282012-04-05$2.52$2.30-6.33%7
2012-03-142012-03-20$2.35$2.33-2.62%5
2012-02-232012-02-29$2.30$2.23-1.11%5