Strategy Zoo / S0821

LongTermTrend_V0821

ARCHIVEDhybrid

parameterchanged macd_hist threshold 0.0 -> 0.9213

Fitness
0.4194
Generation
37
Complexity
27
Created
2026-09-26

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDparameter

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

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0821  [hybrid]
if flat and (((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > -2.6055):
    position = 1.0
if long and macd_hist < 0.9213:
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-4.8%81.6%34.2%18.5%
Total Return-32.4%498.8%198.4%1106.0%
Sharpe-0.111.581.060.71
Sortino-0.101.651.070.70
Calmar-0.092.141.320.37
Volatility22.3%43.7%32.8%30.6%
Max DD-50.5%-38.2%-26.0%-50.5%
Win Rate47.0%56.6%47.1%48.6%
Avg Win2.1%5.7%7.3%3.4%
Avg Loss-2.0%-2.6%-2.9%-2.2%
Payoff1.082.172.511.54
Expectancy-0.0%2.1%1.9%0.5%
Profit Factor0.962.822.231.46
Trades4579970627
Avg Holding Days2.03.95.82.7
Turnover114.666.038.085.4
Exposure22.8%37.6%36.4%29.2%

Growth of $100

LongTermTrend_V0821 vs TSLA Buy & Hold
LongTermTrend_V0821 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.68-12.6%37
2017-2.2%-0.06-12.6%69
2018-5.9%-0.14-17.9%52
20195.0%0.33-20.2%41
2020261.2%2.42-38.2%59
202134.3%1.07-20.3%28
20224.7%0.30-19.1%11

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 testDOWNTREND27210.1%0.4326%
hidden testEXPENSIVE83138.5%3.0153%
hidden testEXTREME48131.4%2.6942%
hidden testHIGH VOLATILITY25429.2%0.6739%
hidden testLOW VOLATILITY43257.8%2.2737%
hidden testMEDIUM VOLATILITY2500.7%0.0234%
hidden testNORMAL80518.3%0.6134%
hidden testSIDEWAYS2936.2%0.2138%
hidden testUPTREND37175.4%1.8943%
trainDOWNTREND518-10.4%-0.6810%
trainEXPENSIVE31119.7%0.7335%
trainEXTREME10097.8%2.4746%
trainHIGH VOLATILITY699-1.6%-0.0621%
trainLOW VOLATILITY7451.8%0.1126%
trainMEDIUM VOLATILITY568-9.0%-0.4220%
trainNORMAL1,601-13.0%-0.6719%
trainSIDEWAYS592-1.2%-0.0621%
trainUPTREND9021.4%0.0531%
validationDOWNTREND12541.2%1.6419%
validationEXPENSIVE13852.3%1.0936%
validationEXTREME144235.2%3.4358%
validationHIGH VOLATILITY25851.9%0.9032%
validationLOW VOLATILITY1833.6%0.1939%
validationMEDIUM VOLATILITY315121.5%3.0341%
validationNORMAL47423.7%0.7832%
validationSIDEWAYS20631.2%1.1231%
validationUPTREND42595.8%1.8046%

Trades (full period)

latest 100 of 628
EntryExitEntry PxExit PxReturnDays
2026-09-22—$378.90—0.60%4OPEN
2026-09-182026-09-21$364.27$375.30-0.73%2
2026-08-242026-09-16$348.95$358.08-1.93%17
2026-07-012026-07-14$425.30$396.18-6.33%9
2026-05-282026-06-01$442.10$415.88-1.24%3
2026-05-262026-05-27$433.59$440.361.58%2
2026-05-212026-05-22$417.85$426.01-0.06%2
2026-04-162026-05-20$388.90$417.262.90%25
2025-12-042025-12-30$454.53$454.432.68%18
2025-11-062025-11-07$445.91$429.52-3.69%2
2025-11-032025-11-04$468.37$444.262.38%2
2025-10-242025-10-27$433.72$452.42-3.60%2
2025-10-082025-10-09$438.69$435.541.09%2
2025-10-062025-10-07$453.25$433.095.24%2
2025-09-112025-10-03$368.81$429.8325.12%17
2025-09-092025-09-10$346.97$347.79-0.04%2
2025-09-052025-09-08$350.84$346.403.43%2
2025-08-252025-09-02$346.60$329.36-2.00%6
2025-08-082025-08-21$329.65$320.110.31%10
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-212025-07-28$328.49$325.59-4.31%6
2025-06-252025-06-26$327.55$325.78-3.99%2
2025-06-032025-06-04$344.27$332.050.26%2
2025-04-282025-06-02$285.88$342.6921.34%25
2024-12-272024-12-30$431.66$417.41-5.14%2
2024-12-242024-12-26$462.28$454.137.15%2
2024-12-092024-12-23$389.79$430.607.96%11
2024-12-052024-12-06$369.49$389.223.03%2
2024-12-032024-12-04$351.42$357.93-1.79%2
2024-11-292024-12-02$345.16$357.093.48%2
2024-10-252024-11-27$269.19$332.8929.59%24
2024-10-092024-10-10$241.05$238.77-1.61%2
2024-10-072024-10-08$240.83$244.50-3.90%2
2024-09-112024-10-04$228.13$250.086.19%18
2024-09-062024-09-10$210.73$226.17-6.24%3
2024-09-042024-09-05$219.41$230.173.98%2
2024-08-202024-08-28$221.10$205.75-6.25%7
2024-07-242024-07-25$215.99$220.25-12.52%2
2024-07-222024-07-23$251.51$246.384.94%2
2024-06-262024-07-19$196.37$239.2032.77%17
2024-06-242024-06-25$182.58$187.35-0.43%2
2024-06-202024-06-21$181.57$183.01-1.98%2
2024-06-172024-06-18$187.44$184.865.09%2
2024-05-282024-05-29$176.75$176.19-1.59%2
2024-05-222024-05-23$180.11$173.74-3.67%2
2024-05-202024-05-21$174.95$186.60-1.61%2
2024-05-162024-05-17$174.84$177.460.29%2
2024-05-142024-05-15$177.55$173.993.09%2
2024-04-302024-05-13$183.28$171.89-13.36%10
2023-12-272023-12-29$261.44$248.48-1.53%3
2023-12-152023-12-26$253.50$256.610.39%7
2023-12-112023-12-12$239.74$237.01-1.88%2
2023-12-072023-12-08$242.64$243.841.16%2
2023-11-162023-12-06$233.59$239.37-1.90%14
2023-10-102023-10-13$263.62$251.12-0.51%4
2023-10-062023-10-09$260.53$259.67-0.02%2
2023-08-302023-09-22$256.90$244.88-0.77%17
2023-07-192023-07-20$291.26$262.90-0.91%2
2023-07-172023-07-18$290.38$293.343.00%2
2023-07-132023-07-14$277.90$281.381.97%2
2023-07-112023-07-12$269.79$271.99-0.13%2
2023-07-072023-07-10$274.43$269.61-0.96%2
2023-07-052023-07-06$282.48$276.540.75%2
2023-06-302023-07-03$261.77$279.821.46%2
2023-06-282023-06-29$256.24$257.502.21%2
2023-05-222023-06-27$188.87$250.2133.55%25
2023-04-032023-04-05$194.77$185.52-7.36%3
2023-03-302023-03-31$195.28$207.460.52%2
2023-03-282023-03-29$189.19$193.88-1.56%2
2023-03-242023-03-27$190.41$191.81-1.14%2
2023-01-272023-02-22$177.90$200.8622.91%18
2022-09-152022-09-23$303.75$275.33-4.82%7
2022-09-132022-09-14$292.13$302.61-4.23%2
2022-08-242022-08-25$297.10$296.070.02%2
2022-08-192022-08-22$296.67$289.91-2.25%2
2022-08-172022-08-18$304.00$302.87-1.04%2
2022-08-152022-08-16$309.32$306.562.89%2
2022-08-112022-08-12$286.63$300.03-2.82%2
2022-06-272022-08-10$244.92$294.3615.08%32
2022-03-212022-04-11$307.05$325.3113.04%16
2022-01-122022-01-13$368.74$343.853.73%2
2021-12-282022-01-11$362.82$354.80-3.47%11
2021-11-112021-11-12$354.50$344.47-0.62%2
2021-10-182021-11-10$290.04$355.9821.17%18
2021-10-142021-10-15$272.77$281.010.69%2
2021-10-122021-10-13$268.57$270.361.54%2
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-10-052021-10-06$260.20$260.92-0.32%2
2021-10-012021-10-04$258.41$260.51-0.23%2
2021-09-292021-09-30$260.44$258.490.28%2
2021-09-272021-09-28$263.79$259.191.99%2
2021-09-232021-09-24$251.21$258.130.03%2
2021-09-202021-09-21$243.39$246.46-4.06%2
2021-09-162021-09-17$252.33$253.16-0.05%2
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-072021-09-13$250.97$247.670.17%5
2021-09-022021-09-03$244.13$244.52-0.43%2
2021-08-312021-09-01$245.24$244.700.46%2
2021-08-262021-08-27$233.72$237.31-1.61%2
2021-08-242021-08-25$236.16$237.070.11%2