Strategy Zoo / S1185

LongTermTrend_V1185

ARCHIVEDhybrid

llmAdded volatility gate and vol_pctile filter to avoid entries in extreme volatility; tightened MACD histogram precondition (>-1.0) to reduce weak entries; improved exits to also leave on 5d losses or a break under sma_20; limited trading to up/sideway regimes and non-high-volatility/bubble regimes; reduced base position to 0.7 to lower drawdown risk.

Fitness
0.3669
Generation
54
Complexity
34
Created
2026-10-06

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1185  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > -1.0 and vol_pctile < 0.85):
    position = 0.7
if long and (macd_hist < 0.0 or ret_5d < -0.03 or close < sma_20):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.1%33.1%1.4%6.5%
Total Return-0.6%135.7%5.2%151.6%
Sharpe0.071.660.160.47
Sortino0.051.760.110.37
Calmar-0.001.840.050.16
Volatility14.8%18.2%15.9%15.9%
Max DD-41.2%-18.0%-26.1%-41.2%
Win Rate38.1%54.1%30.8%39.8%
Avg Win3.5%6.5%6.2%5.0%
Avg Loss-2.2%-1.9%-2.3%-2.2%
Payoff1.593.402.652.29
Expectancy-0.0%2.6%0.3%0.7%
Profit Factor0.984.001.181.51
Trades1053739181
Avg Holding Days5.05.86.05.4
Turnover18.517.314.617.2
Exposure14.9%16.4%14.4%15.1%

Growth of $100

LongTermTrend_V1185 vs TSLA Buy & Hold
LongTermTrend_V1185 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-5.0%-0.50-10.4%11
20177.7%0.58-10.2%22
2018-6.5%-0.91-10.1%5
2019-0.7%0.06-17.3%5
202058.3%2.56-6.2%8
202136.9%1.71-13.3%18
2022-0.7%0.02-18.0%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 testDOWNTREND278-1.5%-1.040%
hidden testEXPENSIVE833.7%0.1920%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.5%-0.621%
hidden testLOW VOLATILITY43824.6%1.5221%
hidden testMEDIUM VOLATILITY250-25.6%-1.3915%
hidden testNORMAL8112.7%0.1715%
hidden testSIDEWAYS293-13.1%-0.7524%
hidden testUPTREND37118.1%0.9018%
trainDOWNTREND518-5.6%-1.211%
trainEXPENSIVE31130.5%1.6423%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY6997.6%0.531%
trainLOW VOLATILITY7459.2%0.6427%
trainMEDIUM VOLATILITY568-17.8%-1.1016%
trainNORMAL1,601-5.2%-0.3614%
trainSIDEWAYS592-5.2%-0.3617%
trainUPTREND9028.9%0.4822%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13875.2%3.0326%
validationEXTREME14433.0%2.612%
validationHIGH VOLATILITY25811.7%1.201%
validationLOW VOLATILITY18318.7%1.2231%
validationMEDIUM VOLATILITY31552.1%2.1621%
validationNORMAL47416.3%0.9418%
validationSIDEWAYS206-3.4%-0.2116%
validationUPTREND42555.4%2.5721%

Trades (full period)

