Strategy Zoo / S0457

LongTermTrend_V0457

ARCHIVEDhybrid

llmAdded regime gates to require uptrend and avoid high-volatility/extreme-bubble regimes; tightened entry to combine 200-day trend OR moderate 20d momentum with RSI and volatility filters (reduce false breakouts); replaced single threshold exit with multi-condition exit (short-term stop, slowing 20d momentum, volatility spike); added position scaling to reduce size in high volatility. Aims to improve walk-forward robustness and reduce drawdowns/overfitting.

Fitness
0.1285
Generation
21
Complexity
15
Created
2026-09-19

Lineage

Parents (1)
LongTermTrend_V0287S0287 · gen 13ARCHIVEDllm

removed entry condition: cumret_252d > -0.1997

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0457  [hybrid]
require regime.trend in ['UPTREND']
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.03) and rsi_14 < 75.0 and vol_pctile < 0.8):
    position = 1.0
if long and (ret_5d < -0.03 or ret_20d < 0.02 or vol_chg > 0.5):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.7%5.4%-6.6%-1.9%
Total Return-19.7%17.2%-22.3%-24.8%
Sharpe-0.060.33-0.220.01
Sortino-0.040.26-0.150.01
Calmar-0.070.14-0.16-0.03
Volatility18.5%26.6%20.8%21.0%
Max DD-39.9%-37.6%-42.2%-56.7%
Win Rate45.5%52.1%42.9%46.2%
Avg Win3.0%4.4%3.3%3.4%
Avg Loss-2.6%-4.0%-2.8%-2.9%
Payoff1.161.101.151.17
Expectancy-0.0%0.4%-0.2%0.0%
Profit Factor0.971.200.861.01
Trades1877384344
Avg Holding Days3.03.02.62.9
Turnover47.048.745.546.9
Exposure18.4%19.6%14.6%17.7%

Growth of $100

LongTermTrend_V0457 vs TSLA Buy & Hold
LongTermTrend_V0457 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%-0.62-8.8%12
201717.3%0.82-18.2%38
2018-16.7%-1.45-16.6%6
2019-1.0%-0.04-11.9%9
202047.9%1.88-20.6%22
2021-2.0%0.10-27.1%36
2022-31.1%-1.92-33.6%13

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 testDOWNTREND2670.0%0.000%
hidden testEXPENSIVE83-4.8%-0.1446%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-7.2%-0.451%
hidden testLOW VOLATILITY4298.3%0.4717%
hidden testMEDIUM VOLATILITY248-24.5%-0.8525%
hidden testNORMAL800-4.9%-0.2512%
hidden testSIDEWAYS293-24.7%-1.663%
hidden testUPTREND3717.8%0.2634%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE31131.5%1.1333%
trainEXTREME10011.4%1.551%
trainHIGH VOLATILITY6996.2%0.372%
trainLOW VOLATILITY7459.8%0.5431%
trainMEDIUM VOLATILITY568-24.1%-1.1623%
trainNORMAL1,601-8.1%-0.4917%
trainSIDEWAYS592-8.4%-1.032%
trainUPTREND9023.2%0.1240%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13843.3%1.3842%
validationEXTREME14430.4%2.152%
validationHIGH VOLATILITY25823.6%0.892%
validationLOW VOLATILITY18315.7%0.8033%
validationMEDIUM VOLATILITY315-7.3%-0.2426%
validationNORMAL474-7.8%-0.2818%
validationSIDEWAYS206-27.2%-1.732%
validationUPTREND42528.8%0.8534%

Trades (full period)

