Strategy Zoo / S1012

LongTermTrend_V1012

ARCHIVEDhybrid

llmBroadened entry to be less brittle (lowered ret_20d and cumret_252d thresholds), added a dedicated breakout/momentum branch (breakout_20 + rel_volume) to restore activity; improved exits to include bearish momentum, price below sma_50, or sharp 5-day drawdown; introduced regime gates to avoid high-volatility/extreme-bubble regimes; added volatility-based position sizing (reduce size in high vol, scale up on strong breakout) and lowered base_position to 0.7 to reduce drawdown risk.

Fitness
0.2361
Generation
46
Complexity
21
Created
2026-10-01

Lineage

Parents (1)
LongTermTrend_V0521S0521 · gen 24ARCHIVEDllm

entry = LongTermTrend_V0469 OR MACDMomentum_V0272

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1012  [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.0024) or cumret_252d > 0.03) and ret_20d > 0.03) or (breakout_20 == 1 and rel_volume > 1.2 and (close > sma_50 or macd_hist > 0.0))):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or ret_5d < -0.06):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.0%19.2%-2.0%2.7%
Total Return-7.5%69.6%-7.1%48.7%
Sharpe0.011.01-0.040.25
Sortino0.010.93-0.030.19
Calmar-0.020.86-0.070.06
Volatility15.0%19.2%16.1%16.2%
Max DD-45.4%-22.4%-28.8%-45.4%
Win Rate38.5%50.0%41.7%41.9%
Avg Win3.1%4.2%3.1%3.5%
Avg Loss-2.0%-2.0%-2.3%-2.1%
Payoff1.512.061.371.69
Expectancy-0.1%1.1%-0.0%0.3%
Profit Factor0.942.060.981.22
Trades1305860248
Avg Holding Days4.24.44.34.4
Turnover22.927.122.523.6
Exposure15.0%18.5%15.0%15.7%

Growth of $100

LongTermTrend_V1012 vs TSLA Buy & Hold
LongTermTrend_V1012 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.6%-0.58-10.2%12
20174.4%0.38-11.4%25
2018-8.2%-0.73-9.4%10
2019-5.5%-0.20-21.5%8
202063.8%2.74-5.6%11
20216.4%0.38-20.5%34
2022-2.8%-0.11-19.7%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 testDOWNTREND275-2.7%-1.511%
hidden testEXPENSIVE8329.1%1.2427%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-2.3%-0.211%
hidden testLOW VOLATILITY43419.0%1.2221%
hidden testMEDIUM VOLATILITY251-33.2%-1.6218%
hidden testNORMAL808-3.8%-0.2415%
hidden testSIDEWAYS293-13.3%-0.8923%
hidden testUPTREND37110.8%0.4919%
trainDOWNTREND518-5.3%-1.121%
trainEXPENSIVE31123.9%1.2724%
trainEXTREME1008.1%1.551%
trainHIGH VOLATILITY6995.3%0.361%
trainLOW VOLATILITY7456.9%0.4827%
trainMEDIUM VOLATILITY568-15.1%-0.9416%
trainNORMAL1,601-5.0%-0.3414%
trainSIDEWAYS592-12.2%-0.8116%
trainUPTREND90211.3%0.6222%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13878.8%3.0329%
validationEXTREME14433.0%2.612%
validationHIGH VOLATILITY258-5.7%-0.661%
validationLOW VOLATILITY1835.0%0.3134%
validationMEDIUM VOLATILITY31548.4%1.8724%
validationNORMAL474-2.0%-0.1120%
validationSIDEWAYS206-19.8%-1.1719%
validationUPTREND42544.1%1.9524%

Trades (full period)

