Strategy Zoo / S0740

LongTermTrend_V0740

ARCHIVEDhybrid

llmSimplified and regularized entries (favor close>sma50 or close>sma200 + milder ret_20d threshold) to avoid overfit; added MACD soft filter instead of a strict cutoff; introduced regime gates (UPTREND, MEDIUM_VOLATILITY, NORMAL bubble) to prevent trading in hostile regimes; stronger multi-condition exit (macd_hist<0 OR price below sma50 OR >15% below sma50) to reduce big drawdowns; added volatility-based position sizing (reduce exposure when vol_pctile high or vol_20 high, increase in low vol); lowered base position to 0.7 to limit risk.

Fitness
0.5892
Generation
34
Complexity
18
Created
2026-09-25

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0740  [hybrid]
if flat and (((close > sma_50 and sma_50 > sma_200) or (close > sma_200 and sma_200_slope > -0.003) or ret_20d > 0.03) and sma_20 < close and (breakout_50 == 1 or rel_volume > 1.1) and macd_hist > -1.0):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or dist_sma_50 < -0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR11.8%57.9%8.7%19.3%
Total Return143.4%293.6%36.4%1233.7%
Sharpe0.641.720.510.89
Sortino0.601.700.480.85
Calmar0.323.350.290.53
Volatility20.6%29.1%20.5%22.6%
Max DD-36.3%-17.3%-29.7%-36.3%
Win Rate35.5%57.1%32.5%38.5%
Avg Win8.1%11.8%9.6%9.7%
Avg Loss-2.5%-2.4%-3.1%-2.6%
Payoff3.274.943.043.66
Expectancy1.3%5.7%1.0%2.1%
Profit Factor1.806.591.472.29
Trades932840161
Avg Holding Days7.810.67.78.3
Turnover16.413.115.315.4
Exposure22.4%25.0%20.2%22.4%

Growth of $100

LongTermTrend_V0740 vs TSLA Buy & Hold
LongTermTrend_V0740 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
20168.0%0.88-6.3%5
201720.0%1.26-9.2%16
2018-19.2%-1.06-23.4%13
201919.8%0.95-16.9%7
2020205.5%2.84-15.0%11
202126.7%1.21-11.9%9
2022-1.1%0.01-11.0%7

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 testDOWNTREND271-10.4%-0.6413%
hidden testEXPENSIVE8368.6%2.1735%
hidden testEXTREME4893.3%2.9928%
hidden testHIGH VOLATILITY2548.7%0.3223%
hidden testLOW VOLATILITY43121.1%1.3020%
hidden testMEDIUM VOLATILITY250-6.2%-0.3218%
hidden testNORMAL804-0.5%-0.0318%
hidden testSIDEWAYS293-3.2%-0.1823%
hidden testUPTREND37136.4%1.4623%
trainDOWNTREND518-8.5%-0.897%
trainEXPENSIVE31134.4%1.4635%
trainEXTREME100201.5%4.1949%
trainHIGH VOLATILITY69922.8%0.8220%
trainLOW VOLATILITY74522.5%1.5928%
trainMEDIUM VOLATILITY568-10.7%-0.6418%
trainNORMAL1,601-2.6%-0.1618%
trainSIDEWAYS592-5.6%-0.3320%
trainUPTREND90238.1%1.4333%
validationDOWNTREND12512.3%1.294%
validationEXPENSIVE13864.5%2.4324%
validationEXTREME144174.0%3.3747%
validationHIGH VOLATILITY25851.7%1.3621%
validationLOW VOLATILITY18316.8%1.3126%
validationMEDIUM VOLATILITY31567.6%2.4628%
validationNORMAL4747.9%0.4519%
validationSIDEWAYS2068.7%0.4619%
validationUPTREND42580.9%2.2534%

Trades (full period)

