Strategy Zoo / S0589

LongTermTrend_V0589

ARCHIVEDhybrid

llmAdded regime gates to avoid downtrend/high-bubble environments; require stronger multi-horizon trend (sma_200 or sma_50 trend or 20d breakout) plus ret_20d momentum; added RSI and vol_pctile filters to avoid overbought/high-volatility entries; replaced single exit with multi-condition exit (short-term loss, break below sma_50, or drawdown threshold); introduced volatility-based position scaling and lowered base_position to reduce drawdown risk.

Fitness
0.2604
Generation
27
Complexity
22
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0208S0208 · gen 10ARCHIVEDllm

changed ret_20d threshold 0.05 -> 0.085

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0589  [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.001) or (close > sma_50 and sma_50_slope > 0.0) or (breakout_20 > 0.0 and ret_60d > 0.02)) and ret_20d > 0.03 and rsi_14 < 70.0 and vol_pctile < 0.8 and cumret_252d > -0.25):
    position = 0.6
if long and (ret_20d < -0.02 or close < sma_50 or drawdown < -0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-3.7%22.6%-5.2%0.9%
Total Return-25.7%84.4%-17.9%14.4%
Sharpe-0.231.40-0.450.14
Sortino-0.171.29-0.290.10
Calmar-0.081.18-0.290.02
Volatility12.7%15.4%10.7%12.9%
Max DD-48.6%-19.2%-18.0%-48.6%
Win Rate36.8%47.1%41.6%40.9%
Avg Win2.0%3.4%1.4%2.4%
Avg Loss-1.6%-1.2%-1.4%-1.5%
Payoff1.242.941.001.64
Expectancy-0.3%1.0%-0.2%0.1%
Profit Factor0.722.620.711.13
Trades1177077264
Avg Holding Days4.33.42.73.6
Turnover17.728.025.021.6
Exposure11.9%13.6%8.2%11.3%

Growth of $100

LongTermTrend_V0589 vs TSLA Buy & Hold
LongTermTrend_V0589 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.8%-1.16-8.5%16
2017-6.8%-0.48-15.6%17
2018-10.4%-1.12-12.5%5
20197.3%0.57-12.1%14
202061.4%2.98-4.7%6
202111.3%0.65-17.1%45
20220.3%0.08-8.8%19

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 testDOWNTREND269-1.3%-1.010%
hidden testEXPENSIVE8326.2%1.2326%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY2543.8%0.950%
hidden testLOW VOLATILITY4291.9%0.1910%
hidden testMEDIUM VOLATILITY250-24.9%-1.6213%
hidden testNORMAL802-8.3%-0.897%
hidden testSIDEWAYS293-8.0%-0.8210%
hidden testUPTREND371-4.7%-0.3312%
trainDOWNTREND518-2.9%-0.860%
trainEXPENSIVE31118.7%1.0424%
trainEXTREME1007.0%1.551%
trainHIGH VOLATILITY6995.4%0.451%
trainLOW VOLATILITY7457.0%0.5820%
trainMEDIUM VOLATILITY568-26.2%-1.8414%
trainNORMAL1,601-7.7%-0.6610%
trainSIDEWAYS592-18.0%-1.849%
trainUPTREND9027.0%0.4120%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13885.4%3.5531%
validationEXTREME14428.4%2.612%
validationHIGH VOLATILITY258-4.9%-0.660%
validationLOW VOLATILITY1839.2%0.8121%
validationMEDIUM VOLATILITY31550.5%2.3920%
validationNORMAL4741.0%0.0712%
validationSIDEWAYS206-7.3%-0.929%
validationUPTREND42541.9%2.1220%

Trades (full period)

latest 100 of 264
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-262026-06-02$433.59$423.74-1.52%6
2026-05-212026-05-22$417.85$426.01-0.04%2
2026-05-192026-05-20$404.11$417.26-0.98%2
2026-05-132026-05-18$445.27$409.99-1.64%4
2026-05-082026-05-11$428.35$445.002.29%2
2026-04-202026-04-21$392.50$386.42-1.34%2
2025-12-122026-01-05$458.96$451.67-1.20%15
2025-10-142025-11-14$429.24$404.35-4.59%24
2025-09-262025-10-13$440.40$435.90-1.37%12
2025-09-122025-09-15$395.94$410.044.29%2
2025-09-092025-09-10$346.97$347.79-0.02%2
2025-09-052025-09-08$350.84$346.402.06%2
2025-09-032025-09-04$334.09$338.530.74%2
2025-08-292025-09-02$333.87$329.36-2.22%2
2025-08-272025-08-28$349.60$345.98-0.47%2
2025-08-252025-08-26$346.60$351.671.04%2
2025-08-152025-08-18$330.56$335.16-1.02%2
2025-08-132025-08-14$339.38$335.58-0.38%2
2025-08-112025-08-12$339.03$340.841.59%2
2025-06-042025-06-05$332.05$284.70-2.25%2
2025-06-022025-06-03$342.69$344.27-0.77%2
2025-05-292025-05-30$358.43$346.460.14%2
2025-05-272025-05-28$362.89$356.904.04%2
2025-05-222025-05-23$341.04$339.341.03%2
2025-05-202025-05-21$343.82$334.620.18%2
2025-05-122025-05-13$318.38$334.073.93%2
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-10-032024-10-04$240.66$250.08-2.13%2
2024-10-012024-10-02$258.02$249.02-0.95%2
2024-09-272024-09-30$260.46$261.631.35%2
2024-09-252024-09-26$257.02$254.220.53%2
2024-09-232024-09-24$250.00$254.272.84%2
2024-09-162024-09-17$226.78$227.87-1.03%2
2024-09-052024-09-06$230.17$210.732.82%2
2024-09-032024-09-04$210.60$219.41-1.10%2
2024-07-012024-07-02$209.86$231.263.51%2
2024-06-272024-06-28$197.42$197.880.20%2
2024-06-102024-06-11$173.79$170.66-1.37%2
2024-01-032024-01-04$238.45$237.93-2.53%2
2023-12-292024-01-02$248.48$248.42-1.23%2
2023-12-272023-12-28$261.44$253.181.01%2
2023-12-222023-12-26$252.54$256.61-0.58%2
2023-12-192023-12-20$257.22$247.141.10%2
2023-12-152023-12-18$253.50$252.080.47%2
2023-12-122023-12-13$237.01$239.29-0.80%2
2023-12-082023-12-11$243.84$239.740.18%2
2023-12-062023-12-07$239.37$242.640.04%2
2023-12-042023-12-05$235.58$238.72-0.94%2
2023-11-302023-12-01$240.08$238.83-1.12%2
2023-11-282023-11-29$246.72$244.142.58%2
2023-11-242023-11-27$235.45$236.080.20%2
2023-11-212023-11-22$241.20$234.211.31%2
2023-11-172023-11-20$234.30$235.600.06%2
2023-10-092023-10-10$259.67$263.62-0.32%2
2023-10-052023-10-06$260.05$260.53-0.37%2
2023-09-262023-09-27$244.12$240.50-0.82%2
2023-09-222023-09-25$244.88$246.99-2.66%2
2023-09-202023-09-21$262.59$255.70-1.00%2
2023-09-182023-09-19$265.28$266.50-2.11%2
2023-09-142023-09-15$276.04$274.390.93%2
2023-09-122023-09-13$267.48$271.30-1.46%2
2023-09-082023-09-11$248.50$273.58-0.83%2
2023-07-312023-08-01$267.43$261.070.10%2
2023-07-272023-07-28$255.71$266.44-2.08%2
2023-07-252023-07-26$265.28$264.35-0.96%2
2023-07-172023-07-18$290.38$293.341.80%2
2023-07-132023-07-14$277.90$281.381.18%2
2023-07-112023-07-12$269.79$271.99-0.08%2
2023-07-072023-07-10$274.43$269.61-0.58%2
2023-06-302023-07-03$261.77$279.820.87%2
2023-06-282023-06-29$256.24$257.501.33%2
2023-06-262023-06-27$241.05$250.21-3.75%2
2023-02-282023-03-01$205.71$202.77-0.67%2
2022-09-202022-09-21$308.73$300.80-0.19%2
2022-09-122022-09-13$304.42$292.130.83%2
2022-08-262022-08-29$288.09$284.82-1.74%2
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-222022-08-23$289.91$296.45-1.49%2
2022-08-182022-08-19$302.87$296.67-0.34%2
2022-08-162022-08-17$306.56$304.00-0.65%2
2022-08-122022-08-15$300.03$309.322.68%2
2022-08-102022-08-11$294.36$286.632.21%2
2022-08-082022-08-09$290.42$283.330.35%2
2022-04-192022-04-20$342.72$325.731.30%2
2022-04-142022-04-18$328.33$334.76-2.31%2
2022-04-122022-04-13$328.98$340.790.56%2
2022-04-082022-04-11$341.83$325.31-1.92%2
2022-04-012022-04-07$361.53$352.42-1.82%5
2022-03-252022-03-28$336.88$363.95-0.31%2
2022-03-232022-03-24$333.04$337.970.19%2
2022-03-212022-03-22$307.05$331.330.92%2
2022-01-122022-01-13$368.74$343.852.24%2
2021-12-092021-12-10$334.60$339.01-3.78%2
2021-11-232021-11-29$369.68$379.00-4.02%4
2021-10-042021-11-10$260.51$355.9818.69%28
2021-09-282021-10-01$259.19$258.41-1.32%4