Strategy Zoo / S1221

LongTermTrend_V1221

ARCHIVEDhybrid

llmReplaced slow 200-SMA gate with faster 50-SMA + slope to improve responsiveness; tightened exit with multi-condition stop (large 20d loss, close below SMA50, or drawdown) to reduce deep drawdowns; added regime gates (UPTREND, LOW_VOLATILITY, NORMAL bubble) to avoid bad market regimes; introduced volatility-based position sizing (reduce size when vol_pctile>0.7, full size on low vol or strong momentum) and lowered base position to 0.8.

Fitness
0.6475
Generation
56
Complexity
12
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V1087S1087 · gen 50ARCHIVEDllm

entry from LongTermTrend_V0605, exit from PriceMomentum_V0828

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1221  [hybrid]
if flat and (((close > sma_50 and sma_50_slope > 0.0) or ret_20d > 0.1) and ret_20d > 0.05 and cumret_252d > -0.1997):
    position = 0.8
if long and (ret_20d < -0.05 or close < sma_50 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR19.7%77.2%7.7%26.4%
Total Return319.6%456.0%31.8%3047.9%
Sharpe0.821.620.410.94
Sortino0.861.730.370.94
Calmar0.392.790.270.53
Volatility25.8%40.3%26.2%29.5%
Max DD-50.2%-27.6%-28.2%-50.2%
Win Rate35.9%41.2%27.3%34.6%
Avg Win20.0%39.7%14.4%26.9%
Avg Loss-4.5%-4.6%-3.2%-4.1%
Payoff4.498.664.556.59
Expectancy4.3%13.7%1.6%6.6%
Profit Factor2.516.061.713.49
Trades39172278
Avg Holding Days21.924.615.721.4
Turnover7.99.19.68.5
Exposure34.5%42.4%29.1%34.8%

Growth of $100

LongTermTrend_V1221 vs TSLA Buy & Hold
LongTermTrend_V1221 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
201615.0%1.10-11.9%3
201719.7%0.98-18.6%4
2018-24.0%-1.11-26.0%8
201920.8%0.88-22.2%3
2020360.0%2.92-27.6%4
202140.2%1.33-22.5%5
2022-16.7%-0.63-21.3%8

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-15.4%-1.0116%
hidden testEXPENSIVE8369.8%1.8460%
hidden testEXTREME48156.3%3.4755%
hidden testHIGH VOLATILITY254-8.2%-0.2527%
hidden testLOW VOLATILITY43938.6%1.9529%
hidden testMEDIUM VOLATILITY250-18.6%-0.6532%
hidden testNORMAL812-3.8%-0.1724%
hidden testSIDEWAYS2941.1%0.0623%
hidden testUPTREND37138.2%1.0844%
trainDOWNTREND5181.2%0.156%
trainEXPENSIVE31150.8%1.6257%
trainEXTREME100322.7%5.4778%
trainHIGH VOLATILITY69947.8%1.4132%
trainLOW VOLATILITY74527.6%1.4543%
trainMEDIUM VOLATILITY568-19.7%-0.9126%
trainNORMAL1,601-3.3%-0.1627%
trainSIDEWAYS592-18.2%-0.9424%
trainUPTREND90258.6%1.6958%
validationDOWNTREND12542.4%2.596%
validationEXPENSIVE13842.6%0.9752%
validationEXTREME144278.7%4.1875%
validationHIGH VOLATILITY25882.3%1.5339%
validationLOW VOLATILITY1833.6%0.1746%
validationMEDIUM VOLATILITY31587.3%2.4543%
validationNORMAL4747.1%0.2930%
validationSIDEWAYS206-29.8%-1.2327%
validationUPTREND425118.2%2.3761%

Trades (full period)

79 trades
EntryExitEntry PxExit PxReturnDays
2026-09-09—$367.81—2.68%20OPEN
2026-09-032026-09-08$376.37$368.16-0.76%3
2026-09-012026-09-02$356.09$357.01-2.74%2
2026-08-282026-08-31$348.75$367.95-1.53%2
2026-08-262026-08-27$345.82$354.81-1.17%2
2026-08-242026-08-25$348.95$350.25-3.22%2
2026-05-052026-06-08$389.37$408.95-0.32%24
2025-12-152026-01-05$475.31$451.67-3.75%14
2025-08-252025-11-14$346.60$404.3514.70%59
2025-04-302025-06-06$282.16$295.14-1.80%27
2025-04-162025-04-17$241.55$241.37-4.11%2
2024-11-072025-01-14$296.91$396.3631.35%45
2024-09-112024-10-14$228.13$219.16-2.94%24
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-06-272024-08-02$197.42$207.678.63%26
2024-05-152024-05-29$173.99$176.19-0.45%10
2024-04-302024-05-10$183.28$168.47-9.32%9
2023-11-292024-01-10$244.14$233.94-3.90%29
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-11-202023-11-21$235.60$241.200.28%2
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-05-242023-08-02$182.90$254.1131.58%48
2022-09-212022-09-26$300.80$276.01-8.87%4
2022-07-192022-08-31$245.53$275.6112.29%32
2022-06-242022-06-27$245.71$244.923.46%2
2022-03-232022-04-27$333.04$293.84-9.42%25
2022-01-202022-01-21$332.09$314.63-0.11%2
2022-01-182022-01-19$343.50$331.88-1.61%2
2022-01-122022-01-14$368.74$349.87-2.58%3
2022-01-042022-01-07$383.20$342.32-9.22%4
2021-08-042021-12-01$236.97$365.0047.24%84
2021-06-292021-07-26$226.92$219.21-5.41%19
2021-04-192021-04-30$238.21$236.48-6.95%10
2021-04-062021-04-07$230.54$223.66-0.09%2
2020-11-192021-02-11$166.42$270.5550.29%57
2020-10-072020-10-29$141.77$136.94-1.64%17
2020-08-142020-09-24$110.05$129.2614.91%29
2020-04-142020-08-10$47.33$94.5792.26%83
2019-10-162020-03-05$17.32$48.30138.70%97
2019-09-272019-10-07$16.14$15.85-3.83%7
2019-09-122019-09-25$16.39$15.25-7.91%10
2019-07-162019-08-13$16.83$15.67-7.74%21
2018-10-292018-12-20$22.32$21.030.50%37
2018-08-282018-08-29$20.79$20.33-2.02%2
2018-08-032018-08-20$23.21$20.56-10.18%12
2018-06-122018-07-06$22.85$20.59-5.58%18
2018-05-012018-05-02$19.99$20.081.48%2
2018-04-272018-04-30$19.61$19.592.25%2
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-01-222018-02-09$23.44$20.69-8.08%15
2017-09-182017-09-26$25.67$23.02-7.53%7
2017-08-042017-08-21$23.79$22.52-0.04%12
2017-03-282017-07-06$18.50$20.5916.71%70
2016-12-212017-03-09$13.85$16.3314.34%53
2016-07-222016-08-29$14.82$14.35-0.31%27
2016-06-082016-06-10$15.70$14.59-1.18%3
2016-03-042016-05-04$13.40$14.8414.71%43
2015-12-012015-12-14$15.81$14.57-4.75%10
2015-09-222015-09-29$17.40$16.44-4.94%6
2015-08-062015-08-07$16.41$16.17-7.26%2
2015-04-132015-07-28$13.99$17.6515.76%75
2014-11-252014-12-02$16.54$15.43-5.05%5
2014-11-122014-11-24$16.61$16.45-2.78%9
2014-08-052014-09-23$15.90$16.693.86%35
2014-06-172014-07-17$15.44$14.36-2.74%22
2014-06-092014-06-11$13.69$13.63-2.42%3
2014-01-162014-03-26$11.40$14.2026.97%48
2013-12-242014-01-14$10.09$10.75-2.44%14
2013-12-202013-12-23$9.55$9.571.27%2
2013-12-182013-12-19$9.87$9.38-2.51%2
2013-07-012013-10-23$7.81$10.9746.59%81
2013-03-262013-06-26$2.52$7.05126.21%65
2013-01-242013-02-22$2.47$2.41-1.89%21
2012-11-092013-01-14$2.02$2.224.02%44
2012-08-242012-08-27$1.97$1.89-3.36%2
2012-07-162012-07-24$2.40$1.99-8.54%7
2012-06-192012-07-03$2.14$2.04-3.70%11
2012-02-062012-04-10$2.12$2.165.22%45