Strategy Zoo / S1116

LongTermTrend_V1116

ARCHIVEDhybrid

llmSimplified and generalized entry rules: replaced stacked ret/cumret constraints with two robust pathways (trend-follow using close>sma_200 + positive sma_200_slope + macd_hist + mild ret_20d threshold; breakout pathway using breakout_20 + vol_chg + close>sma_50). Removed overfitting cumret_252d condition and tightened slope to >0.0 for clearer trend. Broadened breakout signal to 20-day flag. Improved exits: OR of macd_hist<0, short-term stop-loss (ret_5d<-3%), or price dropping below sma_50 for cleaner risk control. Added regime gates (UPTREND, MEDIUM_VOLATILITY, NORMAL) to avoid unfavorable markets and lowered base_position to 0.7 to reduce drawdown and turnover.

Fitness
0.5824
Generation
51
Complexity
14
Created
2026-10-03

Lineage

Parents (1)
LongTermTrend_V1038S1038 · gen 47ARCHIVEDllm

swapped indicator rel_volume -> vol_chg

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1116  [hybrid]
if flat and ((close > sma_200 and sma_200_slope > 0.0 and macd_hist > 0.0 and ret_20d > 0.03) or (breakout_20 == 1 and vol_chg > 0.02 and close > sma_50)):
    position = 0.7
