Strategy Zoo / S1564

LongTermTrend_V1564

ARCHIVEDhybrid

llmSimplified and generalized entry: replace repeated ret_20d reliance with SMA-50 trend confirmation + sma_50_slope and RSI momentum; add low volatility filter (vol_pctile<0.6) and allow short 20d returns as alternative. Strengthened exits: OR of 20d stop-loss (-8%), absolute drawdown (12%), or close below sma_50. Add regime gates to require UPTREND and LOW/MEDIUM volatility and avoid bubble states. Reduced base_position from 1.0 to 0.8 to lower leverage and improve robustness.

Fitness
0.0743
Generation
72
Complexity
14
Created
2026-10-14

Lineage

Parents (1)
LongTermTrend_V1343S1343 · gen 61ELITEllm

changed cumret_252d threshold -0.1997 -> -0.4102

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1564  [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 or ret_20d > 0.03) and sma_50_slope > 0.0 and rsi_14 > 50.0 and vol_pctile < 0.6):
    position = 0.8
if long and (ret_20d < -0.08 or drawdown > 0.12 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.4%-8.1%-0.2%-2.5%
Total Return-10.8%-22.4%-0.6%-31.2%
Sharpe-0.05-0.470.07-0.11
Sortino-0.03-0.220.03-0.05
Calmar-0.04-0.17-0.01-0.05
Volatility12.5%15.3%15.8%14.0%
Max DD-36.3%-48.5%-28.9%-50.6%
Win Rate33.3%10.0%40.0%30.8%
Avg Win6.0%34.9%8.0%8.6%
Avg Loss-3.4%-5.8%-4.9%-4.4%
Payoff1.756.001.641.95
Expectancy-0.3%-1.7%0.3%-0.4%
Profit Factor0.870.671.090.87
Trades27101552
Avg Holding Days12.911.37.711.1
Turnover5.45.36.45.6
Exposure12.8%10.9%8.5%11.3%

Growth of $100

LongTermTrend_V1564 vs TSLA Buy & Hold
LongTermTrend_V1564 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-8.3%-0.94-13.4%2
20178.1%1.14-3.8%6
2018-18.5%-1.78-18.4%3
20194.6%0.58-7.1%2
20200.0%0.000.0%0
202111.9%0.63-25.7%4
2022-30.7%-2.25-30.6%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 testDOWNTREND2790.0%0.000%
hidden testEXPENSIVE8334.0%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-19.1%-1.201%
hidden testLOW VOLATILITY4439.7%0.7412%
hidden testMEDIUM VOLATILITY2516.4%0.339%
hidden testNORMAL817-2.2%-0.1310%
hidden testSIDEWAYS298-15.7%-1.291%
hidden testUPTREND37115.4%0.6821%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31110.1%1.792%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-3.4%-0.331%
trainLOW VOLATILITY74512.5%0.8527%
trainMEDIUM VOLATILITY568-14.5%-1.219%
trainNORMAL1,601-2.8%-0.2016%
trainSIDEWAYS592-7.3%-1.291%
trainUPTREND9023.3%0.1828%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.5%-1.000%
validationLOW VOLATILITY18312.6%0.9128%
validationMEDIUM VOLATILITY315-17.0%-0.879%
validationNORMAL474-11.6%-0.6017%
validationSIDEWAYS206-27.8%-2.082%
validationUPTREND4250.6%0.0318%

Trades (full period)

52 trades
EntryExitEntry PxExit PxReturnDays
2026-05-292026-06-01$435.79$415.88-1.30%2
2025-12-042026-01-05$454.53$451.67-1.63%21
2025-09-122025-09-15$395.94$410.045.72%2
2025-09-042025-09-05$338.53$350.840.90%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
2025-06-022025-06-06$342.69$295.14-14.50%5
2025-05-222025-05-28$341.04$356.906.58%4
2024-10-032024-10-14$240.66$219.16-10.21%8
2024-09-182024-09-20$227.20$238.255.47%3
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-09-032024-09-04$210.60$219.41-1.47%2
2024-07-022024-07-12$231.26$248.2311.75%8
2024-01-032024-01-10$238.45$233.94-4.50%6
2023-06-022023-08-03$213.97$259.3217.82%43
2022-09-152022-09-23$303.75$275.33-3.86%7
2022-09-122022-09-14$304.42$302.61-2.16%3
2022-08-162022-08-22$306.56$289.91-3.44%5
2022-08-052022-08-08$288.17$290.42-5.46%2
2022-04-052022-04-27$363.75$293.84-19.20%16
2021-12-292022-01-03$362.06$399.93-2.49%4
2021-12-092021-12-14$334.60$319.50-7.85%4
2021-12-012021-12-03$365.00$338.32-4.37%3
2021-08-242021-11-10$236.16$355.9834.93%56
2021-08-052021-08-23$238.21$235.43-3.57%13
2019-11-222019-12-17$22.20$25.275.89%17
2019-10-212019-10-22$16.90$17.04-1.23%2
2018-11-292018-12-21$22.74$21.32-7.62%16
2018-02-082018-02-09$21.02$20.69-7.06%2
2018-02-012018-02-06$23.28$22.26-4.95%4
2017-10-182017-10-20$23.98$23.01-1.04%3
2017-10-112017-10-17$23.64$23.72-1.28%5
2017-03-242017-03-28$17.54$18.504.67%3
2017-03-212017-03-22$16.71$17.00-3.59%2
2017-01-312017-02-03$16.80$16.760.14%4
2017-01-052017-01-25$15.12$16.969.47%14
2016-07-262016-08-29$15.30$14.35-3.63%25
2016-04-052016-05-04$17.03$14.84-4.86%22
2015-08-052015-08-07$18.01$16.17-6.18%3
2015-07-302015-08-04$17.79$17.75-1.32%4
2015-05-112015-07-28$15.97$17.655.51%55
2015-04-292015-05-01$15.50$15.07-1.69%3
2014-10-072014-10-10$17.30$15.79-1.27%4
2014-06-232014-09-23$15.81$16.697.19%65
2013-03-262013-04-02$2.52$2.9613.44%5
2013-03-062013-03-18$2.51$2.34-3.08%9
2013-02-152013-02-22$2.47$2.41-6.61%5
2013-02-122013-02-14$2.53$2.55-0.10%3
2013-01-162013-01-24$2.27$2.474.77%6
2012-12-182013-01-14$2.31$2.22-3.60%18
2012-11-232012-12-14$2.14$2.252.68%16
2012-02-232012-04-10$2.30$2.16-2.46%33