Strategy Zoo / S0528

LongTermTrend_V0528

ARCHIVEDhybrid

llmReduce position size (base 0.8) and add volatility/drawdown scaling; add momentum and volatility filters to entry (macd_hist>0, rsi<75, vol_pctile<0.8) to avoid weak rallies; keep long-term trend check (price>200sma & slope>0) but allow strong 20d returns as alternate entry; strengthen exits to include 1d stop-loss, overbought rsi, and volatility spikes to limit deep drawdowns; restrict regimes to non-high-volatility and non-extreme bubble states.

Fitness
0.2019
Generation
24
Complexity
18
Created
2026-09-22

Lineage

Parents (1)
LongTermTrend_V0278S0278 · gen 13ARCHIVEDllm

changed cumret_252d threshold -0.1997 -> -0.6

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0528  [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 macd_hist > 0.0 and rsi_14 < 75.0 and cumret_252d > -0.6 and vol_pctile < 0.8):
    position = 0.8
if long and (ret_20d < 0.03 or ret_1d < -0.06 or rsi_14 > 85.0 or vol_chg > 0.5):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-4.0%17.0%-11.0%-1.8%
Total Return-27.8%60.1%-35.0%-23.0%
Sharpe-0.180.94-0.58-0.02
Sortino-0.120.77-0.40-0.02
Calmar-0.080.91-0.28-0.04
Volatility15.9%18.6%17.4%16.9%
Max DD-48.2%-18.7%-39.4%-48.2%
Win Rate45.5%50.0%36.5%44.0%
Avg Win3.0%4.4%3.1%3.4%
Avg Loss-2.9%-2.2%-2.7%-2.7%
Payoff1.051.981.141.25
Expectancy-0.2%1.1%-0.6%-0.0%
Profit Factor0.881.980.660.98
Trades1214863232
Avg Holding Days4.04.44.14.1
Turnover24.325.627.325.3
Exposure14.7%17.5%16.7%15.8%

Growth of $100

LongTermTrend_V0528 vs TSLA Buy & Hold
LongTermTrend_V0528 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-9.3%-0.96-9.3%9
201713.5%1.00-9.2%24
2018-10.4%-1.34-11.7%6
2019-2.5%-0.02-22.6%6
202054.3%2.62-5.5%10
2021-11.2%-0.53-18.7%24
20222.8%0.25-11.3%12

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 testDOWNTREND268-2.6%-1.421%
hidden testEXPENSIVE8313.5%0.5524%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-6.4%-0.511%
hidden testLOW VOLATILITY4291.9%0.1224%
hidden testMEDIUM VOLATILITY249-34.6%-1.4820%
hidden testNORMAL801-13.2%-0.7717%
hidden testSIDEWAYS293-28.1%-1.3528%
hidden testUPTREND371-1.3%-0.0719%
trainDOWNTREND518-7.2%-1.321%
trainEXPENSIVE31126.0%1.4617%
trainEXTREME1009.1%1.551%
trainHIGH VOLATILITY6998.8%0.561%
trainLOW VOLATILITY7459.4%0.6625%
trainMEDIUM VOLATILITY568-33.0%-1.8218%
trainNORMAL1,601-9.2%-0.5815%
trainSIDEWAYS592-20.0%-1.1718%
trainUPTREND90211.0%0.5820%
validationDOWNTREND125-0.8%-2.671%
validationEXPENSIVE13867.4%2.8925%
validationEXTREME14419.8%1.851%
validationHIGH VOLATILITY2580.9%0.061%
validationLOW VOLATILITY1831.4%0.1032%
validationMEDIUM VOLATILITY31540.2%1.7523%
validationNORMAL4742.1%0.1120%
validationSIDEWAYS2062.7%0.1328%
validationUPTREND42529.9%1.4817%

Trades (full period)

