Strategy Zoo / S1199

LongTermTrend_V1199

ARCHIVEDhybrid

llmSimplified and strengthened entry: require either price above SMA50 with positive MACD or price above SMA200 with non-declining long-term slope; add breakout/volume confirmation and minimum volatility (vol_pctile>0.20); tightened distance to SMA50 and short-term momentum filter. Exit broadened to include short-term stop (ret_5d<-8%) and large deviation below SMA50, plus MACD negative. Added regime gates to avoid downtrend/cheap-bubble & very low-volatility regimes; reduced base position to 0.8 to lower risk.

Fitness
0.0804
Generation
55
Complexity
24
Created
2026-10-06

Lineage

Parents (1)
LongTermTrend_V0886S0886 · gen 40ARCHIVEDllm

changed cumret_252d threshold -0.1997 -> -0.4599

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1199  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['MEDIUM_VOLATILITY', 'HIGH_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (((close > sma_50 and macd_hist > 0.0) or (close > sma_200 and sma_200_slope > -0.001)) and (breakout_50 == 1 or rel_volume > 1.2) and vol_pctile > 0.2 and sma_20 < close and dist_sma_50 > -0.15 and (ret_20d > 0.03 or ret_5d > 0.02)):
    position = 0.8
if long and (macd_hist < 0.0 or ret_5d < -0.08 or dist_sma_50 < -0.35):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-3.4%-1.2%-1.6%-2.5%
Total Return-23.9%-3.5%-5.7%-30.8%
Sharpe-0.28-0.01-0.08-0.16
Sortino-0.12-0.01-0.03-0.07
Calmar-0.09-0.07-0.09-0.06
Volatility10.3%14.1%11.4%11.5%
Max DD-37.2%-16.5%-17.8%-41.2%
Win Rate40.6%14.3%33.3%35.4%
Avg Win3.1%10.5%6.4%4.1%
Avg Loss-3.4%-2.2%-3.9%-3.3%
Payoff0.914.761.631.26
Expectancy-0.8%-0.4%-0.5%-0.7%
Profit Factor0.620.790.820.69
Trades327948
Avg Holding Days6.09.67.46.8
Turnover6.43.73.95.2
Exposure6.4%6.3%4.9%6.0%

Growth of $100

LongTermTrend_V1199 vs TSLA Buy & Hold
LongTermTrend_V1199 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%1.02-5.3%4
20172.3%0.73-0.9%3
2018-6.2%-0.29-11.3%10
201912.4%1.25-3.6%3
20200.0%0.000.0%0
2021-8.5%-0.49-14.7%3
2022-4.9%-0.25-12.8%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 testDOWNTREND278-5.8%-1.261%
hidden testEXPENSIVE839.7%1.701%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-0.5%-0.039%
hidden testLOW VOLATILITY438-0.0%-0.760%
hidden testMEDIUM VOLATILITY250-2.9%-0.2610%
hidden testNORMAL811-2.1%-0.176%
hidden testSIDEWAYS2931.6%0.137%
hidden testUPTREND3710.7%0.057%
trainDOWNTREND5180.2%0.310%
trainEXPENSIVE3110.6%0.740%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6990.6%0.059%
trainLOW VOLATILITY7452.3%0.681%
trainMEDIUM VOLATILITY568-14.1%-1.1510%
trainNORMAL1,601-3.8%-0.338%
trainSIDEWAYS592-1.4%-0.1213%
trainUPTREND902-5.6%-0.496%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-8.9%-0.562%
validationLOW VOLATILITY183-0.5%-1.440%
validationMEDIUM VOLATILITY3157.1%0.4313%
validationNORMAL474-0.3%-0.0210%
validationSIDEWAYS2065.4%0.3611%
validationUPTREND425-3.0%-0.196%

Trades (full period)

48 trades
EntryExitEntry PxExit PxReturnDays
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-06-242025-06-26$340.47$325.78-5.02%3
2025-05-122025-05-15$318.38$342.8212.95%4
2025-03-262025-03-27$272.06$273.13-4.62%2
2024-09-062024-10-04$210.73$250.083.64%21
2024-07-032024-07-22$246.39$251.512.72%13
2023-09-122023-09-25$267.48$246.99-8.60%10
2023-07-052023-07-07$282.48$274.43-1.09%3
2023-02-102023-02-23$196.89$202.07-2.53%9
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-022022-08-12$300.59$300.03-2.97%9
2022-03-212022-04-11$307.05$325.3110.49%16
2021-12-272022-01-11$364.65$354.80-0.63%12
2021-11-112021-11-12$354.50$344.47-0.49%2
2021-10-262021-11-10$339.48$355.98-0.02%12
2021-04-142021-04-29$244.08$225.67-7.29%12
2019-10-252019-11-21$21.88$23.6613.74%20
2019-10-152019-10-23$17.19$16.98-0.58%7
2019-09-122019-09-13$16.39$16.35-0.56%2
2018-12-142018-12-18$24.38$22.47-6.20%3
2018-12-112018-12-13$24.45$25.120.16%3
2018-12-072018-12-10$23.86$24.34-1.28%2
2018-12-042018-12-06$23.98$24.200.11%2
2018-10-262018-11-21$22.06$22.558.12%19
2018-08-032018-08-15$23.21$22.58-0.48%9
2018-06-122018-06-26$22.85$22.800.14%11
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-02-232018-03-06$23.47$21.88-3.11%8
2018-01-092018-01-29$22.25$23.301.38%14
2017-12-122017-12-14$22.74$22.532.30%3
2017-04-062017-04-07$19.91$20.170.84%2
2017-03-152017-03-16$17.05$17.47-0.86%2
2016-12-282016-12-29$14.65$14.31-0.08%2
2016-04-052016-04-14$17.03$16.792.32%8
2016-04-012016-04-04$15.84$16.472.56%2
2016-03-212016-03-22$15.89$15.621.76%2
2015-09-222015-09-28$17.40$16.56-2.36%5
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-07-212015-07-22$17.78$17.86-4.55%2
2014-10-292014-11-26$15.87$16.561.66%21
2014-10-072014-10-08$17.30$17.29-0.48%2
2013-04-022013-04-10$2.96$2.79-6.39%7
2012-09-182012-09-21$2.09$2.00-4.20%4
2012-08-242012-08-29$1.97$1.89-5.47%4
2012-07-162012-07-23$2.40$2.04-5.86%6
2012-06-192012-07-03$2.14$2.04-3.70%11
2012-04-042012-04-05$2.33$2.30-6.49%2
2012-02-132012-02-15$2.10$2.245.15%3