Strategy Zoo / S0612

LongTermTrend_V0612

ARCHIVEDhybrid

llmSimplified and de-overfitted entry rules: replaced many narrow thresholds with two robust branches (trend-follow and momentum breakout). Added multi-condition exit (macd_hist, sma_50 cross, and a drawdown stop) for better risk control. Introduced regime gates to trade only in UPTREND / MEDIUM_VOLATILITY / NORMAL bubble to avoid adverse market regimes. Added volatility- and drawdown-based position sizing rules to reduce exposure in stressed conditions and lower base position from 1.0 to 0.8.

Fitness
0.5972
Generation
28
Complexity
15
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0521S0521 · gen 24ARCHIVEDllm

entry = LongTermTrend_V0469 OR MACDMomentum_V0272

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0612  [hybrid]
if flat and ((close > sma_200 and sma_50 > sma_200 and ret_20d > 0.04 and cumret_252d > 0.03) or (breakout_20 == 1 and rel_volume > 1.2 and macd_hist > 0.0 and close > sma_50)):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.08):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR16.1%67.8%5.5%22.4%
Total Return229.8%372.7%22.0%1846.1%
Sharpe0.751.610.350.90
Sortino0.711.740.290.85
Calmar0.472.570.160.65
Volatility23.5%36.2%22.6%26.4%
Max DD-34.3%-26.4%-34.5%-34.5%
Win Rate46.6%58.1%40.0%48.9%
Avg Win6.2%6.5%6.9%6.6%
Avg Loss-2.8%-2.9%-3.4%-3.0%
Payoff2.232.222.012.21
Expectancy1.4%2.5%0.7%1.7%
Profit Factor1.943.081.342.12
Trades1167445235
Avg Holding Days6.45.26.16.0
Turnover23.339.519.425.6
Exposure25.4%32.7%19.5%25.4%

Growth of $100

LongTermTrend_V0612 vs TSLA Buy & Hold
LongTermTrend_V0612 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
20167.3%0.95-5.3%2
201712.3%0.76-12.7%22
2018-4.2%-0.14-17.6%6
201925.2%1.10-18.9%3
2020294.3%2.85-19.7%35
202123.3%0.91-16.1%28
2022-3.2%-0.09-15.5%10

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 testDOWNTREND269-1.1%-0.086%
hidden testEXPENSIVE8342.4%1.0945%
hidden testEXTREME48120.9%3.2238%
hidden testHIGH VOLATILITY25414.4%0.4922%
hidden testLOW VOLATILITY42924.8%1.4919%
hidden testMEDIUM VOLATILITY250-27.6%-1.1619%
hidden testNORMAL802-2.4%-0.1316%
hidden testSIDEWAYS293-11.5%-0.7021%
hidden testUPTREND37129.8%0.9828%
trainDOWNTREND5183.1%0.395%
trainEXPENSIVE31131.6%1.1346%
trainEXTREME100257.5%4.5667%
trainHIGH VOLATILITY69942.8%1.3324%
trainLOW VOLATILITY74519.0%1.1432%
trainMEDIUM VOLATILITY568-15.0%-0.8318%
trainNORMAL1,601-0.0%-0.0019%
trainSIDEWAYS592-4.6%-0.2423%
trainUPTREND90240.6%1.3138%
validationDOWNTREND12515.0%1.384%
validationEXPENSIVE13863.0%1.7239%
validationEXTREME144219.9%3.4962%
validationHIGH VOLATILITY25866.0%1.3730%
validationLOW VOLATILITY18331.5%1.9030%
validationMEDIUM VOLATILITY31567.5%2.0436%
validationNORMAL4747.8%0.3722%
validationSIDEWAYS20612.1%0.5523%
validationUPTREND42593.4%2.0646%

Trades (full period)

