Strategy Zoo / S0522

LongTermTrend_V0522

ARCHIVEDhybrid

llmSimplified and strengthened entry: require price above sma_50 with positive sma_50_slope and 20d momentum OR a controlled breakout with moderate vol_pctile and not too close to 52w high. Added multi-condition exit: negative 20d return, cross below sma_50 with weakening MACD histogram, or extreme drawdown. Added regime gates: only trade in UPTREND, avoid HIGH_VOLATILITY and expensive bubble states. Reduced base position to 0.9 to limit sizing risk.

Fitness
0.1091
Generation
24
Complexity
21
Created
2026-09-22

Lineage

Parents (1)
LongTermTrend_V0454S0454 · gen 21ARCHIVEDllm

entry = LongTermTrend_V0323 OR PriceMomentum_V0160

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0522  [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.04) and dist_52w_high < 0.5) or (breakout_20 > 0.5 and vol_pctile < 0.8 and dist_52w_high < 0.6)):
    position = 0.9
if long and (ret_20d < 0.0 or (close < sma_50 and macd_hist < 0.0) or drawdown > 0.2):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.1%-3.6%-2.3%-1.4%
Total Return-0.9%-10.5%-8.2%-18.6%
Sharpe0.05-0.15-0.04-0.02
Sortino0.03-0.07-0.02-0.01
Calmar-0.00-0.08-0.07-0.03
Volatility12.4%16.0%17.4%14.5%
Max DD-24.6%-43.4%-33.2%-48.0%
Win Rate48.0%11.1%43.8%40.0%
Avg Win4.6%39.7%8.1%7.6%
Avg Loss-4.0%-5.4%-6.5%-5.1%
Payoff1.157.431.251.48
Expectancy0.1%-0.3%-0.1%-0.0%
Profit Factor1.060.930.970.99
Trades2591650
Avg Holding Days11.211.46.49.7
Turnover5.65.47.86.1
Exposure11.4%11.2%8.4%10.6%

Growth of $100

LongTermTrend_V0522 vs TSLA Buy & Hold
LongTermTrend_V0522 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-2.9%-0.27-9.1%3
201713.4%2.26-1.0%3
2018-5.1%-0.62-6.9%2
20195.1%0.58-8.0%2
20200.0%0.000.0%0
202125.1%1.05-20.9%4
2022-28.6%-2.42-28.5%5

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 testDOWNTREND2680.0%0.000%
hidden testEXPENSIVE8338.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-28.5%-1.482%
hidden testLOW VOLATILITY42911.2%0.7712%
hidden testMEDIUM VOLATILITY2496.9%0.359%
hidden testNORMAL801-4.8%-0.2710%
hidden testSIDEWAYS293-18.3%-1.352%
hidden testUPTREND37112.5%0.5120%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3119.7%1.601%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6992.2%0.220%
trainLOW VOLATILITY7458.3%0.5625%
trainMEDIUM VOLATILITY568-11.4%-0.997%
trainNORMAL1,601-1.1%-0.0814%
trainSIDEWAYS592-4.8%-1.231%
trainUPTREND9024.6%0.2525%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-10.6%-1.000%
validationLOW VOLATILITY18311.5%0.7530%
validationMEDIUM VOLATILITY315-3.8%-0.209%
validationNORMAL474-3.9%-0.1918%
validationSIDEWAYS206-17.8%-1.972%
validationUPTREND4254.3%0.2119%

Trades (full period)

50 trades
EntryExitEntry PxExit PxReturnDays
2026-07-022026-07-06$393.45$419.77-6.91%2
2026-05-292026-06-01$435.79$415.88-1.46%2
2025-12-152026-01-05$475.31$451.67-4.24%14
2025-12-082025-12-10$439.58$451.45-2.12%3
2025-09-122025-09-15$395.94$410.046.43%2
2025-09-042025-09-05$338.53$350.841.02%2
2025-06-022025-06-06$342.69$295.14-16.25%5
2025-05-222025-05-28$341.04$356.907.40%4
2024-10-032024-10-14$240.66$219.16-11.47%8
2024-09-242024-09-27$254.27$260.461.34%4
2024-09-162024-09-20$226.78$238.255.15%5
2024-09-062024-09-09$210.73$216.27-7.77%2
2024-07-022024-07-12$231.26$248.2313.19%8
2024-01-032024-01-05$238.45$237.49-3.98%3
2023-07-252023-07-28$265.28$266.44-4.64%4
2023-06-022023-07-24$213.97$269.0622.50%35
2022-09-202022-09-23$308.73$275.33-6.14%4
2022-09-122022-09-14$304.42$302.61-2.44%3
2022-08-162022-08-22$306.56$289.91-3.86%5
2022-08-052022-08-08$288.17$290.42-6.14%2
2022-04-052022-04-21$363.75$336.26-13.43%12
2021-12-092021-12-10$334.60$339.01-5.66%2
2021-11-232021-12-01$369.68$365.00-1.10%6
2021-08-242021-11-10$236.16$355.9839.73%56
2021-08-052021-08-23$238.21$235.43-4.04%13
2019-11-222019-12-17$22.20$25.276.59%17
2019-10-212019-10-22$16.90$17.04-1.39%2
2018-11-272018-12-18$22.93$22.470.48%15
2018-02-012018-02-06$23.28$22.26-5.56%4
2017-03-272017-03-28$18.01$18.502.23%2
2017-01-312017-02-03$16.80$16.760.15%4
2017-01-052017-01-25$15.12$16.9610.70%14
2016-07-262016-08-16$15.30$14.91-1.90%16
2016-06-082016-06-09$15.70$15.291.05%2
2016-04-052016-05-03$17.03$15.49-2.03%21
2015-08-062015-08-07$16.41$16.17-8.17%2
2015-07-142015-07-27$17.71$16.870.96%10
2015-05-112015-07-09$15.97$17.196.82%42
2015-04-292015-05-01$15.50$15.07-1.90%3
2014-08-042014-09-16$15.90$17.387.81%31
2014-06-232014-07-16$15.81$14.48-4.07%17
2013-03-262013-04-02$2.52$2.9615.13%5
2013-02-152013-02-22$2.47$2.41-7.46%5
2013-02-122013-02-14$2.53$2.55-0.11%3
2013-01-032013-01-09$2.32$2.24-4.46%5
2012-12-182012-12-31$2.31$2.26-3.26%9
2012-11-232012-12-14$2.14$2.252.99%16
2012-03-272012-04-10$2.53$2.16-10.40%10
2012-02-232012-03-23$2.30$2.270.33%22
2012-02-212012-02-22$2.30$2.28-1.39%2