Strategy Zoo / S1289

LongTermTrend_V1289

ARCHIVEDhybrid

llmAdded robust regime gates (allow only up/sideways trend, non-high volatility, exclude extreme bubbles); introduced momentum confirmation (macd > macd_signal) and volatility filter (vol_pctile < 0.9) to reduce false entries; relaxed cumulative-return floor slightly and prevented buying after sharp 1-day drops; broadened exit rules to include fast 1-day losses, portfolio drawdown and volatility spikes; reduced base position to 0.7 to lower risk/exposure.

Fitness
0.1813
Generation
59
Complexity
18
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V0909S0909 · gen 41ARCHIVEDllm

swapped indicator ret_20d -> ret_1d

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1289  [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.0) or ret_20d > 0.05) and ret_1d > -0.05 and cumret_252d > -0.4 and macd > macd_signal and vol_pctile < 0.9):
    position = 0.7
if long and (ret_20d < -0.1003 or ret_1d < -0.06 or drawdown < -0.1 or vol_chg > 0.5):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-6.0%16.9%-7.9%-2.1%
Total Return-39.2%59.8%-26.6%-27.2%
Sharpe-0.461.00-0.68-0.10
Sortino-0.310.93-0.48-0.08
Calmar-0.121.15-0.24-0.04
Volatility11.9%17.0%11.2%13.0%
Max DD-48.8%-14.8%-33.3%-48.8%
Win Rate39.9%51.8%41.5%43.1%
Avg Win1.8%2.5%1.7%2.0%
Avg Loss-1.6%-1.5%-1.6%-1.6%
Payoff1.121.701.021.24
Expectancy-0.2%0.6%-0.3%-0.1%
Profit Factor0.741.820.720.94
Trades17885106369
Avg Holding Days2.72.52.22.5
Turnover31.339.739.635.1
Exposure10.7%11.5%9.4%10.6%

Growth of $100

LongTermTrend_V1289 vs TSLA Buy & Hold
LongTermTrend_V1289 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-6.0%-0.82-8.3%18
20170.9%0.13-9.2%32
2018-11.1%-1.78-12.1%9
2019-2.1%-0.21-9.7%15
202039.4%2.10-4.9%12
20217.3%0.45-14.8%50
2022-2.4%-0.17-8.9%22

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 testDOWNTREND278-2.2%-1.401%
hidden testEXPENSIVE83-19.1%-1.1213%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-1.6%-0.211%
hidden testLOW VOLATILITY440-3.7%-0.3214%
hidden testMEDIUM VOLATILITY250-20.7%-1.5510%
hidden testNORMAL813-6.9%-0.6410%
hidden testSIDEWAYS295-20.2%-1.6414%
hidden testUPTREND371-1.7%-0.1212%
trainDOWNTREND518-3.1%-1.161%
trainEXPENSIVE31120.4%1.2518%
trainEXTREME1008.0%1.551%
trainHIGH VOLATILITY6996.8%0.671%
trainLOW VOLATILITY745-1.4%-0.1219%
trainMEDIUM VOLATILITY568-26.1%-1.8211%
trainNORMAL1,601-11.4%-1.0210%
trainSIDEWAYS592-20.6%-1.7311%
trainUPTREND9023.0%0.2016%
validationDOWNTREND125-6.7%-1.591%
validationEXPENSIVE13841.0%1.8820%
validationEXTREME14426.8%2.281%
validationHIGH VOLATILITY2580.8%0.061%
validationLOW VOLATILITY1838.1%0.6617%
validationMEDIUM VOLATILITY31535.6%1.6317%
validationNORMAL4747.1%0.4312%
validationSIDEWAYS2063.9%0.2813%
validationUPTREND42530.4%1.5014%

Trades (full period)

