Strategy Zoo / S0964

LongTermTrend_V0964

ARCHIVEDhybrid

llm['Added explicit trend and volatility regime gating: require UPTREND, LOW_VOLATILITY, and NORMAL bubble to avoid trading in unfavorable regimes.', 'Tightened short-term momentum and mean trend checks: require close > sma_50 and sma_50_slope > 0 to ensure entries align with intermediate trend.', 'Loosened daily drawdown threshold slightly (ret_1d > -0.04) to avoid entering immediately after large one-day selloffs while being less fragile than original.', 'Added vol_pctile < 0.8 filter inside entry to avoid initiating positions in elevated volatility.', 'Expanded exit to a multi-condition rule: keep original 20d momentum stop, add close crossing below sma_50 and negative macd_hist for earlier, signal-based exits.', 'Introduced position sizing rules: reduce size in high vol (vol_pctile>0.8), reduce near 52-week highs (dist_52w_high<0.05), and allow full size on very strong 20d momentum (>15%).', 'Reduced base_position from 1.0 to 0.60 to lower portfolio-level risk and make sizing rules meaningful.']

Fitness
0.4170
Generation
44
Complexity
18
Created
2026-10-01

Lineage

Parents (1)
LongTermTrend_V0909S0909 · gen 41ARCHIVEDllm

swapped indicator ret_20d -> ret_1d

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0964  [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > 0.0) or ret_20d > 0.1) and ret_1d > -0.04 and cumret_252d > -0.4) and (ret_20d > 0.03 and close > sma_50 and sma_50_slope > 0.0 and vol_pctile < 0.8)):
    position = 0.6
