Strategy Zoo / S0674

LongTermTrend_V0674

ARCHIVEDhybrid

llmSimplified and consolidated entry to two robust branches (trend-follow and breakout), tightened persistence filters (cumret_252d, macd_hist floor) to reduce overfitting; added multi-condition exit (macd_hist<0 OR close < sma_50 OR drawdown>12%) to cut losses earlier; introduced regime gates to avoid downtrend/high-volatility/bubble regimes; added volatility-based position scaling (reduce size when vol_pctile>0.6/0.8) and lowered base position to 0.8 to reduce turnover and drawdown risk.

Fitness
0.1565
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_V0674  [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 > sma_200 and macd_hist > 0.0) or (breakout_20 == 1 and rel_volume > 1.2 and ret_5d > 0.01)) and sma_20 < close and cumret_252d > -0.15 and macd_hist > -1.0):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.1%5.1%-5.1%-0.9%
Total Return-8.6%16.2%-17.5%-12.4%
Sharpe-0.020.42-0.34-0.00
Sortino-0.010.22-0.17-0.00
Calmar-0.030.32-0.15-0.03
Volatility13.0%14.5%12.8%13.3%
Max DD-34.0%-16.1%-34.1%-34.1%
Win Rate35.4%30.0%30.0%33.3%
Avg Win5.3%10.9%4.6%5.8%
Avg Loss-3.0%-2.1%-3.2%-2.9%
Payoff1.775.191.431.97
Expectancy-0.1%1.8%-0.9%-0.0%
Profit Factor0.972.220.610.99
Trades48102078
Avg Holding Days6.611.36.37.1
Turnover9.65.38.68.5
Exposure10.7%10.9%9.1%10.3%

Growth of $100

LongTermTrend_V0674 vs TSLA Buy & Hold
LongTermTrend_V0674 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-3.6%-0.46-8.9%4
20179.8%1.09-4.5%7
2018-5.8%-0.85-7.3%4
2019-2.7%-0.04-19.0%4
20200.0%0.000.0%0
20218.5%0.49-16.0%7
20227.2%0.57-12.0%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 testDOWNTREND270-1.7%-1.010%
hidden testEXPENSIVE8317.4%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.9%-0.701%
hidden testLOW VOLATILITY430-0.4%-0.0314%
hidden testMEDIUM VOLATILITY250-7.6%-0.629%
hidden testNORMAL803-6.9%-0.5110%
hidden testSIDEWAYS293-28.8%-2.2614%
hidden testUPTREND37112.9%0.7711%
trainDOWNTREND518-1.1%-0.980%
trainEXPENSIVE31110.3%1.832%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6995.8%0.431%
trainLOW VOLATILITY74510.9%0.8721%
trainMEDIUM VOLATILITY568-22.5%-1.7410%
trainNORMAL1,601-2.4%-0.1613%
trainSIDEWAYS592-16.4%-1.1114%
trainUPTREND90210.7%0.7014%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.5%-1.000%
validationLOW VOLATILITY18312.9%1.1023%
validationMEDIUM VOLATILITY31514.9%0.7912%
validationNORMAL4749.7%0.5317%
validationSIDEWAYS2068.7%0.5316%
validationUPTREND4256.6%0.4212%

Trades (full period)

78 trades
EntryExitEntry PxExit PxReturnDays
2026-05-122026-05-21$433.45$417.85-5.13%8
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-042025-12-30$454.53$454.432.22%18
2025-09-122025-09-15$395.94$410.045.72%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-212025-07-25$328.49$316.06-6.05%5
2024-09-232024-10-04$250.00$250.080.70%10
2024-09-192024-09-20$243.92$238.255.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-12-152024-01-02$253.50$248.42-0.94%11
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-10-062023-10-17$260.53$254.85-2.03%8
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-06-052023-06-27$217.61$250.219.98%16
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-282022-01-03$362.82$399.93-2.88%5
2021-10-132021-11-10$270.36$355.9821.37%21
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-272021-10-07$263.79$264.540.71%9
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-08-022021-08-17$236.56$221.90-0.24%12
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-04-142021-04-29$244.08$225.67-7.29%12
2019-12-162019-12-17$25.43$25.274.99%2
2019-10-152019-10-25$17.19$21.8813.15%9
2019-09-122019-09-25$16.39$15.25-7.91%10
2019-07-252019-07-26$15.25$15.20-11.04%2
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-12-072018-12-10$23.86$24.34-1.28%2
2018-12-042018-12-06$23.98$24.200.11%2
2018-01-182018-02-05$22.97$22.21-0.92%13
2017-12-122017-12-26$22.74$21.15-1.04%10
2017-10-182017-10-20$23.98$23.01-1.04%3
2017-10-132017-10-17$23.70$23.72-1.30%3
2017-03-242017-03-28$17.54$18.504.67%3
2017-03-202017-03-22$17.46$17.00-3.46%3
2017-02-012017-02-02$16.62$16.77-1.01%2
2016-12-282017-01-25$14.65$16.9612.46%19
2016-10-042016-10-05$14.09$13.90-1.02%2
2016-07-262016-08-09$15.30$15.27-1.49%11
2016-06-082016-06-10$15.70$14.59-1.18%3
2016-04-052016-04-14$17.03$16.792.32%8
2015-12-312016-01-05$16.00$14.90-5.08%3
2015-09-212015-09-29$17.61$16.44-3.90%7
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-06-222015-07-09$17.32$17.19-2.40%13
2015-06-182015-06-19$17.46$17.500.29%2
2015-06-092015-06-10$17.07$16.71-0.25%2
2015-04-282015-05-22$15.37$16.524.69%19
2014-11-252014-12-01$16.54$15.44-0.87%4
2014-11-122014-11-24$16.61$16.45-2.78%9
2014-10-082014-10-10$17.29$15.79-0.95%3
2014-09-022014-09-12$18.94$18.613.01%9
2014-07-312014-08-25$14.89$17.509.51%18
2014-06-162014-07-07$14.97$14.848.69%15
2014-06-122014-06-13$13.57$13.76-0.53%2
2014-06-062014-06-11$13.88$13.63-1.94%4
2014-05-282014-06-03$14.02$13.66-2.76%5
2014-01-072014-01-08$9.96$10.091.12%2
2013-03-272013-04-02$2.54$2.9612.65%4
2013-03-082013-03-18$2.56$2.34-6.31%7
2013-02-122013-02-14$2.53$2.55-0.10%3
2013-01-232013-01-24$2.40$2.471.68%2
2012-11-062012-12-14$2.08$2.255.24%28
2012-09-182012-09-21$2.09$2.00-4.20%4
2012-07-172012-07-23$2.22$2.04-9.49%5
2012-06-272012-07-03$2.13$2.04-3.22%5
2012-06-192012-06-25$2.14$2.214.76%5
2012-03-272012-04-05$2.53$2.30-5.25%8
2012-03-132012-03-16$2.41$2.35-2.40%4
2012-02-152012-02-29$2.24$2.231.39%10