Strategy Zoo / S1075

LongTermTrend_V1075

ARCHIVEDhybrid

llm1) Added a top-level trend and volatility filter: require sma_200_slope > 0 and vol_pctile < 0.7 to reduce trades in weak/upside-down regimes and extreme volatility. 2) Kept original entry logic but wrapped it with the new filters to emphasize structural uptrends. 3) Strengthened exits: changed single macd_hist exit to an OR of (macd_hist < 0) OR (price crossing below sma_50) OR (5d return < -6%) to provide clearer, faster stops and limit drawdowns. 4) Introduced regime gates to only trade in UPTREND and low/medium volatility, and avoid extreme bubble states. 5) Reduced base_position from 1.0 to 0.7 to lower leverage/exposure and improve robustness.

Fitness
0.2656
Generation
49
Complexity
33
Created
2026-10-02

Lineage

Parents (1)
LongTermTrend_V0844S0844 · gen 38ARCHIVEDllm

changed sma_200_slope threshold -0.0024 -> -0.0003; changed cumret_252d threshold -0.1997 -> 0.2888

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1075  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (sma_200_slope > 0.0 and vol_pctile < 0.7 and ((((close > sma_200 and sma_200_slope > -0.0003) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > 0.2888 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 2.0784) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200))))):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or ret_5d < -0.06):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR2.1%16.4%-4.2%3.3%
Total Return17.9%57.6%-14.6%61.9%
Sharpe0.251.02-0.430.34
Sortino0.140.78-0.160.19
Calmar0.140.55-0.220.08
Volatility10.4%16.1%8.9%11.5%
Max DD-14.7%-29.6%-18.9%-39.9%
Win Rate38.9%55.3%25.0%42.6%
Avg Win4.1%4.5%3.9%4.6%
Avg Loss-2.3%-2.4%-2.5%-2.4%
Payoff1.801.851.551.95
Expectancy0.2%1.4%-0.9%0.6%
Profit Factor1.142.280.521.45
Trades543816108
Avg Holding Days4.74.54.84.7
Turnover9.617.76.010.3
Exposure7.3%12.3%4.5%7.6%

Growth of $100

LongTermTrend_V1075 vs TSLA Buy & Hold
LongTermTrend_V1075 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
20160.0%0.000.0%0
20172.8%0.27-9.5%16
2018-5.5%-1.20-5.5%2
201911.5%1.66-2.6%0
202050.8%2.45-5.8%11
202120.7%1.04-18.6%19
2022-13.5%-1.72-13.5%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 testDOWNTREND2760.0%0.000%
hidden testEXPENSIVE839.3%0.4322%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.3%-1.020%
hidden testLOW VOLATILITY4369.9%1.176%
hidden testMEDIUM VOLATILITY250-26.3%-2.226%
hidden testNORMAL809-5.4%-0.823%
hidden testSIDEWAYS293-13.0%-1.621%
hidden testUPTREND3710.5%0.0410%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31116.6%0.9119%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY6997.8%0.801%
trainLOW VOLATILITY7457.7%0.7114%
trainMEDIUM VOLATILITY568-10.5%-1.006%
trainNORMAL1,601-0.5%-0.065%
trainSIDEWAYS592-1.9%-0.840%
trainUPTREND9027.0%0.4516%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13870.3%2.9528%
validationEXTREME14433.0%2.612%
validationHIGH VOLATILITY258-8.3%-1.000%
validationLOW VOLATILITY18313.5%1.2220%
validationMEDIUM VOLATILITY31538.4%1.7418%
validationNORMAL474-4.3%-0.3011%
validationSIDEWAYS206-6.0%-1.160%
validationUPTREND42532.2%1.5322%

Trades (full period)

