Strategy Zoo / S1030

LongTermTrend_V1030

ARCHIVEDhybrid

llm1) Added a volatility filter (vol_pctile < 0.90) to the entry to avoid entering during extreme volatility. 2) Broadened regime gates: restrict to UPTREND trend and exclude HIGH_VOLATILITY and EXTREME bubble to improve robustness across regimes. 3) Made exit more robust by exiting on either negative macd_hist OR price dropping below sma_50 to reduce whipsaws. 4) Reduced base_position from 1.0 to 0.7 to lower drawdown risk.

Fitness
0.2470
Generation
47
Complexity
33
Created
2026-10-02

Lineage

Parents (1)
LongTermTrend_V0663S0663 · gen 30ARCHIVEDllm

swapped indicator macd_hist -> rsi_14

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1030  [hybrid]
require regime.trend in ['UPTREND']
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 rsi_14 > 34.4934 and vol_pctile < 0.9):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR1.0%16.2%-0.8%3.6%
Total Return8.5%57.0%-3.0%68.6%
Sharpe0.151.020.000.34
Sortino0.090.770.000.21
Calmar0.040.53-0.040.11
Volatility11.3%16.0%13.3%12.9%
Max DD-26.0%-30.6%-20.3%-32.7%
Win Rate36.7%50.0%40.6%40.7%
Avg Win3.5%5.5%4.0%4.4%
Avg Loss-2.0%-2.4%-2.7%-2.2%
Payoff1.782.291.462.01
Expectancy0.0%1.5%-0.0%0.5%
Profit Factor1.032.291.001.38
Trades793432145
Avg Holding Days4.35.04.34.5
Turnover13.915.912.013.8
Exposure9.5%12.6%7.7%9.7%

Growth of $100

LongTermTrend_V1030 vs TSLA Buy & Hold
LongTermTrend_V1030 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-1.9%-0.27-6.7%8
20174.6%0.41-9.7%20
2018-6.4%-1.34-6.4%4
20195.4%0.69-5.5%2
202050.2%2.43-6.2%10
202125.3%1.25-16.7%16
2022-16.7%-2.05-18.8%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-12.2%-1.091%
hidden testLOW VOLATILITY43616.0%1.4010%
hidden testMEDIUM VOLATILITY250-15.3%-0.8811%
hidden testNORMAL809-0.9%-0.077%
hidden testSIDEWAYS293-14.4%-1.801%
hidden testUPTREND37111.5%0.5819%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31127.6%1.5021%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY6995.5%0.531%
trainLOW VOLATILITY7456.2%0.5019%
trainMEDIUM VOLATILITY568-9.0%-0.827%
trainNORMAL1,601-3.8%-0.398%
trainSIDEWAYS592-2.8%-1.051%
trainUPTREND9025.6%0.3321%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13872.1%3.0828%
validationEXTREME14433.0%2.612%
validationHIGH VOLATILITY258-5.8%-0.661%
validationLOW VOLATILITY1834.9%0.4023%
validationMEDIUM VOLATILITY31541.0%1.9117%
validationNORMAL474-5.0%-0.3611%
validationSIDEWAYS206-13.1%-1.921%
validationUPTREND42535.4%1.7022%

Trades (full period)

latest 100 of 145
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-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
2024-10-092024-10-10$241.05$238.77-1.13%2
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-10-032024-10-04$240.66$250.08-2.49%2
2024-09-232024-09-27$250.00$260.464.53%5
2024-09-162024-09-20$226.78$238.254.02%5
2024-09-062024-09-09$210.73$216.27-6.05%2
2024-09-042024-09-05$219.41$230.172.79%2
2024-07-022024-07-12$231.26$248.2310.30%8
2023-08-302023-09-05$256.90$256.49-3.44%4
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-142023-07-17$281.38$290.380.74%2
2023-07-122023-07-13$271.99$277.900.43%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-06-302023-07-03$261.77$279.821.02%2
2023-06-282023-06-29$256.24$257.501.55%2
2023-06-022023-06-27$213.97$250.2111.12%17
2022-09-152022-09-23$303.75$275.33-3.37%7
2022-09-132022-09-14$292.13$302.61-2.96%2
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-052022-04-11$363.75$325.31-7.53%5
2022-01-122022-01-13$368.74$343.852.61%2
2021-12-282022-01-03$362.82$399.93-2.52%5
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-042021-02-05$283.33$284.08-0.52%2
2021-02-022021-02-03$290.93$284.902.61%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-122021-01-25$283.15$293.602.93%9
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-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-212019-10-22$16.90$17.04-1.08%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-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-132017-10-17$23.70$23.72-1.14%3
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-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
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-092017-02-22$17.95$18.233.96%9
2017-02-072017-02-08$17.17$17.47-0.22%2
2017-02-032017-02-06$16.76$17.18-0.20%2
2017-01-052017-02-02$15.12$16.776.65%20
2016-07-262016-08-09$15.30$15.27-1.29%11
2016-06-082016-06-09$15.70$15.290.82%2
2016-04-272016-04-28$16.76$16.51-0.77%2
2016-04-252016-04-26$16.79$16.92-0.67%2
2016-04-212016-04-22$16.55$16.92-0.61%2
2016-04-192016-04-20$16.49$16.66-1.93%2
2016-04-152016-04-18$16.97$16.930.60%2
2016-04-052016-04-14$17.03$16.792.04%8