latest 100 of 235
EntryExitEntry PxExit PxReturnDays
2026-09-042026-09-08$354.08$368.16-4.89%2
2026-09-012026-09-02$356.09$357.01-2.74%2
2026-05-122026-05-21$433.45$417.85-5.13%8
2026-04-202026-04-22$392.50$387.51-3.00%3
2026-01-022026-01-05$438.07$451.67-2.23%2
2025-12-152025-12-30$475.31$454.430.02%11
2025-11-062025-11-07$445.91$429.52-2.96%2
2025-11-032025-11-05$468.37$462.07-2.29%3
2025-10-242025-10-27$433.72$452.42-2.88%2
2025-10-132025-10-14$435.90$429.244.17%2
2025-10-092025-10-10$435.54$413.49-0.73%2
2025-10-072025-10-08$433.09$438.69-3.72%2
2025-09-122025-10-06$395.94$453.2513.02%17
2025-05-142025-06-03$347.68$344.271.98%14
2025-01-062025-01-07$411.05$394.36-0.04%2
2025-01-022025-01-03$379.28$410.44-5.02%2
2024-12-302024-12-31$417.41$403.84-2.80%2
2024-12-262024-12-27$454.13$431.66-1.57%2
2024-12-062024-12-24$389.22$462.2813.06%13
2024-12-042024-12-05$357.93$369.491.32%2
2024-12-022024-12-03$357.09$351.422.60%2
2024-10-282024-11-29$262.51$345.1618.82%24
2024-09-202024-10-04$238.25$250.08-1.18%11
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-06-182024-07-22$184.86$251.5121.67%23
2024-04-302024-05-10$183.28$168.47-9.32%9
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-212023-11-24$241.20$235.45-0.62%3
2023-11-172023-11-20$234.30$235.600.08%2
2023-10-092023-10-17$259.67$254.85-2.18%7
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-07-202023-07-21$262.90$260.02-7.94%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-142023-07-17$281.38$290.380.84%2
2023-07-122023-07-13$271.99$277.900.49%2
2023-07-102023-07-11$269.61$269.79-1.56%2
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-07-032023-07-05$279.82$282.485.35%2
2023-06-292023-06-30$257.50$261.770.23%2
2023-05-302023-06-27$201.16$250.2119.39%20
2023-04-032023-04-06$194.77$185.06-8.66%4
2023-01-272023-02-23$177.90$202.0719.98%19
2022-07-222022-08-12$272.24$300.034.34%16
2022-04-192022-04-20$342.72$325.731.74%2
2022-04-142022-04-18$328.33$334.76-3.08%2
2022-04-122022-04-13$328.98$340.790.74%2
2022-03-212022-04-11$307.05$325.3110.49%16
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-132022-01-14$343.85$349.87-5.55%2
2022-01-112022-01-12$354.80$368.740.31%2
2022-01-042022-01-07$383.20$342.32-9.22%4
2021-12-092021-12-10$334.60$339.01-5.03%2
2021-11-242021-11-26$372.00$360.640.34%2
2021-11-222021-11-23$385.62$369.681.23%2
2021-11-182021-11-19$365.46$379.020.38%2
2021-11-162021-11-17$351.58$363.003.10%2
2021-11-122021-11-15$344.47$337.80-2.42%2
2021-10-122021-11-11$268.57$354.5027.33%23
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-282021-10-07$259.19$264.54-1.03%8
2021-09-242021-09-27$258.13$263.792.04%2
2021-09-222021-09-23$250.65$251.211.20%2
2021-09-012021-09-21$244.70$246.46-0.74%14
2021-08-022021-08-17$236.56$221.90-0.24%12
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-06-222021-06-23$207.90$218.860.21%2
2021-06-182021-06-21$207.77$206.940.71%2
2021-06-142021-06-15$205.90$199.790.86%2
2021-05-032021-05-04$228.30$224.53-2.92%2
2021-04-142021-04-29$244.08$225.67-7.29%12
2021-04-072021-04-08$223.66$227.93-2.55%2
2021-04-052021-04-06$230.35$230.543.38%2
2021-02-102021-02-11$268.27$270.55-4.36%2
2021-02-052021-02-08$284.08$287.810.05%2
2021-02-032021-02-04$284.90$283.33-1.82%2
2021-02-012021-02-02$279.94$290.934.50%2
2021-01-282021-01-29$278.48$264.51-2.82%2
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-052021-01-25$245.04$293.6012.64%14
2020-12-312021-01-04$235.22$243.261.09%2
2020-12-292020-12-30$222.00$231.590.12%2
2020-12-242020-12-28$220.59$221.231.79%2
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-11-182020-12-17$162.21$218.6331.86%21
2020-10-222020-10-23$141.93$140.210.44%2
2020-10-132020-10-20$148.88$140.65-2.21%6
2020-10-092020-10-12$144.67$147.431.36%2
2020-10-072020-10-08$141.77$141.972.03%2
2020-09-232020-09-24$126.79$129.26-8.43%2
2020-09-212020-09-22$149.80$141.411.15%2
2020-09-172020-09-18$141.14$147.38-3.48%2
2020-09-152020-09-16$149.92$147.255.58%2
2020-09-112020-09-14$124.24$139.870.14%2
2020-09-092020-09-10$122.09$123.788.57%2
2020-08-182020-09-08$125.81$110.0711.19%15
2020-08-142020-08-17$110.05$122.381.31%2