latest 100 of 248
EntryExitEntry PxExit PxReturnDays
2026-06-052026-06-08$391.00$408.95-4.73%2
2026-06-032026-06-04$423.70$418.45-0.15%2
2026-05-272026-06-02$440.36$423.74-2.99%5
2026-05-222026-05-26$426.01$433.591.23%2
2026-05-202026-05-21$417.26$417.852.14%2
2026-05-082026-05-19$428.35$404.11-0.36%8
2026-04-202026-04-21$392.50$386.42-1.56%2
2025-12-312026-01-02$449.72$438.07-0.86%2
2025-12-122025-12-30$458.96$454.431.93%12
2025-11-102025-11-11$445.23$439.622.42%2
2025-11-062025-11-07$445.91$429.52-2.59%2
2025-11-032025-11-05$468.37$462.07-1.99%3
2025-10-292025-10-30$461.51$440.100.01%2
2025-10-242025-10-27$433.72$452.42-2.52%2
2025-10-222025-10-23$438.97$448.98-0.71%2
2025-10-202025-10-21$447.43$442.601.15%2
2025-10-132025-10-14$435.90$429.243.65%2
2025-10-092025-10-10$435.54$413.49-0.64%2
2025-10-072025-10-08$433.09$438.69-3.25%2
2025-09-082025-10-06$346.40$453.2515.37%21
2025-09-042025-09-05$338.53$350.840.79%2
2025-08-222025-09-03$340.01$334.091.94%8
2025-08-112025-08-21$339.03$320.11-1.34%9
2025-08-052025-08-06$308.72$319.91-0.26%2
2025-07-312025-08-01$308.27$302.63-2.50%2
2025-07-082025-07-09$297.81$295.880.78%2
2025-06-042025-06-05$332.05$284.70-2.62%2
2025-05-192025-06-03$342.09$344.27-1.52%11
2025-05-122025-05-13$318.38$334.074.58%2
2024-10-112024-10-14$217.80$219.16-6.28%2
2024-10-092024-10-10$241.05$238.77-1.13%2
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-09-232024-10-04$250.00$250.080.63%10
2024-09-162024-09-20$226.78$238.254.02%5
2024-09-052024-09-09$230.17$216.27-2.82%3
2024-09-032024-09-04$210.60$219.41-1.29%2
2024-06-182024-07-12$184.86$248.2319.45%17
2024-01-032024-01-04$238.45$237.93-2.95%2
2023-12-152024-01-02$253.50$248.42-0.80%11
2023-11-292023-12-14$244.14$251.05-2.24%12
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-212023-11-24$241.20$235.45-0.54%3
2023-11-172023-11-20$234.30$235.600.07%2
2023-10-052023-10-17$260.05$254.85-2.07%9
2023-09-252023-09-26$246.99$244.120.46%2
2023-09-122023-09-22$267.48$244.88-4.72%9
2023-09-082023-09-11$248.50$273.58-0.97%2
2023-07-312023-08-01$267.43$261.070.12%2
2023-07-272023-07-28$255.71$266.44-2.43%2
2023-07-252023-07-26$265.28$264.35-1.12%2
2023-07-202023-07-21$262.90$260.02-6.95%2
2023-07-182023-07-19$293.34$291.260.57%2
2023-07-142023-07-17$281.38$290.380.74%2
2023-07-122023-07-13$271.99$277.900.43%2
2023-07-102023-07-11$269.61$269.79-1.37%2
2023-07-052023-07-07$282.48$274.43-0.95%3
2023-06-302023-07-03$261.77$279.821.02%2
2023-06-282023-06-29$256.24$257.501.55%2
2023-06-012023-06-27$207.52$250.2112.48%18
2023-04-032023-04-06$194.77$185.06-7.60%4
2022-09-292022-09-30$268.21$265.25-4.90%2
2022-09-122022-09-23$304.42$275.33-2.68%10
2022-08-262022-08-29$288.09$284.82-2.03%2
2022-08-242022-08-25$297.10$296.070.01%2
2022-08-222022-08-23$289.91$296.45-1.73%2
2022-08-152022-08-19$309.32$296.670.53%5
2022-08-022022-08-12$300.59$300.03-2.57%9
2022-04-192022-04-20$342.72$325.731.52%2
2022-04-142022-04-18$328.33$334.76-2.70%2
2022-04-122022-04-13$328.98$340.790.65%2
2022-03-212022-04-11$307.05$325.319.20%16
2022-01-122022-01-13$368.74$343.852.61%2
2021-12-092021-12-10$334.60$339.01-4.40%2
2021-11-262021-11-29$360.64$379.00-2.28%2
2021-11-232021-11-24$369.68$372.00-3.03%2
2021-10-122021-11-10$268.57$355.9820.11%22
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-282021-10-07$259.19$264.54-0.90%8
2021-09-242021-09-27$258.13$263.791.79%2
2021-09-222021-09-23$250.65$251.211.05%2
2021-09-012021-09-21$244.70$246.46-0.63%14
2021-08-272021-08-30$237.31$243.640.93%2
2021-08-252021-08-26$237.07$233.720.13%2
2021-08-232021-08-24$235.43$236.162.54%2
2021-08-192021-08-20$224.49$226.75-1.72%2
2021-08-022021-08-17$236.56$221.90-0.20%12
2021-07-222021-07-23$216.42$214.46-0.78%2
2021-07-202021-07-21$220.17$218.431.41%2
2021-07-162021-07-19$214.74$215.41-0.83%2
2021-07-132021-07-15$222.85$216.87-3.45%3
2021-06-242021-07-12$226.61$228.57-0.06%12
2021-06-212021-06-22$206.94$207.90-0.42%2
2021-06-172021-06-18$205.53$207.771.22%2
2021-06-152021-06-16$199.79$201.62-2.22%2
2021-06-112021-06-14$203.30$205.90-0.17%2
2021-05-032021-05-04$228.30$224.53-2.56%2
2021-04-142021-04-29$244.08$225.67-6.38%12
2021-02-102021-02-11$268.27$270.55-3.82%2
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.59%2