latest 100 of 369
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.64%2
2026-05-282026-06-01$442.10$415.88-0.86%3
2026-05-192026-05-20$404.11$417.26-1.14%2
2026-05-142026-05-18$443.30$409.99-3.76%3
2026-05-122026-05-13$433.45$445.27-1.96%2
2026-05-082026-05-11$428.35$445.002.67%2
2026-04-202026-04-21$392.50$386.42-1.56%2
2026-03-172026-03-18$399.27$392.780.52%2
2026-03-132026-03-16$391.20$395.56-0.81%2
2026-03-112026-03-12$407.82$395.011.36%2
2026-03-062026-03-09$396.73$398.68-1.66%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.62%2
2026-02-232026-02-24$399.83$409.38-2.18%2
2026-02-192026-02-20$411.71$411.82-0.07%2
2026-02-172026-02-18$410.63$411.32-1.28%2
2026-02-122026-02-13$417.07$417.44-1.97%2
2025-12-222026-01-05$488.73$451.67-6.46%9
2025-12-182025-12-19$483.37$481.202.27%2
2025-12-162025-12-17$489.88$467.262.00%2
2025-12-092025-12-15$445.17$475.312.94%5
2025-12-032025-12-08$446.74$439.584.04%4
2025-12-012025-12-02$430.14$429.24-0.14%2
2025-11-042025-11-07$444.26$429.52-3.46%4
2025-09-292025-10-06$443.21$453.25-1.78%6
2025-09-252025-09-26$423.39$440.40-3.20%2
2025-09-222025-09-24$434.21$442.79-0.17%3
2025-09-182025-09-19$416.85$426.07-1.62%2
2025-09-162025-09-17$421.62$425.861.84%2
2025-09-122025-09-15$395.94$410.045.01%2
2025-09-102025-09-11$347.79$368.810.03%2
2025-09-082025-09-09$346.40$346.97-1.03%2
2025-08-292025-09-02$333.87$329.36-2.59%2
2025-08-272025-08-28$349.60$345.98-0.55%2
2025-08-252025-08-26$346.60$351.671.22%2
2025-08-192025-08-20$329.31$323.90-1.36%2
2025-08-152025-08-18$330.56$335.16-1.19%2
2025-08-132025-08-14$339.38$335.58-0.44%2
2025-08-112025-08-12$339.03$340.841.85%2
2025-07-312025-08-01$308.27$302.63-2.50%2
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.39%2
2025-07-172025-07-18$319.41$329.65-0.63%2
2025-05-302025-06-02$346.46$342.69-2.48%2
2025-05-282025-05-29$356.90$358.43-1.29%2
2025-05-232025-05-27$339.34$362.89-0.49%2
2025-05-212025-05-22$334.62$341.04-2.01%2
2025-05-192025-05-20$342.09$343.82-1.72%2
2025-05-122025-05-13$318.38$334.074.58%2
2024-10-032024-10-04$240.66$250.08-2.49%2
2024-10-012024-10-02$258.02$249.02-1.11%2
2024-09-272024-09-30$260.46$261.631.58%2
2024-09-252024-09-26$257.02$254.220.62%2
2024-09-232024-09-24$250.00$254.273.31%2
2024-09-162024-09-17$226.78$227.87-1.21%2
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-102024-07-11$263.26$241.030.11%2
2024-07-082024-07-09$252.94$262.330.26%2
2024-07-032024-07-05$246.39$251.524.44%2
2024-07-012024-07-02$209.86$231.264.09%2
2024-06-272024-06-28$197.42$197.880.23%2
2024-06-252024-06-26$187.35$196.371.69%2
2024-06-182024-06-20$184.86$181.57-1.10%2
2023-12-282023-12-29$253.18$248.48-2.35%2
2023-12-262023-12-27$256.61$261.440.99%2
2023-12-212023-12-22$254.50$252.541.94%2
2023-12-192023-12-20$257.22$247.141.29%2
2023-12-152023-12-18$253.50$252.080.54%2
2023-12-132023-12-14$239.29$251.050.53%2
2023-12-112023-12-12$239.74$237.01-1.32%2
2023-12-072023-12-08$242.64$243.840.82%2
2023-12-052023-12-06$238.72$239.370.79%2
2023-12-012023-12-04$238.83$235.58-0.50%2
2023-11-292023-11-30$244.14$240.08-0.87%2
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-222023-11-24$234.21$235.45-2.17%2
2023-11-202023-11-21$235.60$241.200.25%2
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-11-142023-11-15$237.41$242.844.14%2
2023-11-082023-11-09$222.11$209.98-0.16%2
2023-10-162023-10-17$253.92$254.850.64%2
2023-10-122023-10-13$258.87$251.12-1.24%2
2023-10-102023-10-11$263.62$262.990.92%2
2023-10-062023-10-09$260.53$259.67-0.01%2
2023-09-222023-09-25$244.88$246.99-3.10%2
2023-09-202023-09-21$262.59$255.70-1.17%2
2023-09-182023-09-19$265.28$266.50-2.46%2
2023-09-142023-09-15$276.04$274.391.08%2
2023-09-122023-09-13$267.48$271.30-1.70%2
2023-09-082023-09-11$248.50$273.58-0.97%2
2023-09-062023-09-07$251.92$251.49-1.39%2
2023-09-012023-09-05$245.01$256.49-3.68%2
2023-08-302023-08-31$256.90$258.08-0.22%2
2023-08-282023-08-29$238.82$257.18-0.07%2
2023-07-062023-07-07$276.54$274.43-1.61%2
2023-06-232023-06-26$256.60$241.05-2.26%2
2023-06-212023-06-22$259.46$264.61-3.96%2
2023-06-162023-06-20$260.54$274.451.13%2