Strategy Zoo / S1717

LongTermTrend_V1717

ELITEhybrid

structuralchanged ret_20d threshold 0.085 -> -0.026; swapped indicator cumret_252d -> ret_1d

Fitness
0.7475
Generation
79
Complexity
24
Created
2026-10-16

Lineage

Parents (1)
LongTermTrend_V1701S1701 · gen 78ELITEstructural

changed rel_volume threshold 2.0784 -> 2.3805

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1717  [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > -0.0003) or ret_20d > -0.026) and ret_20d > 0.1344 and ret_1d > 0.0239 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 2.3805) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))):
    position = 1.0
if long and macd_hist < 0.0:
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR20.2%96.0%25.2%34.4%
Total Return335.2%652.8%133.6%7779.6%
Sharpe0.741.750.851.02
Sortino0.741.920.931.07
Calmar0.464.760.830.78
Volatility31.4%44.0%32.8%34.7%
Max DD-44.0%-20.2%-30.4%-44.0%
Win Rate38.6%56.8%34.2%42.1%
Avg Win16.0%14.0%15.3%15.8%
Avg Loss-5.0%-2.8%-3.6%-4.2%
Payoff3.224.914.223.79
Expectancy3.1%6.7%2.8%4.2%
Profit Factor2.026.442.202.75
Trades703738145
Avg Holding Days11.89.311.011.0
Turnover17.724.720.219.7
Exposure38.2%40.7%40.0%39.2%

Growth of $100

LongTermTrend_V1717 vs TSLA Buy & Hold
LongTermTrend_V1717 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
201626.5%1.47-12.2%5
201716.2%0.79-19.9%11
2018-2.3%0.06-22.9%9
201919.8%0.69-28.9%6
2020357.1%2.78-18.3%16
202148.1%1.36-16.8%13
2022-2.7%0.04-20.2%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 testDOWNTREND27915.9%0.6329%
hidden testEXPENSIVE8383.8%1.8351%
hidden testEXTREME48161.3%3.5144%
hidden testHIGH VOLATILITY25440.4%0.9543%
hidden testLOW VOLATILITY44549.4%1.9040%
hidden testMEDIUM VOLATILITY251-23.1%-0.7237%
hidden testNORMAL81914.4%0.4839%
hidden testSIDEWAYS300-4.1%-0.1347%
hidden testUPTREND37162.7%1.6442%
trainDOWNTREND518-8.3%-0.4619%
trainEXPENSIVE31141.7%1.2353%
trainEXTREME100293.9%4.2674%
trainHIGH VOLATILITY69945.0%1.0738%
trainLOW VOLATILITY74531.7%1.4844%
trainMEDIUM VOLATILITY568-14.7%-0.5631%
trainNORMAL1,6012.7%0.1033%
trainSIDEWAYS59215.0%0.5439%
trainUPTREND90246.8%1.2149%
validationDOWNTREND12536.4%1.6612%
validationEXPENSIVE13877.0%1.9642%
validationEXTREME144260.4%3.5169%
validationHIGH VOLATILITY25885.8%1.5033%
validationLOW VOLATILITY18317.8%0.8142%
validationMEDIUM VOLATILITY315103.8%2.5246%
validationNORMAL47421.1%0.6932%
validationSIDEWAYS20612.1%0.4131%
validationUPTREND425120.2%2.2454%

Trades (full period)

