Strategy Zoo / S0651

LongTermTrend_V0651

ARCHIVEDhybrid

llmSimplified and regularized entry: require price or 50/200 trend alignment + positive MACD histogram + milder 20d return threshold + avoid high percentile volatility. Added multi-condition exit: softer 20d stop, momentum flip (macd_hist<0), or drawdown limit. Introduced regime gates to restrict to non-extreme volatility/trend/bubble regimes. Reduced base_position to 0.8 to lower risk/exposure and improve generalization.

Fitness
0.1808
Generation
30
Complexity
14
Created
2026-09-24

Lineage

Parents (1)
LongTermTrend_V0605S0605 · gen 28ARCHIVEDllm

entry from LongTermTrend_V0323, exit from PriceMomentum_V0557

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0651  [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_200 or sma_50 > sma_200) and macd_hist > 0.0 and ret_20d > 0.03 and vol_pctile < 0.7):
    position = 0.8
if long and (ret_20d < -0.08 or macd_hist < 0.0 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR2.9%1.6%9.3%4.2%
Total Return26.0%4.9%38.8%83.6%
Sharpe0.290.180.650.37
Sortino0.180.100.440.23
Calmar0.130.080.580.18
Volatility12.7%14.9%15.4%13.9%
Max DD-23.5%-19.8%-15.9%-23.5%
Win Rate41.2%25.0%47.6%40.3%
Avg Win6.2%12.6%5.9%6.8%
Avg Loss-2.9%-3.3%-2.1%-2.8%
Payoff2.123.842.772.44
Expectancy0.8%0.7%1.7%1.1%
Profit Factor1.481.282.521.65
Trades34122167
Avg Holding Days8.710.37.58.6
Turnover6.86.49.17.3
Exposure10.5%11.7%11.7%11.0%

Growth of $100

LongTermTrend_V0651 vs TSLA Buy & Hold
LongTermTrend_V0651 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.8%-0.10-8.5%7
201711.7%1.58-4.3%3
2018-8.9%-1.20-9.7%3
20197.3%0.52-7.4%2
20200.0%0.000.0%0
20218.4%0.48-13.6%8
2022-3.2%-0.15-19.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 testDOWNTREND270-2.9%-1.391%
hidden testEXPENSIVE8334.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.5%-0.201%
hidden testLOW VOLATILITY43010.4%0.6718%
hidden testMEDIUM VOLATILITY25022.2%1.2412%
hidden testNORMAL8038.1%0.5113%
hidden testSIDEWAYS293-5.8%-0.3522%
hidden testUPTREND37131.9%1.6412%
trainDOWNTREND518-6.7%-1.251%
trainEXPENSIVE3113.2%1.441%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6999.7%0.820%
trainLOW VOLATILITY74512.3%1.0120%
trainMEDIUM VOLATILITY568-15.0%-1.0611%
trainNORMAL1,6014.0%0.2813%
trainSIDEWAYS592-1.8%-0.1316%
trainUPTREND90213.2%0.9012%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY1830.8%0.0628%
validationMEDIUM VOLATILITY31513.8%0.7411%
validationNORMAL4744.3%0.2319%
validationSIDEWAYS2060.6%0.0319%
validationUPTREND4254.5%0.2911%

Trades (full period)

67 trades
EntryExitEntry PxExit PxReturnDays
2026-05-282026-06-02$442.10$423.74-4.61%4
2026-05-082026-05-21$428.35$417.850.97%10
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-122025-12-30$458.96$454.432.18%12
2025-09-082025-09-15$346.40$410.0410.06%6
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-06-022025-06-03$342.69$344.27-1.03%2
2025-05-222025-05-28$341.04$356.906.58%4
2025-05-122025-05-13$318.38$334.075.23%2
2024-09-232024-10-04$250.00$250.080.70%10
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-032024-09-09$210.60$216.27-1.33%5
2024-07-022024-07-12$231.26$248.2311.75%8
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-172023-12-14$234.30$251.051.82%19
2023-10-062023-10-16$260.53$253.92-2.90%7
2023-09-082023-09-25$248.50$246.99-2.15%12
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-05-312023-06-27$203.93$250.2115.56%19
2022-09-202022-09-23$308.73$275.33-5.47%4
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-042022-08-12$308.63$300.03-5.54%7
2022-03-212022-04-11$307.05$325.3110.49%16
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-282021-10-07$259.19$264.54-1.03%8
2021-09-012021-09-21$244.70$246.46-0.74%14
2021-08-032021-08-17$236.58$221.90-2.79%11
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-112021-07-12$203.30$228.575.99%21
2021-04-142021-04-29$244.08$225.67-7.29%12
2019-10-152019-10-25$17.19$21.8813.15%9
2019-02-282019-03-04$21.33$19.02-5.20%3
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-03-142018-03-15$21.78$21.71-3.72%2
2018-01-222018-02-05$23.44$22.21-1.57%11
2017-12-122017-12-26$22.74$21.15-1.04%10
2017-01-312017-02-02$16.80$16.77-0.60%3
2016-12-282017-01-25$14.65$16.9612.46%19
2016-10-042016-10-06$14.09$13.40-2.12%3
2016-07-222016-08-09$14.82$15.271.91%13
2016-06-062016-06-16$14.71$14.53-0.58%9
2016-04-042016-04-14$16.47$16.795.55%9
2016-03-292016-04-01$15.34$15.84-0.33%4
2016-03-212016-03-24$15.89$15.18-3.63%4
2015-12-302016-01-06$15.87$14.60-4.78%5
2015-09-212015-09-30$17.61$16.56-4.45%8
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-04-282015-05-22$15.37$16.524.69%19
2014-11-112014-12-01$16.74$15.440.74%14
2014-09-022014-09-12$18.94$18.613.01%9
2014-08-052014-08-25$15.90$17.505.95%15
2014-05-272014-07-07$14.10$14.848.34%29
2014-01-072014-01-08$9.96$10.091.12%2
2013-03-272013-04-02$2.54$2.9612.65%4
2013-02-122013-02-14$2.53$2.55-0.10%3
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-132012-07-23$2.28$2.04-2.29%7
2012-06-282012-07-03$2.09$2.04-4.07%4
2012-06-182012-06-25$2.12$2.2110.18%6
2012-03-282012-04-05$2.52$2.30-6.33%7
2012-03-142012-03-16$2.35$2.35-2.58%3
2012-02-152012-02-29$2.24$2.231.39%10