latest 100 of 181
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-05-272026-06-02$440.36$423.74-2.99%5
2026-05-222026-05-26$426.01$433.591.23%2
2026-05-202026-05-21$417.26$417.852.14%2
2026-05-082026-05-19$428.35$404.11-0.36%8
2026-04-202026-04-21$392.50$386.42-1.56%2
2025-12-042025-12-30$454.53$454.431.98%18
2025-11-062025-11-07$445.91$429.52-2.59%2
2025-11-032025-11-05$468.37$462.07-1.99%3
2025-10-072025-10-08$433.09$438.69-3.25%2
2025-09-052025-10-06$350.84$453.2518.31%22
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-07-292025-07-30$321.20$319.04-1.08%2
2025-07-212025-07-25$328.49$316.06-5.29%5
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-192025-05-22$342.09$341.04-3.22%4
2025-05-122025-05-13$318.38$334.074.58%2
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-09-232024-10-03$250.00$240.663.05%9
2024-09-162024-09-20$226.78$238.254.02%5
2024-09-042024-09-09$219.41$216.270.03%4
2024-06-172024-07-12$187.44$248.2323.89%18
2023-12-152024-01-02$253.50$248.42-0.80%11
2023-12-072023-12-13$242.64$239.29-0.82%5
2023-11-272023-12-06$236.08$239.370.86%8
2023-11-162023-11-24$233.59$235.45-2.61%6
2023-10-062023-10-16$260.53$253.92-2.54%7
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-08-302023-09-11$256.90$273.58-2.46%8
2023-07-202023-07-21$262.90$260.02-6.95%2
2023-07-182023-07-19$293.34$291.260.57%2
2023-07-102023-07-11$269.61$269.79-1.37%2
2023-07-052023-07-07$282.48$274.43-0.95%3
2023-05-312023-06-27$203.93$250.2113.57%19
2023-03-302023-04-06$195.28$185.06-3.08%6
2023-03-242023-03-29$190.41$193.88-1.24%4
2022-09-132022-09-23$292.13$275.33-3.75%9
2022-08-222022-08-23$289.91$296.45-1.73%2
2022-08-152022-08-19$309.32$296.670.53%5
2022-08-112022-08-12$286.63$300.03-1.98%2
2022-08-092022-08-10$283.33$294.36-1.85%2
2022-08-022022-08-08$300.59$290.42-2.24%5
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-122022-01-13$368.74$343.852.61%2
2021-12-282022-01-04$362.82$383.206.71%6
2021-10-122021-11-09$268.57$341.1731.12%21
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-272021-10-07$263.79$264.540.62%9
2021-09-232021-09-24$251.21$258.130.02%2
2021-08-312021-09-21$245.24$246.46-0.18%15
2021-08-252021-08-26$237.07$233.720.13%2
2021-08-022021-08-17$236.56$221.90-0.20%12
2021-07-122021-07-15$228.57$216.87-0.49%4
2021-07-082021-07-09$217.60$218.980.75%2
2021-06-182021-07-07$207.77$214.884.75%13
2021-06-142021-06-16$205.90$201.62-1.34%3
2021-04-222021-04-28$239.90$231.47-3.83%5
2021-04-142021-04-21$244.08$248.04-4.12%6
2021-01-282021-01-29$278.48$264.51-2.47%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-122021-01-19$283.15$281.521.18%5
2021-01-052021-01-11$245.04$270.4013.99%5
2020-12-312021-01-04$235.22$243.260.96%2
2020-12-182020-12-23$231.67$215.33-1.72%4
2020-12-102020-12-17$209.02$218.632.02%6
2020-11-182020-12-08$162.21$216.6330.13%14
2020-11-092020-11-10$140.42$136.79-1.55%2
2020-10-132020-10-20$148.88$140.65-1.93%6
2020-06-292020-06-30$67.29$71.993.48%2
2020-06-252020-06-26$65.73$63.981.69%2
2019-12-162020-01-22$25.43$37.9734.73%25
2019-11-222019-11-25$22.20$22.42-4.44%2
2019-10-152019-10-25$17.19$21.8811.52%9
2019-09-112019-09-25$16.47$15.25-3.73%11
2019-07-222019-07-26$17.05$15.20-8.01%5
2019-03-012019-03-04$19.65$19.02-5.63%2
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-12-062018-12-07$24.20$23.860.51%2
2018-11-292018-11-30$22.74$23.37-1.49%2
2018-03-132018-03-15$22.79$21.71-3.97%3
2018-01-112018-02-05$22.53$22.211.76%17
2017-12-122017-12-26$22.74$21.15-0.90%10
2017-10-182017-10-23$23.98$22.47-2.23%4
2017-10-132017-10-17$23.70$23.72-1.14%3
2017-09-122017-09-25$24.18$23.00-2.53%10
2017-08-252017-08-28$23.20$23.04-1.11%2
2017-08-152017-08-18$24.16$23.16-2.42%4
2017-08-042017-08-07$23.79$23.681.84%2
2017-06-052017-06-14$23.15$25.387.23%8
2017-05-172017-05-18$20.41$20.87-2.55%2
2017-05-122017-05-16$21.65$21.13-1.70%3
2017-05-022017-05-04$21.26$19.70-2.70%3
2017-04-282017-05-01$20.94$21.521.09%2
2017-04-262017-04-27$20.68$20.58-0.95%2
2017-04-242017-04-25$20.54$20.920.42%2