Strategy Zoo / S1558

LongTermTrend_V1558

ARCHIVEDhybrid

llmReduced overfitting to short ret_20d signals and added structural guards: (1) diversified entry rules to include breakout+sma_50 momentum and a clean sma_200 trend entry; (2) added exits for larger short-term drawdowns, price crossing below sma_50, and a stronger ret_20d stop; (3) added regime gates to trade only in uptrends and low/medium volatility and avoid bubble states; (4) introduced volatility-based position scaling (trim in high vol, increase in low vol) and reduced base position to 0.6 to improve robustness and lower risk.

Fitness
0.1090
Generation
72
Complexity
18
Created
2026-10-14

Lineage

Parents (1)
LongTermTrend_V1110S1110 · gen 51ARCHIVEDllm

entry = LongTermTrend_V0605 OR PriceMomentum_V1003

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1558  [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 breakout_20 == 1 and vol_pctile < 0.75) or (close > sma_200 and sma_200_slope > 0.0 and ret_20d > 0.03 and cumret_252d > -0.5)):
    position = 0.6
if long and (ret_20d < -0.06 or close < sma_50 or drawdown < -0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.3%-0.6%-1.4%-1.2%
Total Return-10.2%-1.8%-5.3%-16.5%
Sharpe-0.11-0.01-0.13-0.09
Sortino-0.05-0.01-0.05-0.04
Calmar-0.06-0.03-0.07-0.04
Volatility8.9%9.9%8.4%9.0%
Max DD-24.0%-24.4%-19.6%-28.4%
Win Rate34.6%41.7%51.9%42.9%
Avg Win3.3%2.9%2.1%2.7%
Avg Loss-2.3%-2.0%-2.6%-2.3%
Payoff1.451.440.811.17
Expectancy-0.4%0.0%-0.2%-0.2%
Profit Factor0.771.030.870.88
Trades26242777
Avg Holding Days10.54.02.65.7
Turnover3.99.68.66.3
Exposure7.3%5.6%2.8%5.8%

Growth of $100

LongTermTrend_V1558 vs TSLA Buy & Hold
LongTermTrend_V1558 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-0.8%-0.13-5.9%3
20175.1%1.80-0.7%5
2018-13.8%-1.73-13.8%3
20194.4%0.73-4.5%1
20200.0%0.000.0%0
20218.5%0.60-16.5%16
2022-9.5%-1.42-11.5%8

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 testDOWNTREND2790.0%0.000%
hidden testEXPENSIVE8325.3%2.441%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-14.9%-1.761%
hidden testLOW VOLATILITY4433.1%0.434%
hidden testMEDIUM VOLATILITY2515.5%0.562%
hidden testNORMAL817-3.8%-0.463%
hidden testSIDEWAYS298-4.2%-0.961%
hidden testUPTREND3710.6%0.047%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3116.1%1.511%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-1.6%-0.210%
trainLOW VOLATILITY7456.5%0.6315%
trainMEDIUM VOLATILITY568-10.0%-1.225%
trainNORMAL1,601-2.4%-0.249%
trainSIDEWAYS592-5.4%-1.281%
trainUPTREND9021.4%0.1116%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-4.9%-0.660%
validationLOW VOLATILITY18310.7%1.4114%
validationMEDIUM VOLATILITY315-2.5%-0.205%
validationNORMAL474-0.2%-0.029%
validationSIDEWAYS206-5.1%-1.140%
validationUPTREND4252.2%0.1710%

Trades (full period)

77 trades
EntryExitEntry PxExit PxReturnDays
2026-07-022026-07-06$393.45$419.77-4.61%2
2026-05-292026-06-01$435.79$415.88-0.98%2
2025-12-082026-01-05$439.58$451.67-2.24%19
2025-09-122025-09-15$395.94$410.044.29%2
2025-09-042025-09-05$338.53$350.840.68%2
2025-06-042025-06-05$332.05$284.70-2.25%2
2025-06-022025-06-03$342.69$344.27-0.77%2
2025-05-272025-05-28$362.89$356.904.04%2
2025-05-222025-05-23$341.04$339.341.03%2
2024-10-112024-10-14$217.80$219.16-5.39%2
2024-10-092024-10-10$241.05$238.77-0.97%2
2024-10-072024-10-08$240.83$244.50-2.34%2
2024-09-162024-09-17$226.78$227.87-1.03%2
2024-09-062024-09-09$210.73$216.27-5.18%2
2024-07-112024-07-12$241.03$248.23-5.18%2
2024-07-092024-07-10$262.33$263.262.11%2
2024-07-052024-07-08$251.52$252.941.13%2
2024-07-022024-07-03$231.26$246.395.99%2
2024-01-032024-01-04$238.45$237.93-2.53%2
2023-07-182023-07-19$293.34$291.260.49%2
2023-07-052023-07-06$282.48$276.540.45%2
2023-06-202023-06-21$274.45$259.463.08%2
2023-06-142023-06-15$256.79$255.90-0.56%2
2023-06-122023-06-13$249.83$258.711.21%2
2023-06-082023-06-09$234.86$244.402.63%2
2023-06-062023-06-07$221.31$224.570.90%2
2023-06-022023-06-05$213.97$217.611.74%2
2022-09-202022-09-21$308.73$300.80-0.19%2
2022-08-162022-08-17$306.56$304.00-0.65%2
2022-08-052022-08-08$288.17$290.42-4.10%2
2022-04-192022-04-20$342.72$325.731.30%2
2022-04-142022-04-18$328.33$334.76-2.31%2
2022-04-122022-04-13$328.98$340.790.56%2
2022-04-052022-04-11$363.75$325.31-6.48%5
2022-01-122022-01-13$368.74$343.852.24%2
2021-12-092021-12-10$334.60$339.01-3.78%2
2021-11-232021-12-02$369.68$361.53-3.28%7
2021-09-222021-11-10$250.65$355.9822.14%36
2021-09-162021-09-21$252.33$246.46-2.15%4
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-072021-09-13$250.97$247.670.12%5
2021-09-012021-09-02$244.70$244.13-0.25%2
2021-08-302021-08-31$243.64$245.241.48%2
2021-08-262021-08-27$233.72$237.31-0.97%2
2021-08-242021-08-25$236.16$237.070.07%2
2021-08-192021-08-20$224.49$226.75-1.47%2
2021-08-172021-08-18$221.90$229.66-1.91%2
2021-08-132021-08-16$239.06$228.72-0.54%2
2021-08-112021-08-12$235.94$240.75-0.30%2
2021-08-092021-08-10$237.92$236.661.14%2
2021-08-052021-08-06$238.21$233.030.19%2
2019-11-222019-12-17$22.20$25.274.45%17
2018-11-272018-12-21$22.93$21.32-5.40%18
2018-02-082018-02-09$21.02$20.69-5.29%2
2018-02-012018-02-06$23.28$22.26-3.73%4
2017-03-272017-03-28$18.01$18.501.49%2
2017-01-192017-01-25$16.25$16.963.93%5
2017-01-172017-01-18$15.71$15.89-0.67%2
2017-01-092017-01-10$15.42$15.320.47%2
2017-01-052017-01-06$15.12$15.27-0.18%2
2016-07-292016-08-01$15.65$15.330.97%2
2016-07-262016-07-27$15.30$15.23-0.25%2
2016-04-052016-05-02$17.03$16.12-1.54%20
2015-08-062015-08-07$16.41$16.17-5.45%2
2015-05-122015-07-28$16.32$17.653.48%54
2015-04-302015-05-01$15.07$15.07-1.77%2
2014-08-042014-09-23$15.90$16.694.41%36
2014-06-232014-07-17$15.81$14.36-3.30%18
2013-03-262013-04-02$2.52$2.9610.06%5
2013-02-152013-02-22$2.47$2.41-4.92%5
2013-02-122013-02-14$2.53$2.55-0.07%3
2012-12-182013-01-14$2.31$2.22-2.69%18
2012-11-292012-12-14$2.25$2.250.61%12
2012-11-272012-11-28$2.14$2.22-0.34%2
2012-11-232012-11-26$2.14$2.15-0.75%2
2012-02-232012-04-10$2.30$2.16-1.69%33
2012-02-212012-02-22$2.30$2.28-0.93%2