latest 100 of 162
EntryExitEntry PxExit PxReturnDays
2026-09-21—$375.30—2.97%4OPEN
2026-09-092026-09-17$367.81$366.20-2.06%7
2026-09-042026-09-08$354.08$368.16-4.28%2
2026-09-012026-09-02$356.09$357.01-2.39%2
2026-08-242026-08-25$348.95$350.25-2.82%2
2026-05-112026-05-21$445.00$417.85-1.88%9
2026-04-202026-04-22$392.50$387.51-2.63%3
2025-12-152025-12-30$475.31$454.430.04%11
2025-11-042025-11-05$444.26$462.07-3.74%2
2025-10-292025-10-30$461.51$440.100.01%2
2025-09-082025-10-06$346.40$453.2515.37%21
2025-08-252025-09-03$346.60$334.09-2.32%7
2025-08-122025-08-22$340.84$340.01-4.06%9
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-06-242025-06-26$340.47$325.78-4.40%3
2025-04-282025-06-03$285.88$344.2713.90%26
2025-04-102025-04-11$252.40$252.31-5.23%2
2025-03-262025-03-27$272.06$273.13-4.04%2
2024-12-092024-12-24$389.79$462.287.41%12
2024-12-052024-12-06$369.49$389.222.12%2
2024-12-032024-12-04$351.42$357.93-1.25%2
2024-10-252024-11-29$269.19$345.1619.23%25
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-09-202024-10-04$238.25$250.08-1.01%11
2024-09-052024-09-09$230.17$216.27-2.82%3
2024-06-142024-07-22$178.01$251.5121.17%25
2024-05-222024-05-30$180.11$178.79-4.04%6
2024-04-302024-05-10$183.28$168.47-8.18%9
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-202023-11-21$235.60$241.200.25%2
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-11-142023-11-15$237.41$242.844.14%2
2023-09-122023-09-22$267.48$244.88-4.72%9
2023-09-062023-09-07$251.92$251.49-1.39%2
2023-08-302023-09-05$256.90$256.49-3.44%4
2023-07-182023-07-19$293.34$291.260.57%2
2023-07-052023-07-07$282.48$274.43-0.95%3
2023-05-222023-06-27$188.87$250.2122.78%25
2023-04-032023-04-06$194.77$185.06-7.60%4
2023-01-272023-02-23$177.90$202.0717.43%19
2022-09-152022-09-23$303.75$275.33-3.37%7
2022-08-162022-08-19$306.56$296.67-1.60%4
2022-07-222022-08-12$272.24$300.033.85%16
2022-06-222022-06-23$236.09$235.07-0.42%2
2022-03-212022-04-11$307.05$325.319.20%16
2022-01-112022-01-12$354.80$368.740.28%2
2022-01-042022-01-07$383.20$342.32-8.10%4
2021-12-272022-01-03$364.65$399.93-0.80%6
2021-10-132021-11-11$270.36$354.5022.27%22
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-272021-10-07$263.79$264.540.62%9
2021-08-312021-09-21$245.24$246.46-0.18%15
2021-07-302021-08-17$229.07$221.900.82%13
2021-06-242021-07-12$226.61$228.57-0.06%12
2021-04-142021-04-29$244.08$225.67-6.38%12
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-042021-01-25$243.26$293.6013.72%15
2020-12-182020-12-23$231.67$215.33-1.72%4
2020-11-182020-12-17$162.21$218.6327.56%21
2020-09-222020-09-23$141.41$126.79-4.06%2
2020-08-182020-09-08$125.81$110.079.88%15
2020-08-142020-08-17$110.05$122.381.14%2
2020-07-012020-07-27$74.64$102.6421.47%18
2020-06-092020-06-25$62.71$65.730.84%13
2020-06-012020-06-02$59.87$58.775.15%2
2020-05-222020-05-26$54.46$54.59-1.05%2
2020-04-142020-05-14$47.33$53.5615.14%23
2019-12-132020-02-26$23.89$51.9277.49%50
2019-12-112019-12-12$23.51$23.980.63%2
2019-11-262019-11-27$21.93$22.09-1.68%2
2019-10-152019-11-21$17.19$23.6625.05%28
2019-09-272019-09-30$16.14$16.06-0.26%2
2019-09-122019-09-25$16.39$15.25-6.93%10
2019-07-052019-07-26$15.54$15.20-1.68%16
2019-02-282019-03-04$21.33$19.02-4.54%3
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-12-072018-12-10$23.86$24.34-1.12%2
2018-12-042018-12-06$23.98$24.200.10%2
2018-11-272018-11-28$22.93$23.19-0.56%2
2018-10-262018-11-21$22.06$22.557.10%19
2018-08-032018-08-20$23.21$20.56-8.89%12
2018-06-072018-06-26$21.07$22.802.93%14
2018-05-082018-05-09$20.13$20.46-0.32%2
2018-05-032018-05-04$18.96$19.61-4.02%2
2018-03-132018-03-15$22.79$21.71-3.97%3
2018-02-232018-03-02$23.47$22.34-3.21%6
2018-02-082018-02-09$21.02$20.69-6.18%2
2018-01-092018-02-05$22.25$22.211.42%19
2017-12-122017-12-27$22.74$20.78-2.59%11
2017-09-122017-09-25$24.18$23.00-2.53%10
2017-08-042017-08-21$23.79$22.52-0.03%12
2017-05-302017-06-27$22.34$24.1610.95%21
2017-05-162017-05-17$21.13$20.410.11%2
2017-05-102017-05-11$21.68$21.540.72%2
2017-05-082017-05-09$20.48$21.42-0.40%2
2017-05-012017-05-04$21.52$19.70-0.80%4
2017-04-262017-04-27$20.68$20.58-0.95%2
2017-03-272017-04-21$18.01$20.3710.23%19
2017-03-172017-03-22$17.43$17.00-3.17%4