latest 100 of 344
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.92%2
2026-05-292026-06-01$435.79$415.88-1.63%2
2026-02-172026-02-18$410.63$411.32-1.83%2
2026-02-122026-02-13$417.07$417.44-2.81%2
2026-02-102026-02-11$425.21$428.271.69%2
2026-02-062026-02-09$411.11$417.323.30%2
2026-02-042026-02-05$406.01$397.21-3.98%2
2026-02-022026-02-03$421.81$421.96-2.20%2
2026-01-092026-01-12$445.01$448.961.91%2
2026-01-072026-01-08$431.41$435.80-0.56%2
2026-01-052026-01-06$451.67$432.962.90%2
2025-12-312026-01-02$449.72$438.07-1.24%2
2025-12-222025-12-30$488.73$454.43-4.67%6
2025-12-182025-12-19$483.37$481.203.24%2
2025-12-162025-12-17$489.88$467.262.86%2
2025-12-112025-12-15$446.89$475.311.46%3
2025-12-092025-12-10$445.17$451.451.07%2
2025-12-052025-12-08$455.00$439.58-0.10%2
2025-12-032025-12-04$446.74$454.533.87%2
2025-12-012025-12-02$430.14$429.24-0.21%2
2025-11-262025-11-28$426.58$430.171.51%2
2025-11-242025-11-25$417.78$419.406.62%2
2025-11-202025-11-21$395.23$391.09-2.37%2
2025-11-182025-11-19$401.25$403.99-2.07%2
2025-11-142025-11-17$404.35$408.920.39%2
2025-11-122025-11-13$430.60$401.99-2.25%2
2025-11-102025-11-11$445.23$439.623.45%2
2025-11-062025-11-07$445.91$429.52-3.69%2
2025-10-312025-11-05$456.56$462.070.75%4
2025-10-282025-10-30$460.55$440.101.81%3
2025-10-242025-10-27$433.72$452.42-3.60%2
2025-10-162025-10-23$428.75$448.980.67%6
2025-10-142025-10-15$429.24$435.15-1.73%2
2025-10-102025-10-13$413.49$435.90-5.26%2
2025-09-192025-10-09$426.07$435.545.03%15
2025-09-122025-09-15$395.94$410.047.15%2
2025-09-042025-09-05$338.53$350.841.13%2
2025-07-312025-08-01$308.27$302.63-3.57%2
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-232025-07-24$332.56$305.30-0.06%2
2025-07-212025-07-22$328.49$332.11-0.55%2
2025-07-172025-07-18$319.41$329.65-0.90%2
2025-07-152025-07-16$310.78$321.67-2.13%2
2025-07-082025-07-09$297.81$295.881.12%2
2025-06-052025-06-06$284.70$295.14-14.45%2
2025-05-282025-06-04$356.90$332.05-5.32%6
2025-05-222025-05-27$341.04$362.891.21%3
2025-02-212025-02-24$337.80$330.53-4.88%2
2025-02-192025-02-20$360.56$354.401.62%2
2025-02-142025-02-18$355.84$354.11-0.23%2
2025-02-122025-02-13$336.51$355.942.24%2
2025-02-102025-02-11$350.73$328.50-3.21%2
2025-02-062025-02-07$374.32$361.62-1.22%2
2024-10-112024-10-14$217.80$219.16-8.97%2
2024-10-092024-10-10$241.05$238.77-1.61%2
2024-10-072024-10-08$240.83$244.50-3.90%2
2024-10-032024-10-04$240.66$250.08-3.55%2
2024-09-252024-09-27$257.02$260.46-0.22%3
2024-09-232024-09-24$250.00$254.274.73%2
2024-09-162024-09-20$226.78$238.255.71%5
2024-09-032024-09-06$210.60$210.737.28%4
2024-07-022024-07-03$231.26$246.399.99%2
2024-01-112024-01-12$227.22$218.89-3.07%2
2024-01-092024-01-10$234.96$233.94-2.48%2
2024-01-052024-01-08$237.49$240.45-0.38%2
2024-01-032024-01-04$238.45$237.93-4.21%2
2023-08-312023-09-01$258.08$245.010.26%2
2023-08-292023-08-30$257.18$256.907.48%2
2023-08-252023-08-28$238.59$238.823.51%2
2023-08-232023-08-24$236.86$230.041.37%2
2023-08-212023-08-22$231.28$233.197.12%2
2023-08-172023-08-18$219.22$215.49-3.03%2
2023-08-152023-08-16$232.96$225.60-3.03%2
2023-08-112023-08-14$242.65$239.76-1.30%2
2023-08-092023-08-10$242.19$245.34-3.20%2
2023-08-072023-08-08$251.45$249.70-1.15%2
2023-08-032023-08-04$259.32$253.861.85%2
2023-07-312023-08-02$267.43$254.11-2.21%3
2023-07-272023-07-28$255.71$266.44-3.46%2
2023-07-252023-07-26$265.28$264.35-1.60%2
2023-07-132023-07-21$277.90$260.02-3.53%7
2023-06-282023-07-12$256.24$271.997.61%10
2023-06-222023-06-27$264.61$250.21-7.28%4
2023-06-022023-06-05$213.97$217.612.91%2
2022-09-202022-09-22$308.73$288.59-2.87%3
2022-09-122022-09-13$304.42$292.131.38%2
2022-08-162022-08-22$306.56$289.91-4.28%5
2022-08-052022-08-08$288.17$290.42-6.82%2
2022-05-042022-05-05$317.54$291.094.57%2
2022-04-262022-04-27$292.14$293.84-12.37%2
2022-04-222022-04-25$335.02$332.67-0.57%2
2022-04-192022-04-21$342.72$336.26-2.89%3
2022-04-142022-04-18$328.33$334.76-3.85%2
2022-04-122022-04-13$328.98$340.790.93%2
2022-04-082022-04-11$341.83$325.31-3.20%2
2022-04-052022-04-07$363.75$352.42-8.89%3
2022-01-122022-01-13$368.74$343.853.73%2
2022-01-032022-01-04$399.93$383.2013.32%2
2021-12-302021-12-31$356.78$352.26-1.66%2
2021-12-282021-12-29$362.82$362.06-0.70%2