Strategy Zoo / S1071

LongTermTrend_V1071

ARCHIVEDhybrid

llmWrapped entry logic with a volatility filter (vol_pctile < 0.85) to avoid high-volatility entries; simplified and consolidated long-term trend checks into a single branch (retain sma_200, slope, ret_20d, cumret_252d, dist_sma_50) and kept a cleaner short-term breakout branch (macd_hist + close>sma_50 or breakout_50 with high rel_volume). Replaced the fragile tiny ret_20d exit with a robust multi-condition exit: hard 20d stop (-7%), momentum fade (macd_hist<0 and ret_5d<0), and absolute drawdown (>12%). Added regime gates to restrict trading to UPTREND/SIDEWAYS, non-high volatility, and non-bubble regimes. Added position scaling rules to reduce size in HIGH_VOLATILITY, moderate in MEDIUM, and zero exposure if bubble=EXPENSIVE. Reduced full-size base_position from 1.0 to 0.8 to lower tail risk.

Fitness
0.0729
Generation
49
Complexity
26
Created
2026-10-02

Lineage

Parents (1)
LongTermTrend_V0956S0956 · gen 44ARCHIVEDllm

entry from LongTermTrend_V0733, exit from PriceMomentum_V0690

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1071  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and ((((close > sma_200 or sma_200_slope > -0.0024 or ret_20d > 0.05) and cumret_252d > -0.0248 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and rel_volume > 2.0))) and vol_pctile < 0.85):
    position = 0.8