latest 100 of 145
EntryExitEntry PxExit PxReturnDays
2026-10-072026-10-15$377.81—-3.75%7
2026-09-182026-09-29$364.27$352.84-2.58%8
2026-08-242026-09-17$348.95$366.20-1.52%18
2026-07-012026-07-15$425.30$394.46-5.99%10
2026-05-282026-06-02$442.10$423.74-5.75%4
2026-04-162026-05-21$388.90$417.856.24%26
2025-12-042025-12-30$454.53$454.432.68%18
2025-11-042025-11-05$444.26$462.07-5.34%2
2025-10-072025-10-08$433.09$438.69-4.64%2
2025-09-082025-10-06$346.40$453.2522.27%21
2025-08-252025-09-03$346.60$334.09-3.32%7
2025-08-082025-08-22$329.65$340.01-0.87%11
2025-07-212025-08-01$328.49$302.63-6.67%10
2025-06-252025-06-26$327.55$325.78-3.99%2
2025-04-282025-06-03$285.88$344.2720.02%26
2025-01-062025-01-07$411.05$394.36-0.05%2
2024-12-262024-12-27$454.13$431.66-1.96%2
2024-12-062024-12-24$389.22$462.2816.31%13
2024-12-022024-12-03$357.09$351.423.25%2
2024-10-252024-11-29$269.19$345.1627.55%25
2024-10-072024-10-08$240.83$244.50-3.90%2
2024-09-062024-10-04$210.73$250.084.34%21
2024-08-202024-08-30$221.10$214.11-7.57%9
2024-07-302024-07-31$222.62$232.07-4.28%2
2024-07-232024-07-24$246.38$215.99-2.24%2
2024-06-172024-07-22$187.44$251.5134.11%24
2024-04-302024-05-30$183.28$178.79-9.39%22
2023-12-152024-01-02$253.50$248.42-1.22%11
2023-11-162023-12-14$233.59$251.05-1.66%20
2023-10-062023-10-17$260.53$254.85-2.55%8
2023-08-302023-09-25$256.90$246.99-4.97%18
2023-07-182023-07-19$293.34$291.260.82%2
2023-07-052023-07-07$282.48$274.43-1.37%3
2023-06-282023-06-29$256.24$257.502.21%2
2023-05-222023-06-27$188.87$250.2133.55%25
2023-03-242023-04-06$190.41$185.06-3.68%10
2023-02-282023-03-01$205.71$202.77-1.12%2
2023-01-272023-02-23$177.90$202.0725.09%19
2022-09-132022-09-23$292.13$275.33-5.39%9
2022-08-152022-08-19$309.32$296.670.75%5
2022-07-112022-08-12$234.34$300.0314.07%25
2022-04-142022-04-18$328.33$334.76-3.85%2
2022-03-212022-04-11$307.05$325.3113.04%16
2022-01-132022-01-14$343.85$349.87-6.94%2
2021-12-282022-01-12$362.82$368.74-2.90%12
2021-11-222021-11-23$385.62$369.681.54%2
2021-11-172021-11-18$363.00$365.463.05%2
2021-10-132021-11-11$270.36$354.5032.28%22
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-09-282021-10-07$259.19$264.54-1.29%8
2021-08-312021-09-21$245.24$246.46-0.30%15
2021-08-022021-08-17$236.56$221.90-0.35%12
2021-07-132021-07-15$222.85$216.87-4.91%3
2021-06-242021-07-12$226.61$228.57-0.14%12
2021-04-062021-04-29$230.54$225.670.28%18
2021-02-022021-02-03$290.93$284.903.72%2
2021-01-262021-01-27$294.36$288.050.06%2
2021-01-052021-01-25$245.04$293.6015.78%14
2020-12-312021-01-04$235.22$243.261.37%2
2020-12-282020-12-29$221.23$222.000.09%2
2020-12-182020-12-23$231.67$215.33-2.56%4
2020-11-182020-12-17$162.21$218.6340.75%21
2020-11-092020-11-11$140.42$139.04-4.75%3
2020-10-142020-10-20$153.77$140.65-3.73%5
2020-10-082020-10-09$141.97$144.67-0.05%2
2020-09-152020-09-16$149.92$147.256.98%2
2020-09-102020-09-11$123.78$124.241.18%2
2020-08-182020-09-08$125.81$110.0713.72%15
2020-07-282020-07-29$98.43$99.94-4.29%2
2020-07-012020-07-27$74.64$102.6430.97%18
2020-06-262020-06-29$63.98$67.29-2.86%2
2020-06-022020-06-25$58.77$65.736.77%18
2020-04-142020-05-14$47.33$53.5621.28%23
2020-03-032020-03-04$49.70$49.970.05%2
2019-12-162020-02-26$25.43$51.92122.76%49
2019-10-112019-11-21$16.53$23.6643.63%30
2019-10-022019-10-04$16.21$15.43-4.96%3
2019-09-112019-09-25$16.47$15.25-5.42%11
2019-07-012019-07-26$15.14$15.202.20%19
2019-03-012019-03-05$19.65$18.44-10.98%3
2019-01-112019-01-22$23.15$19.93-12.56%7
2018-12-112018-12-18$24.45$22.47-4.77%6
2018-10-242018-11-21$19.23$22.5517.90%21
2018-08-032018-08-20$23.21$20.56-12.77%12
2018-06-272018-06-28$22.97$23.330.53%2
2018-05-312018-06-26$18.98$22.8013.92%19
2018-05-102018-05-17$20.33$18.97-6.83%6
2018-03-142018-03-15$21.78$21.71-4.64%2
2018-02-232018-03-06$23.47$21.88-3.89%8
2018-01-092018-02-05$22.25$22.211.98%19
2017-12-122017-12-27$22.74$20.78-3.72%11
2017-10-122017-10-23$23.71$22.47-2.87%8
2017-09-122017-09-25$24.18$23.00-3.66%10
2017-08-042017-08-22$23.79$22.76-2.85%13
2017-07-252017-08-02$22.64$21.73-6.89%7
2017-05-312017-06-27$22.73$24.1612.43%20
2017-05-152017-05-16$21.06$21.13-2.95%2
2017-05-022017-05-04$21.26$19.70-3.85%3
2017-03-172017-04-21$17.43$20.3715.21%25
2017-02-102017-02-22$17.95$18.232.84%8