Strategy Zoo / S0465

LongTermTrend_V0465

ARCHIVEDhybrid

llmBroadened and simplified entry criteria (allowed sideways trend, added 5-day confirmation and relaxed 20-day return threshold) to fix zero-validation trades; added RSI and cumulative-252d sanity checks to avoid extremes; improved exit with multi-condition rule (early exit on weak 20d returns, break below sma_50, or RSI overbought) to reduce drawdown; added regime gates to avoid high-volatility and extreme-bubble environments; reduced base_position from 1.0 to 0.6 to lower risk.

Fitness
0.2596
Generation
21
Complexity
16
Created
2026-09-19

Lineage

Parents (1)
LongTermTrend_V0323S0323 · gen 15ARCHIVEDllm

changed ret_20d threshold 0.05 -> 0.1

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0465  [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.03) and ret_5d > 0.0 and rsi_14 < 75.0 and cumret_252d > -0.5):
    position = 0.6
if long and (ret_20d < 0.02 or close < sma_50 or rsi_14 > 80.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.1%14.2%-3.8%1.9%
Total Return0.9%49.1%-13.4%32.6%
Sharpe0.070.96-0.180.21
Sortino0.060.93-0.140.17
Calmar0.001.02-0.170.05
Volatility13.1%15.0%15.1%14.0%
Max DD-38.1%-13.9%-22.3%-38.1%
Win Rate41.4%44.4%37.3%40.8%
Avg Win2.9%4.7%2.6%3.3%
Avg Loss-1.9%-1.9%-1.8%-1.9%
Payoff1.502.451.461.72
Expectancy0.1%1.0%-0.2%0.2%
Profit Factor1.061.960.871.18
Trades1114567223
Avg Holding Days5.45.84.75.3
Turnover16.818.021.818.2
Exposure14.7%17.2%15.8%15.5%

Growth of $100

LongTermTrend_V0465 vs TSLA Buy & Hold
LongTermTrend_V0465 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-1.5%-0.15-7.3%6
20174.2%0.40-9.9%22
2018-7.4%-1.15-8.4%7
2019-4.0%-0.17-17.3%9
202038.7%2.29-6.2%8
20213.8%0.31-13.9%25
20221.3%0.17-9.6%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 testDOWNTREND267-2.3%-1.440%
hidden testEXPENSIVE8324.7%1.0830%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-5.4%-0.471%
hidden testLOW VOLATILITY42915.5%1.1322%
hidden testMEDIUM VOLATILITY248-31.5%-1.6020%
hidden testNORMAL800-5.8%-0.4015%
hidden testSIDEWAYS293-26.1%-1.6123%
hidden testUPTREND37115.4%0.8121%
trainDOWNTREND518-6.4%-1.411%
trainEXPENSIVE31123.5%1.4819%
trainEXTREME1007.0%1.551%
trainHIGH VOLATILITY6997.7%0.631%
trainLOW VOLATILITY7459.5%0.7626%
trainMEDIUM VOLATILITY568-18.5%-1.2617%
trainNORMAL1,601-3.8%-0.2915%
trainSIDEWAYS592-12.9%-1.0614%
trainUPTREND90214.3%0.8723%
validationDOWNTREND125-0.1%-1.420%
validationEXPENSIVE13870.2%3.2326%
validationEXTREME14414.7%1.841%
validationHIGH VOLATILITY258-0.1%-0.990%
validationLOW VOLATILITY1834.2%0.3131%
validationMEDIUM VOLATILITY31532.2%1.5523%
validationNORMAL474-1.9%-0.1420%
validationSIDEWAYS206-0.4%-0.0222%
validationUPTREND42525.9%1.5620%

Trades (full period)

latest 100 of 223
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-02$425.30$393.450.55%2
2026-05-082026-06-08$428.35$408.95-2.97%21
2026-04-202026-04-21$392.50$386.42-1.34%2
2026-03-182026-03-19$392.78$380.30-1.09%2
2026-03-112026-03-12$407.82$395.011.17%2
2026-03-032026-03-04$392.43$405.94-1.74%2
2026-02-262026-02-27$408.58$402.51-1.39%2
2026-02-132026-02-17$417.44$410.63-0.07%2
2026-02-112026-02-12$428.27$417.070.31%2
2026-01-282026-01-29$431.46$416.56-0.04%2
2026-01-232026-01-26$449.06$435.20-0.16%2
2026-01-162026-01-20$437.50$419.25-0.27%2
2026-01-142026-01-15$439.20$438.57-1.19%2
2026-01-122026-01-13$448.96$447.200.41%2
2025-12-112026-01-05$446.89$451.67-1.80%16
2025-12-082025-12-10$439.58$451.45-1.41%3
2025-12-042025-12-05$454.53$455.000.93%2
2025-12-022025-12-03$429.24$446.74-0.25%2
2025-11-282025-12-01$430.17$430.140.38%2
2025-11-252025-11-26$419.40$426.580.11%2
2025-11-032025-11-13$468.37$401.99-3.46%9
2025-10-282025-10-30$460.55$440.101.08%3
2025-10-242025-10-27$433.72$452.42-2.16%2
2025-10-202025-10-23$447.43$448.98-0.16%4
2025-09-192025-10-15$426.07$435.151.91%19
2025-08-252025-09-18$346.60$416.8514.53%18
2025-08-112025-08-18$339.03$335.160.06%6
2025-07-232025-07-24$332.56$305.30-0.04%2
2025-07-212025-07-22$328.49$332.11-0.33%2
2025-07-172025-07-18$319.41$329.65-0.54%2
2025-07-152025-07-16$310.78$321.67-1.28%2
2025-05-192025-06-06$342.09$295.14-11.41%14
2025-05-122025-05-13$318.38$334.073.93%2
2025-02-212025-02-24$337.80$330.53-2.93%2
2025-02-192025-02-20$360.56$354.400.97%2
2024-09-232024-10-14$250.00$219.16-5.15%16
2024-09-162024-09-20$226.78$238.253.45%5
2024-09-052024-09-09$230.17$216.27-2.39%3
2024-06-252024-07-03$187.35$246.3915.32%7
2024-06-182024-06-21$184.86$183.01-2.00%3
2024-06-142024-06-17$178.01$187.44-1.59%2
2023-12-152024-01-04$253.50$237.93-3.08%13
2023-11-292023-12-14$244.14$251.05-1.92%12
2023-11-272023-11-28$236.08$246.720.04%2
2023-11-222023-11-24$234.21$235.45-1.86%2
2023-11-202023-11-21$235.60$241.200.21%2
2023-11-162023-11-17$233.59$234.30-2.40%2
2023-11-142023-11-15$237.41$242.843.55%2
2023-11-082023-11-09$222.11$209.98-0.14%2
2023-11-062023-11-07$219.27$222.18-0.31%2
2023-10-112023-10-12$262.99$258.87-0.26%2
2023-10-052023-10-10$260.05$263.62-0.46%4
2023-10-022023-10-04$251.60$261.16-1.00%3
2023-09-122023-09-22$267.48$244.88-4.05%9
2023-09-052023-09-07$256.49$251.491.59%3
2023-08-312023-09-01$258.08$245.010.16%2
2023-08-292023-08-30$257.18$256.904.49%2
2023-08-252023-08-28$238.59$238.822.11%2
2023-08-232023-08-24$236.86$230.040.82%2
2023-08-042023-08-07$253.86$251.45-1.38%2
2023-07-312023-08-02$267.43$254.11-1.33%3
2023-06-222023-07-21$264.61$260.020.98%21
2023-05-312023-06-08$203.93$234.866.73%7
2023-04-182023-04-19$184.31$180.59-1.00%2
2023-04-142023-04-17$185.00$187.04-0.41%2
2023-04-032023-04-04$194.77$192.58-3.79%2
2023-03-012023-03-08$202.77$182.00-5.39%6
2022-09-202022-09-22$308.73$288.59-1.72%3
2022-09-122022-09-13$304.42$292.130.83%2
2022-08-022022-08-29$300.59$284.82-1.82%20
2022-05-042022-05-05$317.54$291.092.74%2
2022-04-252022-04-26$332.67$292.14-0.54%2
2022-03-182022-04-21$301.80$336.267.37%24
2022-03-032022-03-04$279.76$279.43-2.89%2
2022-03-012022-03-02$288.12$293.30-0.54%2
2022-02-162022-02-17$307.80$292.12-0.06%2
2022-02-102022-02-11$301.52$286.67-1.89%2
2022-02-042022-02-07$307.77$302.452.05%2
2022-02-022022-02-03$301.89$297.05-1.77%2
2021-12-302021-12-31$356.78$352.26-0.99%2
2021-12-282021-12-29$362.82$362.06-0.42%2
2021-12-232021-12-27$355.67$364.653.34%2
2021-12-132021-12-14$322.14$319.50-3.10%2
2021-11-232021-11-29$369.68$379.00-4.02%4
2021-09-142021-10-19$248.16$288.099.89%26
2021-08-242021-09-13$236.16$247.672.43%14
2021-08-032021-08-18$236.58$229.66-3.83%12
2021-07-302021-08-02$229.07$236.560.75%2
2021-07-272021-07-28$214.93$215.66-1.29%2
2021-06-232021-07-23$218.86$214.462.44%22
2021-06-212021-06-22$206.94$207.90-0.36%2
2021-06-172021-06-18$205.53$207.771.04%2
2021-06-152021-06-16$199.79$201.62-1.90%2
2021-06-112021-06-14$203.30$205.90-0.14%2
2021-06-032021-06-04$190.95$199.68-3.32%2
2021-06-012021-06-02$207.97$201.71-0.25%2
2021-05-272021-05-28$210.28$208.411.02%2
2021-05-252021-05-26$201.56$206.38-0.29%2
2021-04-142021-04-30$244.08$236.48-6.89%13
2021-04-122021-04-13$233.99$254.112.09%2