Strategy Zoo / S0785

LongTermTrend_V0785

ARCHIVEDhybrid

llmAdded strict trend gate (UPTREND) and limited to NORMAL bubble + LOW_VOLATILITY; simplified and consolidated entry logic (cleaner long-term trend leg and momentum/breakout leg); relaxed sma_200_slope threshold slightly to be less brittle; lowered rel_volume cutoff for breakout leg; enhanced exits to include price crossing below sma_50 or oversold RSI in addition to macd_hist < 0; reduced base_position to 0.9 to lower risk.

Fitness
0.5471
Generation
36
Complexity
18
Created
2026-09-26

Lineage

Parents (1)
LongTermTrend_V0521S0521 · gen 24ARCHIVEDllm

entry = LongTermTrend_V0469 OR MACDMomentum_V0272

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0785  [hybrid]
if flat and ((close > sma_200 and sma_200_slope > -0.001 and ret_20d > 0.05 and cumret_252d > 0.04) or (macd_hist > 0.0 and close > sma_50 and ((breakout_50 == 1 and rel_volume > 1.3) or sma_50 > sma_200))):
    position = 0.9
if long and (macd_hist < 0.0 or close < sma_50 or rsi_14 < 40.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR12.3%70.4%1.2%19.3%
Total Return152.8%394.7%4.7%1244.1%
Sharpe0.571.520.170.75
Sortino0.541.700.150.72
Calmar0.252.800.030.39
Volatility26.6%40.2%24.5%29.5%
Max DD-49.7%-25.2%-37.7%-49.7%
Win Rate43.5%55.7%36.0%45.7%
Avg Win6.0%6.9%6.6%6.7%
Avg Loss-2.8%-3.0%-3.2%-3.0%
Payoff2.132.322.052.26
Expectancy1.0%2.5%0.3%1.5%
Profit Factor1.642.911.151.90
Trades1387950267
Avg Holding Days5.75.16.05.6
Turnover31.247.424.232.7
Exposure29.8%38.3%23.9%30.1%

Growth of $100

LongTermTrend_V0785 vs TSLA Buy & Hold
LongTermTrend_V0785 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-4.1%-0.29-11.9%10
201711.9%0.65-13.4%27
2018-16.6%-0.75-24.4%9
20190.2%0.12-24.9%4
2020309.3%2.68-22.0%36
202123.9%0.87-22.0%31
2022-2.8%-0.03-14.6%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 testDOWNTREND272-6.5%-1.113%
hidden testEXPENSIVE8338.4%0.8852%
hidden testEXTREME48136.0%3.2243%
hidden testHIGH VOLATILITY25416.2%0.5521%
hidden testLOW VOLATILITY43221.7%1.1026%
hidden testMEDIUM VOLATILITY250-38.2%-1.4823%
hidden testNORMAL805-7.2%-0.3620%
hidden testSIDEWAYS293-16.3%-0.8527%
hidden testUPTREND37128.3%0.8236%
trainDOWNTREND518-9.6%-1.272%
trainEXPENSIVE31140.5%1.2653%
trainEXTREME100313.3%4.8775%
trainHIGH VOLATILITY69931.3%0.8728%
trainLOW VOLATILITY74521.4%1.1435%
trainMEDIUM VOLATILITY568-13.1%-0.6024%
trainNORMAL1,601-8.4%-0.4222%
trainSIDEWAYS5921.3%0.0626%
trainUPTREND90238.4%1.0848%
validationDOWNTREND12516.9%1.384%
validationEXPENSIVE13876.2%1.8744%
validationEXTREME144229.9%3.2970%
validationHIGH VOLATILITY25868.0%1.2835%
validationLOW VOLATILITY18326.3%1.4238%
validationMEDIUM VOLATILITY31576.1%2.0742%
validationNORMAL4745.7%0.2427%
validationSIDEWAYS2061.9%0.0828%
validationUPTREND425103.2%2.0654%

Trades (full period)

latest 100 of 267
EntryExitEntry PxExit PxReturnDays
2026-06-032026-06-04$423.70$418.45-0.19%2
2026-05-272026-06-02$440.36$423.74-3.84%5
2026-05-222026-05-26$426.01$433.591.58%2
2026-05-082026-05-21$428.35$417.851.06%10
2026-04-202026-04-22$392.50$387.51-3.37%3
2025-12-042025-12-30$454.53$454.432.46%18
2025-11-062025-11-07$445.91$429.52-3.32%2
2025-11-032025-11-05$468.37$462.07-2.59%3
2025-10-242025-10-27$433.72$452.42-3.24%2
2025-10-142025-10-15$429.24$435.15-1.55%2
2025-10-092025-10-10$435.54$413.49-0.83%2
2025-10-072025-10-08$433.09$438.69-4.18%2
2025-09-082025-10-06$346.40$453.2519.95%21
2025-09-042025-09-05$338.53$350.841.02%2
2025-08-252025-09-03$346.60$334.09-2.99%7
2025-08-112025-08-22$339.03$340.01-2.77%10
2025-07-292025-07-30$321.20$319.04-1.39%2
2025-07-212025-07-25$328.49$316.06-6.81%5
2025-06-042025-06-05$332.05$284.70-3.37%2
2025-04-302025-06-03$282.16$344.2715.39%24
2025-01-062025-01-07$411.05$394.36-0.05%2
2025-01-022025-01-03$379.28$410.44-5.65%2
2024-12-302024-12-31$417.41$403.84-3.15%2
2024-12-262024-12-27$454.13$431.66-1.77%2
2024-12-062024-12-24$389.22$462.2814.69%13
2024-12-042024-12-05$357.93$369.491.49%2
2024-12-022024-12-03$357.09$351.422.93%2
2024-10-252024-11-29$269.19$345.1624.78%25
2024-09-112024-10-04$228.13$250.085.62%18
2024-09-062024-09-09$210.73$216.27-7.77%2
2024-08-262024-08-27$213.21$209.21-3.08%2
2024-08-202024-08-23$221.10$220.32-5.04%4
2024-06-272024-07-22$197.42$251.5119.38%17
2023-12-152024-01-02$253.50$248.42-1.08%11
2023-11-292023-12-14$244.14$251.05-2.88%12
2023-11-272023-11-28$236.08$246.720.06%2
2023-11-222023-11-24$234.21$235.45-2.79%2
2023-11-202023-11-21$235.60$241.200.32%2
2023-11-162023-11-17$233.59$234.30-3.60%2
2023-10-062023-10-17$260.53$254.85-2.29%8
2023-09-122023-09-22$267.48$244.88-6.06%9
2023-09-062023-09-07$251.92$251.49-1.78%2
2023-08-302023-09-05$256.90$256.49-4.43%4
2023-07-202023-07-21$262.90$260.02-8.94%2
2023-07-182023-07-19$293.34$291.260.74%2
2023-07-142023-07-17$281.38$290.380.95%2
2023-07-122023-07-13$271.99$277.900.55%2
2023-07-102023-07-11$269.61$269.79-1.76%2
2023-07-052023-07-07$282.48$274.43-1.23%3
2023-06-082023-06-27$234.86$250.216.47%13
2022-08-162022-08-19$306.56$296.67-2.06%4
2022-07-222022-08-12$272.24$300.034.82%16
2022-04-192022-04-20$342.72$325.731.96%2
2022-04-142022-04-18$328.33$334.76-3.47%2
2022-04-122022-04-13$328.98$340.790.84%2
2022-03-212022-04-11$307.05$325.3111.77%16
2022-01-202022-01-21$332.09$314.63-0.12%2
2022-01-182022-01-19$343.50$331.88-1.82%2
2022-01-122022-01-14$368.74$349.87-2.92%3
2022-01-042022-01-07$383.20$342.32-10.34%4
2021-12-282022-01-03$362.82$399.93-3.24%5
2021-11-242021-11-26$372.00$360.640.39%2
2021-11-222021-11-23$385.62$369.681.39%2
2021-11-182021-11-19$365.46$379.020.43%2
2021-11-162021-11-17$351.58$363.003.49%2
2021-11-122021-11-15$344.47$337.80-2.72%2
2021-10-122021-11-11$268.57$354.5030.94%23
2021-10-082021-10-11$261.83$263.98-1.10%2
2021-09-272021-10-07$263.79$264.540.80%9
2021-09-232021-09-24$251.21$258.130.02%2
2021-08-312021-09-21$245.24$246.46-0.26%15
2021-08-252021-08-26$237.07$233.720.16%2
2021-08-232021-08-24$235.43$236.163.26%2
2021-08-192021-08-20$224.49$226.75-2.21%2
2021-08-032021-08-17$236.58$221.90-3.14%11
2021-07-212021-07-22$218.43$216.42-0.89%2
2021-07-162021-07-19$214.74$215.41-1.06%2
2021-07-132021-07-15$222.85$216.87-4.42%3
2021-06-242021-07-12$226.61$228.57-0.11%12
2021-06-222021-06-23$207.90$218.860.24%2
2021-06-182021-06-21$207.77$206.940.80%2
2021-06-142021-06-15$205.90$199.790.97%2
2021-05-032021-05-04$228.30$224.53-3.29%2
2021-04-142021-04-29$244.08$225.67-8.19%12
2021-04-072021-04-08$223.66$227.93-2.86%2
2021-04-052021-04-06$230.35$230.543.80%2
2021-02-052021-02-08$284.08$287.810.06%2
2021-02-032021-02-04$284.90$283.33-2.04%2
2021-02-012021-02-02$279.94$290.935.06%2
2021-01-282021-01-29$278.48$264.51-3.17%2
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-052021-01-25$245.04$293.6014.21%14
2020-12-312021-01-04$235.22$243.261.23%2
2020-12-292020-12-30$222.00$231.590.13%2
2020-12-242020-12-28$220.59$221.232.02%2
2020-12-182020-12-23$231.67$215.33-2.27%4
2020-11-182020-12-17$162.21$218.6336.26%21
2020-11-092020-11-10$140.42$136.79-2.00%2
2020-10-222020-10-23$141.93$140.210.49%2
2020-10-132020-10-20$148.88$140.65-2.50%6