Strategy Zoo / S1499

LongTermTrend_V1499

ARCHIVEDhybrid

llmIntroduce short-term trend filter (sma_50_slope>0) and require either long-term trend (close>sma_200 with positive slope) or momentum; relax ret_20d threshold to 0.03 to increase signal frequency; add volatility gate (only LOW/MEDIUM) and vol_pctile<0.7 to avoid high-volatility entries; add breakout or recent 5d momentum as alternative entry; expand exits with short-term stop (ret_5d<-3%) and overbought rsi>70; implement position scaling by vol_pctile (0.4 if vol_pctile>0.8, 0.7 if >0.6) and reduce base_position to 0.8. These structural changes aim to improve robustness and reduce drawdown while preserving upside.

Fitness
0.0945
Generation
69
Complexity
20
Created
2026-10-13

Lineage

Parents (1)
LongTermTrend_V1402S1402 · gen 64ELITEllm

changed ret_20d threshold 0.1 -> 0.0257

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1499  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and ((((close > sma_200 and sma_200_slope > 0.0) or ret_20d > 0.05) and sma_50_slope > 0.0) and ret_20d > 0.03 and cumret_252d > -0.25 and vol_pctile < 0.7 and (breakout_20 > 0.5 or ret_5d > 0.01)):
    position = 0.8