latest 100 of 232
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.73%2
2026-05-132026-06-08$445.27$408.95-7.96%18
2026-05-082026-05-12$428.35$433.456.26%3
2026-04-202026-04-21$392.50$386.42-1.78%2
2026-03-172026-03-18$399.27$392.780.59%2
2026-03-132026-03-16$391.20$395.56-0.93%2
2026-03-112026-03-12$407.82$395.011.56%2
2026-03-062026-03-09$396.73$398.68-1.90%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.85%2
2026-02-232026-02-24$399.83$409.38-2.49%2
2026-02-192026-02-20$411.71$411.82-0.08%2
2026-02-172026-02-18$410.63$411.32-1.46%2
2026-02-122026-02-13$417.07$417.44-2.25%2
2025-12-222026-01-05$488.73$451.67-7.36%9
2025-12-182025-12-19$483.37$481.202.60%2
2025-12-162025-12-17$489.88$467.262.29%2
2025-12-112025-12-15$446.89$475.311.17%3
2025-12-092025-12-10$445.17$451.450.86%2
2025-12-052025-12-08$455.00$439.58-0.08%2
2025-12-032025-12-04$446.74$454.533.10%2
2025-12-012025-12-02$430.14$429.24-0.17%2
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-09-192025-10-15$426.07$435.152.38%19
2025-09-152025-09-16$410.04$421.622.69%2
2025-09-112025-09-12$368.81$395.944.67%2
2025-09-092025-09-10$346.97$347.79-0.03%2
2025-08-272025-09-08$349.60$346.40-0.32%8
2025-08-252025-08-26$346.60$351.671.39%2
2025-08-192025-08-20$329.31$323.90-1.56%2
2025-08-112025-08-18$339.03$335.160.07%6
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.44%2
2025-07-172025-07-18$319.41$329.65-0.72%2
2025-05-192025-06-06$342.09$295.14-15.13%14
2025-05-122025-05-13$318.38$334.075.23%2
2024-09-252024-10-14$257.02$219.16-11.68%14
2024-09-232024-09-24$250.00$254.273.78%2
2024-09-162024-09-18$226.78$227.20-1.00%3
2024-09-042024-09-06$219.41$210.737.23%3
2024-07-022024-07-03$231.26$246.397.99%2
2024-06-252024-07-01$187.35$209.866.51%5
2024-06-182024-06-21$184.86$183.01-2.67%3
2023-12-222024-01-04$252.54$237.93-5.20%8
2023-12-152023-12-21$253.50$254.50-1.39%5
2023-12-052023-12-14$238.72$251.051.10%8
2023-11-162023-12-04$233.59$235.58-1.44%12
2023-11-142023-11-15$237.41$242.844.74%2
2023-11-082023-11-09$222.11$209.98-0.19%2
2023-10-132023-10-16$251.12$253.92-2.55%2
2023-10-112023-10-12$262.99$258.87-0.35%2
2023-10-062023-10-10$260.53$263.62-0.28%3
2023-09-122023-09-27$267.48$240.50-8.82%12
2023-09-082023-09-11$248.50$273.58-1.11%2
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-09-012023-09-05$245.01$256.49-4.21%2
2023-08-302023-08-31$256.90$258.08-0.25%2
2023-08-282023-08-29$238.82$257.18-0.08%2
2023-07-062023-07-21$276.54$260.02-5.64%12
2023-06-222023-06-27$264.61$250.21-5.83%4
2023-05-312023-06-05$203.93$217.614.91%4
2022-09-212022-09-22$300.80$288.59-2.21%2
2022-08-092022-08-29$283.33$284.82-0.74%15
2022-08-022022-08-08$300.59$290.42-2.57%5
2022-03-242022-04-08$337.97$341.834.58%12
2022-03-182022-03-23$301.80$333.0410.97%4
2022-03-102022-03-11$279.43$265.12-2.08%2
2022-03-042022-03-07$279.43$268.19-0.26%2
2022-03-022022-03-03$293.30$279.761.28%2
2022-02-182022-02-22$285.66$273.84-1.93%2
2022-02-162022-02-17$307.80$292.12-0.08%2
2022-02-112022-02-14$286.67$291.92-4.10%2
2022-02-092022-02-10$310.67$301.520.71%2
2022-01-032022-01-04$399.93$383.2010.66%2
2021-12-302021-12-31$356.78$352.26-1.33%2
2021-12-282021-12-29$362.82$362.06-0.56%2
2021-11-092021-11-10$341.17$355.98-9.74%2
2021-10-042021-10-19$260.51$288.099.53%12
2021-09-302021-10-01$258.49$258.41-0.76%2
2021-09-282021-09-29$259.19$260.44-1.55%2
2021-09-142021-09-20$248.16$243.391.61%5
2021-09-072021-09-13$250.97$247.670.15%5
2021-09-022021-09-03$244.13$244.52-0.35%2
2021-08-312021-09-01$245.24$244.700.37%2
2021-08-022021-08-17$236.56$221.90-0.24%12
2021-06-282021-07-23$229.57$214.46-2.81%19
2021-06-242021-06-25$226.61$223.962.67%2
2021-06-222021-06-23$207.90$218.860.21%2
2021-06-112021-06-21$203.30$206.941.58%7
2021-06-032021-06-04$190.95$199.68-4.42%2
2021-06-012021-06-02$207.97$201.71-0.33%2
2021-05-272021-05-28$210.28$208.411.35%2
2021-04-162021-04-30$246.59$236.48-6.85%11
2021-04-142021-04-15$244.08$246.28-3.32%2
2021-04-122021-04-13$233.99$254.112.79%2
2021-04-082021-04-09$227.93$225.671.37%2
2021-01-122021-02-01$283.15$279.94-1.83%14
2021-01-062021-01-07$251.99$272.012.11%2