if long and (macd_hist < 0.0 or ret_5d < -0.03 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR18.1%46.7%4.7%19.9%
Total Return277.3%215.6%18.8%1343.5%
Sharpe0.921.470.340.94
Sortino0.861.530.280.87
Calmar0.682.630.170.71
Volatility20.2%28.8%18.6%21.9%
Max DD-26.4%-17.8%-27.8%-27.8%
Win Rate45.8%50.0%31.7%43.2%
Avg Win7.6%9.5%8.2%8.6%
Avg Loss-2.5%-2.9%-2.9%-2.7%
Payoff3.063.292.873.19
Expectancy2.1%3.3%0.6%2.2%
Profit Factor2.593.291.332.43
Trades724241155
Avg Holding Days9.57.16.78.2
Turnover12.719.615.414.7
Exposure21.8%23.8%17.5%21.1%

Growth of $100

LongTermTrend_V1116 vs TSLA Buy & Hold
LongTermTrend_V1116 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
201615.4%1.49-5.4%4
201718.2%1.28-9.0%11
2018-1.2%-0.00-10.2%9
20198.9%0.48-19.7%6
2020178.2%2.62-17.3%13
202125.0%1.22-17.8%20
2022-11.8%-0.70-15.6%9

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 testDOWNTREND277-1.3%-0.108%
hidden testEXPENSIVE8315.2%0.6232%
hidden testEXTREME4891.4%2.9023%
hidden testHIGH VOLATILITY25411.1%0.4717%
hidden testLOW VOLATILITY43620.6%1.3020%
hidden testMEDIUM VOLATILITY251-23.2%-1.3313%
hidden testNORMAL8100.4%0.0216%
hidden testSIDEWAYS293-17.0%-0.9723%
hidden testUPTREND37130.5%1.3620%
trainDOWNTREND5183.6%0.438%
trainEXPENSIVE31132.8%1.4134%
trainEXTREME100201.7%4.1949%
trainHIGH VOLATILITY69934.8%1.2720%
trainLOW VOLATILITY74519.5%1.4128%
trainMEDIUM VOLATILITY568-2.4%-0.1516%
trainNORMAL1,6014.4%0.2818%
trainSIDEWAYS5927.9%0.4822%
trainUPTREND90234.3%1.3130%
validationDOWNTREND1253.6%0.314%
validationEXPENSIVE13852.7%1.9625%
validationEXTREME144165.7%3.2245%
validationHIGH VOLATILITY25851.2%1.3719%
validationLOW VOLATILITY18310.8%0.7427%
validationMEDIUM VOLATILITY31553.6%1.9926%
validationNORMAL4742.0%0.1217%
validationSIDEWAYS206-6.9%-0.3918%
validationUPTREND42577.7%2.1832%

Trades (full period)

latest 100 of 155
EntryExitEntry PxExit PxReturnDays
2026-09-242026-09-29$377.94$352.84-4.33%4
2026-09-042026-09-08$354.08$368.16-4.28%2
2026-09-012026-09-02$356.09$357.01-2.39%2
2026-07-022026-07-06$393.45$419.77-5.38%2
2026-05-282026-06-02$442.10$423.74-4.03%4
2026-05-082026-05-19$428.35$404.11-0.36%8
2026-04-202026-04-22$392.50$387.51-2.63%3
2025-12-082025-12-30$439.58$454.430.67%16
2025-11-042025-11-05$444.26$462.07-3.74%2
2025-10-292025-10-30$461.51$440.100.01%2
2025-09-082025-10-06$346.40$453.2515.37%21
2025-08-252025-09-03$346.60$334.09-2.32%7
2025-08-112025-08-20$339.03$323.90-0.19%8
2025-05-282025-06-03$356.90$344.27-4.05%5
2025-05-232025-05-27$339.34$362.89-0.49%2
2025-05-122025-05-22$318.38$341.048.35%9
2025-04-282025-05-07$285.88$276.22-2.47%8
2024-12-062024-12-23$389.22$430.609.69%12
2024-11-202024-11-29$342.03$345.16-2.77%7
2024-11-072024-11-19$296.91$346.0012.03%9
2024-10-282024-11-01$262.51$248.98-5.20%5
2024-09-202024-10-03$238.25$240.661.37%10
2024-09-062024-09-09$210.73$216.27-6.05%2
2024-06-182024-07-18$184.86$249.2322.06%21
2024-04-302024-05-07$183.28$177.81-3.47%6
2023-12-152024-01-02$253.50$248.42-0.80%11
2023-12-072023-12-14$242.64$251.05-0.16%6
2023-11-292023-12-06$244.14$239.37-2.41%6
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-222023-11-24$234.21$235.45-2.17%2
2023-11-202023-11-21$235.60$241.200.25%2
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-10-062023-10-16$260.53$253.92-2.54%7
2023-09-222023-09-25$244.88$246.99-3.10%2
2023-09-202023-09-21$262.59$255.70-1.17%2
2023-09-122023-09-19$267.48$266.50-2.25%6
2023-09-082023-09-11$248.50$273.58-0.97%2
2023-07-182023-07-19$293.34$291.260.57%2
2023-05-232023-06-27$185.77$250.2118.74%24
2023-04-032023-04-06$194.77$185.06-7.60%4
2023-01-272023-02-23$177.90$202.0717.43%19
2022-09-202022-09-23$308.73$275.33-4.80%4
2022-08-162022-08-19$306.56$296.67-1.60%4
2022-07-222022-08-08$272.24$290.424.21%12
2022-07-112022-07-12$234.34$233.07-4.72%2
2022-04-082022-04-11$341.83$325.31-2.24%2
2022-03-212022-04-07$307.05$352.4210.69%14
2022-01-132022-01-14$343.85$349.87-4.86%2
2022-01-112022-01-12$354.80$368.740.28%2
2022-01-042022-01-07$383.20$342.32-8.10%4
2021-11-102021-11-11$355.98$354.502.90%2
2021-10-132021-11-09$270.36$341.1729.54%20
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-282021-10-07$259.19$264.54-0.90%8
2021-09-012021-09-21$244.70$246.46-0.63%14
2021-08-022021-08-17$236.56$221.90-0.20%12
2021-07-132021-07-15$222.85$216.87-3.45%3
2021-07-082021-07-09$217.60$218.980.75%2
2021-06-242021-07-07$226.61$214.880.21%9
2021-06-222021-06-23$207.90$218.860.18%2
2021-06-182021-06-21$207.77$206.940.62%2
2021-06-152021-06-16$199.79$201.62-2.22%2
2021-06-112021-06-14$203.30$205.90-0.17%2
2021-04-222021-04-29$239.90$225.67-4.82%6
2021-04-142021-04-21$244.08$248.04-4.12%6
2021-04-072021-04-08$223.66$227.93-2.23%2
2021-04-052021-04-06$230.35$230.542.96%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-202021-01-25$283.48$293.600.03%4
2021-01-042021-01-19$243.26$281.5211.78%11
2020-12-182020-12-23$231.67$215.33-1.72%4
2020-11-182020-12-17$162.21$218.6327.56%21
2020-10-152020-10-20$149.63$140.65-4.79%4
2020-08-172020-09-04$122.38$139.4416.24%15
2020-07-012020-07-27$74.64$102.6421.47%18
2020-06-192020-06-25$66.73$65.73-3.14%5
2020-06-022020-06-18$58.77$66.937.28%13
2020-05-052020-05-14$51.21$53.562.62%8
2020-04-272020-05-04$53.25$50.75-2.19%6
2020-04-232020-04-24$47.04$48.34-2.67%2
2020-04-142020-04-22$47.33$48.813.85%7
2020-02-132020-02-26$53.60$51.923.03%9
2019-12-132020-02-12$23.89$51.1573.14%41
2019-11-082019-11-21$22.48$23.663.33%10
2019-10-142019-11-04$17.13$21.1618.11%16
2019-09-122019-09-25$16.39$15.25-6.93%10
2019-07-022019-07-26$14.97$15.200.67%18
2019-03-012019-03-04$19.65$19.02-5.63%2
2019-01-182019-01-22$20.15$19.93-9.21%2
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-12-072018-12-10$23.86$24.34-1.12%2
2018-12-042018-12-06$23.98$24.200.10%2
2018-10-262018-11-21$22.06$22.557.10%19
2018-08-032018-08-15$23.21$22.58-0.37%9
2018-06-072018-06-25$21.07$22.203.06%13
2018-03-142018-03-15$21.78$21.71-3.25%2
2018-02-262018-03-02$23.83$22.34-4.35%5
2018-01-092018-02-05$22.25$22.211.42%19
2017-12-122017-12-26$22.74$21.15-0.90%10
2017-09-142017-09-25$25.18$23.00-3.00%8