if long and (ret_20d < -0.07 or (macd_hist < 0.0 and ret_5d < 0.0) or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-7.4%7.8%3.2%-1.8%
Total Return-45.9%25.3%12.6%-23.6%
Sharpe-0.310.470.250.01
Sortino-0.220.390.220.01
Calmar-0.140.310.11-0.03
Volatility19.0%20.4%23.3%20.5%
Max DD-51.5%-24.9%-28.9%-55.4%
Win Rate38.2%46.3%39.5%40.1%
Avg Win3.2%3.8%4.2%3.6%
Avg Loss-2.5%-2.3%-2.3%-2.4%
Payoff1.291.681.851.51
Expectancy-0.3%0.5%0.3%0.0%
Profit Factor0.791.451.201.01
Trades1525476282
Avg Holding Days4.44.84.64.5
Turnover30.528.832.630.7
Exposure20.6%21.5%23.3%21.5%

Growth of $100

LongTermTrend_V1071 vs TSLA Buy & Hold
LongTermTrend_V1071 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-16.0%-1.33-17.4%16
201712.4%1.13-9.4%19
20184.1%0.40-7.2%7
2019-10.2%-0.38-19.6%8
20200.0%0.000.0%0
202115.7%0.67-20.8%30
2022-2.3%-0.02-24.9%23

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 testDOWNTREND276-4.5%-1.871%
hidden testEXPENSIVE8387.0%2.613%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.4%-0.213%
hidden testLOW VOLATILITY4368.0%0.3933%
hidden testMEDIUM VOLATILITY25013.6%0.5328%
hidden testNORMAL809-2.1%-0.0927%
hidden testSIDEWAYS293-34.9%-1.2543%
hidden testUPTREND37145.8%1.6725%
trainDOWNTREND518-22.0%-1.642%
trainEXPENSIVE31121.7%1.712%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-5.0%-0.262%
trainLOW VOLATILITY74510.3%0.6534%
trainMEDIUM VOLATILITY568-28.1%-1.2826%
trainNORMAL1,601-11.6%-0.5625%
trainSIDEWAYS592-14.6%-0.6826%
trainUPTREND9029.1%0.4527%
validationDOWNTREND125-1.3%-1.421%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-2.7%-0.171%
validationLOW VOLATILITY18333.9%1.7949%
validationMEDIUM VOLATILITY3155.5%0.2322%
validationNORMAL47415.3%0.5934%
validationSIDEWAYS2064.5%0.1836%
validationUPTREND42515.3%0.7221%

Trades (full period)

latest 100 of 282
EntryExitEntry PxExit PxReturnDays
2026-07-202026-07-21$369.57$378.93-2.53%2
2026-07-162026-07-17$391.06$380.84-0.85%2
2026-07-142026-07-15$396.18$394.460.13%2
2026-06-302026-07-06$420.60$419.77-3.69%4
2026-06-262026-06-29$379.71$411.840.82%2
2026-06-242026-06-25$375.53$375.12-1.43%2
2026-06-152026-06-23$411.15$381.61-0.42%6
2026-06-112026-06-12$399.15$406.433.52%2
2026-06-092026-06-10$396.68$381.59-2.56%2
2026-06-052026-06-08$391.00$408.95-5.40%2
2026-06-032026-06-04$423.70$418.45-0.17%2
2026-05-222026-06-02$426.01$423.74-0.51%7
2026-05-082026-05-21$428.35$417.850.97%10
2026-04-202026-04-21$392.50$386.42-1.78%2
2026-03-172026-03-19$399.27$380.30-0.72%3
2026-03-102026-03-13$399.24$391.20-0.88%4
2026-03-052026-03-09$405.55$398.68-1.97%3
2026-02-252026-03-04$417.40$405.94-3.47%6
2026-02-112026-02-23$428.27$399.83-2.67%8
2026-02-092026-02-10$417.32$425.211.05%2
2026-02-042026-02-05$406.01$397.21-3.18%2
2026-02-022026-02-03$421.81$421.96-1.76%2
2026-01-292026-01-30$416.56$430.41-2.92%2
2026-01-272026-01-28$430.90$431.46-0.95%2
2026-01-232026-01-26$449.06$435.20-0.21%2
2026-01-212026-01-22$431.44$449.362.16%2
2026-01-162026-01-20$437.50$419.25-0.35%2
2026-01-142026-01-15$439.20$438.57-1.59%2
2026-01-092026-01-13$445.01$447.202.25%3
2026-01-072026-01-08$431.41$435.80-0.45%2
2026-01-052026-01-06$451.67$432.962.32%2
2025-12-312026-01-02$449.72$438.07-0.99%2
2025-12-042025-12-30$454.53$454.432.22%18
2025-11-282025-12-03$430.17$446.740.34%4
2025-11-252025-11-26$419.40$426.580.15%2
2025-11-192025-11-20$403.99$395.230.39%2
2025-11-172025-11-18$408.92$401.250.74%2
2025-11-132025-11-14$401.99$404.35-5.47%2
2025-09-082025-09-15$346.40$410.0410.06%6
2025-09-042025-09-05$338.53$350.840.90%2
2025-08-222025-09-03$340.01$334.092.19%8
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-08-052025-08-06$308.72$319.91-0.30%2
2025-07-142025-08-04$316.90$309.26-2.83%16
2025-07-102025-07-11$309.87$313.513.62%2
2025-07-082025-07-09$297.81$295.880.89%2
2025-06-052025-06-06$284.70$295.14-11.56%2
2025-06-022025-06-04$342.69$332.05-0.66%3
2025-05-222025-05-28$341.04$356.906.58%4
2025-05-122025-05-13$318.38$334.075.23%2
2024-10-242024-10-25$260.48$269.1917.36%2
2024-10-222024-10-23$217.97$213.65-0.48%2
2024-09-232024-10-04$250.00$250.080.70%10
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-06-172024-07-12$187.44$248.2327.57%18
2024-05-292024-05-30$176.19$178.79-0.41%2
2024-01-172024-01-18$215.55$211.88-1.74%2
2024-01-112024-01-12$227.22$218.89-2.46%2
2024-01-092024-01-10$234.96$233.94-1.99%2
2024-01-052024-01-08$237.49$240.45-0.31%2
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-142023-12-14$237.41$251.055.46%22
2023-10-192023-10-20$220.11$211.99-7.59%2
2023-10-172023-10-18$254.85$242.680.13%2
2023-10-052023-10-16$260.05$253.92-3.23%8
2023-08-302023-09-25$256.90$246.99-3.85%18
2023-07-272023-07-28$255.71$266.44-2.77%2
2023-07-242023-07-25$269.06$265.282.62%2
2023-07-132023-07-21$277.90$260.02-2.74%7
2023-06-302023-07-12$261.77$271.993.68%8
2023-06-282023-06-29$256.24$257.501.77%2
2023-05-312023-06-27$203.93$250.2115.56%19
2023-03-292023-04-06$193.88$185.06-1.63%7
2023-03-242023-03-28$190.41$189.19-0.33%3
2022-09-302022-10-03$265.25$242.40-1.04%2
2022-09-282022-09-29$287.81$268.211.22%2
2022-09-262022-09-27$276.01$282.940.04%2
2022-09-072022-09-23$283.70$275.334.02%13
2022-09-022022-09-06$270.21$274.42-2.16%2
2022-08-312022-09-01$275.61$277.16-0.76%2
2022-08-292022-08-30$284.82$277.70-1.07%2
2022-08-252022-08-26$296.07$288.09-0.44%2
2022-08-232022-08-24$296.45$297.101.64%2
2022-08-152022-08-22$309.32$289.91-1.04%6
2022-08-022022-08-12$300.59$300.03-2.97%9
2022-05-052022-05-06$291.09$288.55-6.82%2
2022-05-032022-05-04$303.08$317.540.40%2
2022-04-292022-05-02$290.25$300.98-0.77%2
2022-04-272022-04-28$293.84$292.500.30%2
2022-04-222022-04-26$335.02$292.14-1.01%3
2022-04-192022-04-21$342.72$336.26-2.29%3
2022-04-142022-04-18$328.33$334.76-3.08%2
2022-04-122022-04-13$328.98$340.790.74%2
2022-03-182022-04-11$301.80$325.3113.91%17
2022-02-162022-02-17$307.80$292.12-0.08%2
2022-02-102022-02-11$301.52$286.67-2.51%2
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-232022-01-04$355.67$383.2014.87%8