Strategy Zoo / S1687

LongTermTrend_V1687

ARCHIVEDhybrid

llmAdded regime gates to avoid downtrend/high-vol environments; introduced volatility-based position sizing (higher size in low vol, scaled down in medium vol); simplified and broadened entry to include SMA50 regime and loosened single-day return filter; added volatility percentile and RSI filters to avoid extreme moves; made exits more robust with a multi-condition stop (20d drawdown, 1d stop-loss, and 20d deterioration). Purpose: reduce overfitting, improve robustness and drawdown control.

Fitness
0.2122
Generation
78
Complexity
20
Created
2026-10-16

Lineage

Parents (1)
LongTermTrend_V1216S1216 · gen 56ELITEllm

entry from LongTermTrend_V0909, exit from PriceMomentum_V0690

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1687  [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 (close > sma_50 and sma_50_slope > 0.0) or ret_20d > 0.05) and ret_1d > -0.04 and vol_pctile < 0.85 and rsi_14 < 85.0 and cumret_252d > -0.6):
    position = 0.6
if long and (ret_20d < -0.03 or ret_1d < -0.08 or drawdown < -0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.9%16.5%-8.7%-0.7%
Total Return-21.1%58.2%-29.1%-9.9%
Sharpe-0.110.86-0.500.04
Sortino-0.090.90-0.460.04
Calmar-0.080.70-0.22-0.02
Volatility15.5%20.2%15.8%16.7%
Max DD-35.8%-23.5%-39.0%-45.6%
Win Rate42.9%45.2%42.3%43.2%
Avg Win1.9%3.1%1.5%2.1%
Avg Loss-1.6%-1.7%-1.4%-1.5%
Payoff1.151.831.071.36
Expectancy-0.1%0.5%-0.2%0.0%
Profit Factor0.861.510.791.04
Trades203124182509
Avg Holding Days4.13.02.53.3
Turnover30.649.658.141.4
Exposure19.5%19.6%17.1%18.9%

Growth of $100

LongTermTrend_V1687 vs TSLA Buy & Hold
LongTermTrend_V1687 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-10.2%-1.30-13.7%26
20176.3%0.45-16.0%33
2018-8.0%-0.76-11.0%4
201918.9%1.96-5.7%13
202053.6%2.43-10.1%14
20219.3%0.50-19.3%68
2022-14.8%-0.84-17.3%41

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 testDOWNTREND279-5.3%-1.721%
hidden testEXPENSIVE8311.8%0.5235%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-14.5%-1.251%
hidden testLOW VOLATILITY44512.1%0.8423%
hidden testMEDIUM VOLATILITY251-36.6%-1.7623%
hidden testNORMAL819-10.3%-0.6716%
hidden testSIDEWAYS300-32.6%-1.7024%
hidden testUPTREND37110.2%0.5623%
trainDOWNTREND518-10.2%-1.071%
trainEXPENSIVE31122.8%1.0631%
trainEXTREME1007.0%1.551%
trainHIGH VOLATILITY699-5.8%-0.422%
trainLOW VOLATILITY74512.6%0.8532%
trainMEDIUM VOLATILITY568-15.6%-0.8625%
trainNORMAL1,601-7.1%-0.4918%
trainSIDEWAYS592-11.9%-0.8816%
trainUPTREND9029.7%0.5132%
validationDOWNTREND125-8.5%-2.081%
validationEXPENSIVE13868.7%2.6436%
validationEXTREME14431.9%2.852%
validationHIGH VOLATILITY258-4.2%-0.321%
validationLOW VOLATILITY183-6.1%-0.3832%
validationMEDIUM VOLATILITY31548.5%1.8527%
validationNORMAL474-2.0%-0.1020%
validationSIDEWAYS206-24.9%-1.2720%
validationUPTREND42545.4%1.9725%

Trades (full period)

latest 100 of 510
EntryExitEntry PxExit PxReturnDays
2026-10-15———-0.06%1OPEN
2026-10-132026-10-14$375.23$367.16-0.56%2
2026-10-092026-10-12$382.70$378.031.11%2
2026-10-072026-10-08$377.81$375.00-0.57%2
2026-06-302026-07-06$420.60$419.77-2.74%4
2026-06-232026-06-24$381.61$375.53-3.59%2
2026-06-162026-06-17$404.66$396.38-1.07%2
2026-06-122026-06-15$406.43$411.150.97%2
2026-06-092026-06-10$396.68$381.59-1.92%2
2026-06-032026-06-08$423.70$408.95-4.77%4
2026-05-202026-06-02$417.26$423.741.67%9
2026-05-082026-05-19$428.35$404.11-0.29%8
2026-04-202026-04-21$392.50$386.42-1.34%2
2026-03-172026-03-18$399.27$392.780.44%2
2026-03-122026-03-13$395.01$391.20-2.00%2
2026-03-102026-03-11$399.24$407.82-0.04%2
2026-03-062026-03-09$396.73$398.68-1.42%2
2026-03-042026-03-05$405.94$405.551.94%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.39%2
2026-02-242026-02-25$409.38$417.401.31%2
2026-02-202026-02-23$411.82$399.83-0.10%2
2026-02-182026-02-19$411.32$411.71-0.02%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-02-092026-02-10$417.32$425.210.79%2
2026-02-052026-02-06$397.21$411.11-1.42%2
2026-02-032026-02-04$421.96$406.01-0.10%2
2026-01-302026-02-02$430.41$421.811.87%2
2026-01-282026-01-29$431.46$416.56-0.04%2
2026-01-262026-01-27$435.20$430.90-1.97%2
2026-01-222026-01-23$449.36$449.062.37%2
2026-01-162026-01-20$437.50$419.25-0.27%2
2026-01-082026-01-15$435.80$438.570.97%6
2025-12-032026-01-07$446.74$431.410.58%24
2025-11-282025-12-02$430.17$429.240.38%3
2025-11-252025-11-26$419.40$426.580.11%2
2025-11-212025-11-24$391.09$417.78-0.75%2
2025-11-192025-11-20$403.99$395.230.29%2
2025-11-172025-11-18$408.92$401.250.56%2
2025-09-152025-11-14$410.04$404.351.36%45
2025-09-112025-09-12$368.81$395.943.50%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-192025-08-20$329.31$323.90-1.17%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-08-052025-08-06$308.72$319.91-0.22%2
2025-07-312025-08-01$308.27$302.63-2.14%2
2025-07-292025-07-30$321.20$319.04-0.93%2
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-06-052025-06-06$284.70$295.14-8.67%2
2025-06-032025-06-04$344.27$332.050.16%2
2025-05-302025-06-02$346.46$342.69-2.12%2
2025-05-282025-05-29$356.90$358.43-1.11%2
2025-05-232025-05-27$339.34$362.89-0.42%2
2025-05-212025-05-22$334.62$341.04-1.72%2
2025-05-192025-05-20$342.09$343.82-1.47%2
2025-05-122025-05-13$318.38$334.073.93%2
2025-03-042025-03-05$272.04$279.10-2.78%2
2025-02-272025-02-28$281.95$292.98-1.94%2
2025-02-252025-02-26$302.80$290.80-5.15%2
2025-02-202025-02-21$354.40$337.80-1.14%2
2025-02-182025-02-19$354.11$360.56-0.41%2
2025-02-132025-02-14$355.94$355.843.34%2
2025-02-102025-02-11$350.73$328.50-1.93%2
2025-02-062025-02-07$374.32$361.62-0.73%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-182024-09-19$227.20$243.92-0.30%2
2024-09-162024-09-17$226.78$227.87-1.03%2
2024-09-062024-09-09$210.73$216.27-5.18%2
2024-09-042024-09-05$219.41$230.172.39%2
2024-07-052024-07-08$251.52$252.941.13%2
2024-07-022024-07-03$231.26$246.395.99%2
2024-06-282024-07-01$197.88$209.860.02%2
2024-06-262024-06-27$196.37$197.422.77%2
2024-06-242024-06-25$182.58$187.35-0.26%2
2024-06-202024-06-21$181.57$183.01-1.19%2
2024-06-172024-06-18$187.44$184.863.06%2
2024-06-132024-06-14$182.47$178.011.63%2
2024-06-102024-06-11$173.79$170.66-1.37%2
2024-06-062024-06-07$177.94$177.480.89%2
2024-06-042024-06-05$174.77$175.00-0.64%2
2024-05-312024-06-03$178.08$176.29-0.36%2
2024-05-292024-05-30$176.19$178.79-0.31%2