if long and (ret_20d < -0.1003 or close < sma_50 or macd_hist < 0.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR7.7%34.3%3.3%11.6%
Total Return80.9%142.3%12.8%403.1%
Sharpe0.551.390.300.73
Sortino0.461.330.200.60
Calmar0.221.200.170.34
Volatility15.6%23.1%13.7%17.0%
Max DD-34.5%-28.5%-18.9%-34.5%
Win Rate37.5%58.6%38.6%43.7%
Avg Win5.0%4.5%3.9%4.8%
Avg Loss-1.8%-2.0%-1.9%-1.9%
Payoff2.742.192.072.54
Expectancy0.7%1.8%0.4%1.0%
Profit Factor1.643.111.301.97
Trades1045844206
Avg Holding Days5.35.04.75.2
Turnover15.723.214.216.8
Exposure13.8%18.6%10.4%13.9%

Growth of $100

LongTermTrend_V0964 vs TSLA Buy & Hold
LongTermTrend_V0964 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
20162.8%0.49-4.2%6
20175.0%0.44-11.2%22
2018-16.0%-2.14-16.5%9
201913.1%0.79-13.7%7
2020141.1%2.79-11.3%24
202122.4%1.17-11.7%24
2022-18.2%-1.95-19.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 testDOWNTREND2750.0%0.000%
hidden testEXPENSIVE8315.9%0.8224%
hidden testEXTREME4834.5%1.6017%
hidden testHIGH VOLATILITY254-4.4%-0.336%
hidden testLOW VOLATILITY43419.3%1.6311%
hidden testMEDIUM VOLATILITY251-13.4%-0.8013%
hidden testNORMAL8081.2%0.099%
hidden testSIDEWAYS293-8.1%-0.778%
hidden testUPTREND37117.0%0.8620%
trainDOWNTREND5181.6%0.741%
trainEXPENSIVE31117.4%0.8729%
trainEXTREME100157.4%4.0337%
trainHIGH VOLATILITY69921.7%1.0311%
trainLOW VOLATILITY7458.3%0.7320%
trainMEDIUM VOLATILITY568-7.1%-0.6010%
trainNORMAL1,601-2.4%-0.219%
trainSIDEWAYS592-10.3%-1.135%
trainUPTREND90225.1%1.1427%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13836.1%1.5828%
validationEXTREME144141.4%3.4934%
validationHIGH VOLATILITY25833.5%1.1314%
validationLOW VOLATILITY18320.6%1.7320%
validationMEDIUM VOLATILITY31537.8%1.7121%
validationNORMAL474-2.2%-0.1611%
validationSIDEWAYS206-3.0%-0.513%
validationUPTREND42558.7%1.9232%

Trades (full period)

latest 100 of 206
EntryExitEntry PxExit PxReturnDays
2026-06-052026-06-08$391.00$408.95-4.05%2
2026-06-032026-06-04$423.70$418.45-0.13%2
2026-05-272026-06-02$440.36$423.74-2.56%5
2026-05-222026-05-26$426.01$433.591.05%2
2026-05-142026-05-21$443.30$417.85-3.89%6
2025-12-312026-01-02$449.72$438.07-0.74%2
2025-12-122025-12-30$458.96$454.431.68%12
2025-11-102025-11-11$445.23$439.622.07%2
2025-11-062025-11-07$445.91$429.52-2.22%2
2025-11-032025-11-05$468.37$462.07-1.70%3
2025-10-292025-10-30$461.51$440.100.01%2
2025-10-242025-10-27$433.72$452.42-2.16%2
2025-10-222025-10-23$438.97$448.98-0.61%2
2025-10-202025-10-21$447.43$442.600.99%2
2025-10-142025-10-15$429.24$435.15-1.04%2
2025-10-092025-10-10$435.54$413.49-0.55%2
2025-10-072025-10-08$433.09$438.69-2.79%2
2025-09-082025-10-06$346.40$453.2513.11%21
2025-09-042025-09-05$338.53$350.840.68%2
2025-08-252025-09-03$346.60$334.09-1.98%7
2025-06-102025-06-11$326.09$326.433.28%2
2025-06-042025-06-05$332.05$284.70-2.25%2
2025-05-162025-06-03$349.98$344.27-0.04%12
2024-12-312025-01-02$403.84$379.28-2.07%2
2024-12-262024-12-27$454.13$431.66-1.18%2
2024-12-062024-12-24$389.22$462.289.79%13
2024-10-112024-10-14$217.80$219.16-5.39%2
2024-10-092024-10-10$241.05$238.77-0.97%2
2024-10-072024-10-08$240.83$244.50-2.34%2
2024-09-112024-10-04$228.13$250.083.82%18
2024-09-062024-09-09$210.73$216.27-5.18%2
2024-06-272024-07-22$197.42$251.5112.85%17
2024-01-032024-01-04$238.45$237.93-2.53%2
2023-07-262023-07-27$264.35$255.71-0.33%2
2023-07-182023-07-19$293.34$291.260.49%2
2023-07-122023-07-13$271.99$277.900.37%2
2023-07-102023-07-11$269.61$269.79-1.17%2
2023-07-052023-07-07$282.48$274.43-0.82%3
2023-06-302023-07-03$261.77$279.820.87%2
2023-06-282023-06-29$256.24$257.501.33%2
2023-05-312023-06-27$203.93$250.2111.59%19
2023-03-012023-03-02$202.77$190.90-0.98%2
2023-02-272023-02-28$207.63$205.713.15%2
2023-02-102023-02-23$196.89$202.07-1.81%9
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-152022-08-19$309.32$296.670.46%5
2022-08-022022-08-12$300.59$300.03-2.19%9
2022-04-202022-04-21$325.73$336.26-3.09%2
2022-04-182022-04-19$334.76$342.721.05%2
2022-04-132022-04-14$340.79$328.332.03%2
2022-04-052022-04-11$363.75$325.31-6.48%5
2022-01-132022-01-14$343.85$349.87-4.17%2
2022-01-042022-01-07$383.20$342.32-6.97%4
2021-12-092021-12-10$334.60$339.01-3.78%2
2021-11-262021-11-29$360.64$379.00-1.95%2
2021-11-222021-11-23$385.62$369.680.92%2
2021-11-182021-11-19$365.46$379.020.29%2
2021-11-162021-11-17$351.58$363.002.33%2
2021-11-122021-11-15$344.47$337.80-1.82%2
2021-10-122021-11-11$268.57$354.5020.23%23
2021-10-082021-10-11$261.83$263.98-0.73%2
2021-09-282021-10-07$259.19$264.54-0.77%8
2021-09-242021-09-27$258.13$263.791.53%2
2021-09-222021-09-23$250.65$251.210.90%2
2021-09-012021-09-21$244.70$246.46-0.53%14
2021-08-272021-08-30$237.31$243.640.80%2
2021-08-252021-08-26$237.07$233.720.11%2
2021-08-232021-08-24$235.43$236.162.18%2
2021-08-192021-08-20$224.49$226.75-1.47%2
2021-08-032021-08-17$236.58$221.90-2.08%11
2021-02-102021-02-11$268.27$270.55-3.27%2
2021-02-082021-02-09$287.81$283.150.67%2
2021-02-042021-02-05$283.33$284.08-0.45%2
2021-02-022021-02-03$290.93$284.902.23%2
2021-01-282021-01-29$278.48$264.51-2.11%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-052021-01-25$245.04$293.609.48%14
2020-12-312021-01-04$235.22$243.260.82%2
2020-12-292020-12-30$222.00$231.590.09%2
2020-12-242020-12-28$220.59$221.231.35%2
2020-12-182020-12-23$231.67$215.33-1.45%4
2020-11-192020-12-17$166.42$218.6316.23%20
2020-10-262020-10-27$140.09$141.56-0.17%2
2020-10-222020-10-23$141.93$140.210.33%2
2020-10-132020-10-20$148.88$140.65-1.65%6
2020-10-092020-10-12$144.67$147.431.02%2
2020-10-072020-10-08$141.77$141.971.52%2
2020-08-192020-09-08$125.24$110.076.75%14
2020-08-142020-08-17$110.05$122.380.98%2
2020-08-062020-08-07$99.31$96.850.06%2
2020-08-042020-08-05$99.13$99.00-0.04%2
2020-07-022020-07-27$80.58$102.6415.78%17
2020-06-302020-07-01$71.99$74.644.07%2
2020-06-262020-06-29$63.98$67.29-1.72%2
2020-06-032020-06-25$58.86$65.735.47%17
2020-06-012020-06-02$59.87$58.774.41%2
2020-05-282020-05-29$53.72$55.67-1.17%2
2020-05-262020-05-27$54.59$54.680.03%2
2020-05-212020-05-22$55.17$54.460.77%2
2020-05-192020-05-20$53.87$54.37-0.53%2