if long and (ret_20d < -0.1003 or ret_5d < -0.03 or rsi_14 > 70.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.0%-3.3%1.1%-0.9%
Total Return-7.6%-9.5%4.0%-13.0%
Sharpe-0.01-0.250.15-0.02
Sortino-0.01-0.100.07-0.01
Calmar-0.02-0.110.07-0.02
Volatility12.8%10.9%10.9%12.0%
Max DD-40.3%-28.6%-14.2%-40.3%
Win Rate47.4%47.1%57.7%50.0%
Avg Win3.9%3.6%2.9%3.5%
Avg Loss-3.5%-4.1%-3.5%-3.6%
Payoff1.110.890.850.99
Expectancy-0.0%-0.4%0.2%-0.0%
Profit Factor1.000.791.160.99
Trades571726100
Avg Holding Days5.25.63.44.8
Turnover11.49.111.110.9
Exposure9.5%8.4%5.3%8.2%

Growth of $100

LongTermTrend_V1499 vs TSLA Buy & Hold
LongTermTrend_V1499 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.0%-0.31-11.0%6
20175.3%1.21-1.8%7
2018-10.6%-1.33-11.3%3
2019-1.8%0.01-19.3%6
20200.0%0.000.0%0
202119.4%1.37-6.0%11
2022-24.3%-2.05-24.2%6

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE8317.6%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-1.0%-0.111%
hidden testLOW VOLATILITY4432.4%0.208%
hidden testMEDIUM VOLATILITY2503.0%0.295%
hidden testNORMAL8160.1%0.016%
hidden testSIDEWAYS298-14.0%-1.746%
hidden testUPTREND37115.5%0.989%
trainDOWNTREND5182.2%0.741%
trainEXPENSIVE3115.0%1.051%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6991.7%0.121%
trainLOW VOLATILITY7459.7%0.7620%
trainMEDIUM VOLATILITY568-15.4%-1.386%
trainNORMAL1,601-1.2%-0.0812%
trainSIDEWAYS592-8.0%-0.697%
trainUPTREND9023.6%0.2216%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2580.0%0.000%
validationLOW VOLATILITY1835.0%0.4324%
validationMEDIUM VOLATILITY315-9.4%-0.656%
validationNORMAL474-4.3%-0.3113%
validationSIDEWAYS206-19.7%-1.692%
validationUPTREND4254.7%0.3914%

Trades (full period)

100 trades
EntryExitEntry PxExit PxReturnDays
2026-05-272026-06-04$440.36$418.45-1.96%7
2026-05-142026-05-19$443.30$404.11-6.52%4
2025-12-152025-12-30$475.31$454.430.02%11
2025-09-082025-09-15$346.40$410.0410.06%6
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-06-022025-06-04$342.69$332.05-0.66%3
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-07-102024-07-11$263.26$241.030.12%2
2024-07-082024-07-09$252.94$262.330.29%2
2024-07-032024-07-05$246.39$251.525.07%2
2024-06-272024-07-02$197.42$231.265.32%4
2023-07-192023-07-20$291.26$262.90-0.73%2
2023-07-172023-07-18$290.38$293.342.40%2
2023-07-062023-07-12$276.54$271.99-3.76%5
2023-07-032023-07-05$279.82$282.485.35%2
2023-06-232023-06-27$256.60$250.21-7.30%3
2023-06-212023-06-22$259.46$264.61-4.53%2
2023-06-162023-06-20$260.54$274.451.29%2
2023-06-142023-06-15$256.79$255.90-0.75%2
2023-06-122023-06-13$249.83$258.711.62%2
2023-06-082023-06-09$234.86$244.403.50%2
2023-06-062023-06-07$221.31$224.571.20%2
2023-06-022023-06-05$213.97$217.612.32%2
2023-05-312023-06-01$203.93$207.520.94%2
2023-03-012023-03-03$202.77$197.79-5.92%3
2022-09-212022-09-23$300.80$275.33-5.39%3
2022-08-152022-08-23$309.32$296.45-2.84%7
2022-08-042022-08-05$308.63$288.170.16%2
2022-08-022022-08-03$300.59$307.400.73%2
2022-04-202022-04-27$325.73$293.84-11.99%6
2022-04-052022-04-07$363.75$352.42-7.15%3
2021-11-232021-12-03$369.68$338.32-5.13%8
2021-11-052021-11-08$407.36$387.65-0.67%2
2021-11-032021-11-04$404.62$409.972.70%2
2021-11-012021-11-02$402.86$390.676.63%2
2021-10-282021-10-29$359.01$371.332.86%2
2021-10-262021-10-27$339.48$345.95-0.66%2
2021-10-222021-10-25$303.23$341.621.24%2
2021-10-202021-10-21$288.60$298.00-0.02%2
2021-10-182021-10-19$290.04$288.092.41%2
2021-08-242021-10-15$236.16$281.0112.38%38
2021-08-032021-08-17$236.58$221.90-2.79%11
2019-12-052019-12-17$22.02$25.2711.35%9
2019-11-222019-11-25$22.20$22.42-5.07%2
2019-10-162019-10-25$17.32$21.8812.82%8
2019-09-122019-09-25$16.39$15.25-7.91%10
2019-07-252019-07-26$15.25$15.20-11.04%2
2019-07-222019-07-24$17.05$17.660.46%3
2018-12-042018-12-18$23.98$22.47-2.37%10
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-01-222018-02-06$23.44$22.26-4.00%12
2017-01-232017-01-24$16.59$16.971.21%2
2017-01-192017-01-20$16.25$16.321.65%2
2017-01-172017-01-18$15.71$15.89-0.89%2
2017-01-122017-01-13$15.31$15.85-0.21%2
2017-01-102017-01-11$15.32$15.32-0.65%2
2017-01-062017-01-09$15.27$15.420.64%2
2016-12-302017-01-05$14.25$15.124.41%4
2016-12-282016-12-29$14.65$14.31-0.08%2
2016-07-262016-08-30$15.30$14.09-5.31%26
2016-04-182016-05-02$16.93$16.12-4.48%11
2016-04-082016-04-14$16.67$16.79-0.98%5
2016-04-062016-04-07$17.69$17.152.95%2
2016-04-012016-04-05$15.84$17.035.81%3
2015-12-302016-01-05$15.87$14.90-4.79%4
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-07-202015-07-27$18.82$16.87-2.83%6
2015-07-072015-07-09$17.86$17.19-7.27%3
2015-06-292015-07-06$17.47$18.653.71%5
2015-06-252015-06-26$17.92$17.810.93%2
2015-06-222015-06-24$17.32$17.681.41%3
2015-06-182015-06-19$17.46$17.500.29%2
2015-06-092015-06-10$17.07$16.71-0.25%2
2015-05-292015-06-01$16.72$16.63-0.37%2
2015-05-192015-05-20$16.48$16.29-0.68%2
2015-05-152015-05-18$16.59$16.581.39%2
2015-05-132015-05-14$16.21$16.27-0.67%2
2015-05-112015-05-12$15.97$16.320.81%2
2015-05-012015-05-08$15.07$15.773.63%6
2015-04-292015-04-30$15.50$15.070.52%2
2015-04-142015-04-28$13.83$15.378.10%11
2014-09-052014-09-16$18.49$17.38-9.18%8
2014-09-032014-09-04$18.75$19.07-0.98%2
2014-08-262014-09-02$17.45$18.942.01%5
2014-08-152014-08-18$17.47$17.330.03%2
2014-08-132014-08-14$17.35$17.43-0.05%2
2014-08-082014-08-12$16.54$17.332.04%3
2014-07-152014-08-07$14.64$16.837.66%18
2014-06-262014-07-03$15.71$15.28-2.67%6
2014-06-232014-06-24$15.81$15.502.50%2
2013-03-262013-04-02$2.52$2.9613.44%5
2013-02-202013-02-22$2.57$2.41-8.57%3
2013-02-122013-02-14$2.53$2.55-0.10%3
2012-12-132012-12-31$2.24$2.26-4.78%12
2012-12-052012-12-12$2.25$2.353.08%6
2012-11-122012-12-04$2.07$2.2611.07%16
2012-03-272012-04-05$2.53$2.30-5.25%8
2012-03-122012-03-21$2.40$2.340.36%8
2012-02-232012-02-28$2.30$2.25-1.56%4