latest 100 of 108
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-05-292026-06-01$435.79$415.88-1.14%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-242025-10-27$433.72$452.42-2.52%2
2025-10-142025-10-15$429.24$435.15-1.21%2
2025-10-092025-10-10$435.54$413.49-0.64%2
2025-10-072025-10-08$433.09$438.69-3.25%2
2025-09-122025-10-06$395.94$453.2511.37%17
2025-09-042025-09-05$338.53$350.840.79%2
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-06-042025-06-05$332.05$284.70-2.62%2
2025-05-222025-06-03$341.04$344.271.61%8
2023-08-302023-09-05$256.90$256.49-3.44%4
2022-08-162022-08-19$306.56$296.67-1.60%4
2022-08-052022-08-08$288.17$290.42-4.78%2
2022-04-202022-04-21$325.73$336.26-3.61%2
2022-04-182022-04-19$334.76$342.721.23%2
2022-04-132022-04-14$340.79$328.332.37%2
2022-04-052022-04-11$363.75$325.31-7.53%5
2021-12-282022-01-03$362.82$399.93-2.52%5
2021-11-262021-11-29$360.64$379.00-2.28%2
2021-11-232021-11-24$369.68$372.00-3.03%2
2021-10-122021-11-10$268.57$355.9820.11%22
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-262021-08-27$233.72$237.31-1.13%2
2021-08-242021-08-25$236.16$237.070.08%2
2021-08-192021-08-20$224.49$226.75-1.72%2
2021-08-052021-08-17$238.21$221.90-2.55%9
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.59%2
2021-02-012021-02-02$279.94$290.933.94%2
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-292020-12-30$222.00$231.590.10%2
2020-12-242020-12-28$220.59$221.231.57%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-192020-12-08$166.42$216.6321.45%13
2020-11-092020-11-10$140.42$136.79-1.55%2
2020-10-222020-10-23$141.93$140.210.38%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
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-02-012018-02-05$23.28$22.21-2.23%3
2017-10-182017-10-20$23.98$23.01-0.91%3
2017-10-122017-10-17$23.71$23.72-0.93%4
2017-09-182017-09-25$25.67$23.00-5.46%6
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-302017-07-03$24.11$23.510.03%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-202017-04-21$20.17$20.37-0.83%2
2017-03-242017-04-04$17.54$20.2511.66%8
2017-03-202017-03-22$17.46$17.00-3.03%3
2017-02-232017-02-24$17.07$17.13-4.62%2
2017-02-102017-02-22$17.95$18.232.02%8
2017-01-052017-02-02$15.12$16.776.65%20
2015-07-212015-07-22$17.78$17.86-3.98%2
2015-05-132015-05-22$16.21$16.520.12%8
2014-10-082014-10-10$17.29$15.79-0.83%3
2014-09-152014-09-16$16.92$17.38-6.49%2
2014-09-022014-09-12$18.94$18.612.65%9
2014-08-282014-08-29$17.59$17.980.02%2
2014-08-262014-08-27$17.45$17.55-0.36%2
2014-07-312014-08-25$14.89$17.508.31%18
2014-07-142014-07-15$15.11$14.642.61%2
2014-07-102014-07-11$14.63$14.54-1.27%2
2014-07-082014-07-09$14.60$14.87-1.27%2
2014-06-232014-07-07$15.81$14.84-0.20%10
2014-03-242014-03-25$14.68$14.70-2.80%2
2014-03-202014-03-21$15.66$15.26-0.42%2
2014-02-132014-02-26$13.31$16.8718.38%9
2013-10-162013-10-17$12.24$12.19-0.28%2
2013-10-142013-10-15$11.98$12.260.26%2
2013-10-092013-10-10$11.25$11.53-2.52%2
2013-10-072013-10-08$12.20$11.650.67%2
2013-09-232013-10-04$12.07$12.07-3.94%10
2013-09-192013-09-20$11.86$12.234.78%2
2013-09-172013-09-18$11.08$11.08-0.29%2
2013-09-132013-09-16$11.04$11.110.12%2
2013-09-112013-09-12$10.90$11.00-1.34%2
2013-09-092013-09-10$10.71$11.09-2.77%2
2013-03-272013-04-02$2.54$2.9611.07%4
2013-03-082013-03-18$2.56$2.34-5.53%7
2013-02-042013-02-14$2.52$2.550.15%9