Strategy Zoo / S0173

LongTermTrend_V0173

ARCHIVEDhybrid

structuralswapped indicator ret_20d -> ret_5d; changed sma_200_slope threshold 0.0 -> -0.0022

Fitness
0.6350
Generation
8
Complexity
9
Created
2026-09-18

Lineage

Parents (1)
LongTermTrend_V0140S0140 · gen 6ARCHIVEDstructural

added entry filter: cumret_252d > -0.1997

Children (5)
LongTermTrend_V0188S0188 · gen 9ARCHIVEDstructural
LongTermTrend_V0219S0219 · gen 10ARCHIVEDstructural
LongTermTrend_V0263S0263 · gen 12ARCHIVEDstructural
LongTermTrend_V0268S0268 · gen 13ARCHIVEDcrossover
LongTermTrend_V0274S0274 · gen 13ARCHIVEDstructural

Strategy Logic (pseudocode)

# LongTermTrend_V0173  [hybrid]
if flat and (((close > sma_200 and sma_200_slope > -0.0022) or ret_5d > 0.0029) and ret_20d > 0.05 and cumret_252d > -0.1997):
    position = 1.0
if long and ret_20d < -0.03:
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR20.2%102.7%12.5%31.8%
Total Return334.0%732.8%54.4%5645.5%
Sharpe0.701.630.510.91
Sortino0.771.810.490.96
Calmar0.333.040.270.52
Volatility34.5%51.4%34.9%38.7%
Max DD-61.4%-33.7%-45.7%-61.4%
Win Rate35.9%60.0%43.8%42.9%
Avg Win27.2%41.3%18.1%33.6%
Avg Loss-7.2%-10.2%-7.7%-7.7%
Payoff3.804.042.364.34
Expectancy5.2%20.7%3.6%10.0%
Profit Factor2.136.051.843.26
Trades39151670
Avg Holding Days25.730.024.027.3
Turnover9.910.08.99.6
Exposure51.6%57.5%41.7%50.4%

Growth of $100

LongTermTrend_V0173 vs TSLA Buy & Hold
LongTermTrend_V0173 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-2.7%-0.01-33.6%4
20172.7%0.23-28.8%5
2018-25.4%-0.82-34.5%6
201933.9%1.03-29.6%3
2020545.8%2.93-33.7%5
202156.8%1.37-24.8%5
2022-21.2%-0.57-27.0%5

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 testDOWNTREND267-34.4%-1.4326%
hidden testEXPENSIVE8387.2%1.8475%
hidden testEXTREME48195.3%3.4769%
hidden testHIGH VOLATILITY2549.4%0.2239%
hidden testLOW VOLATILITY42950.8%1.8541%
hidden testMEDIUM VOLATILITY248-30.4%-0.8145%
hidden testNORMAL8000.0%0.0037%
hidden testSIDEWAYS2937.5%0.2835%
hidden testUPTREND37163.6%1.4058%
trainDOWNTREND518-16.7%-0.8525%
trainEXPENSIVE31158.4%1.4875%
trainEXTREME100403.3%5.4797%
trainHIGH VOLATILITY69948.1%1.0845%
trainLOW VOLATILITY74532.4%1.2762%
trainMEDIUM VOLATILITY568-15.7%-0.5146%
trainNORMAL1,601-6.1%-0.2144%
trainSIDEWAYS592-12.8%-0.4445%
trainUPTREND90272.1%1.6672%
validationDOWNTREND12543.5%1.9914%
validationEXPENSIVE13856.4%1.0263%
validationEXTREME144347.4%4.1793%
validationHIGH VOLATILITY25899.1%1.4652%
validationLOW VOLATILITY18326.5%0.9763%
validationMEDIUM VOLATILITY315104.8%2.2759%
validationNORMAL47411.9%0.3545%
validationSIDEWAYS206-27.3%-0.7746%
validationUPTREND425149.7%2.3976%

Trades (full period)

71 trades
EntryExitEntry PxExit PxReturnDays
2026-08-21—$362.86—5.19%20OPEN
2026-07-132026-07-16$394.76$391.06-3.46%4
2026-05-042026-06-08$392.51$408.95-0.15%25
2026-04-202026-04-24$392.50$376.30-6.90%5
2025-12-152026-01-07$475.31$431.41-5.85%16
2025-08-112025-11-14$339.03$404.3521.70%69
2025-04-292025-06-13$292.03$325.3111.40%33
2025-04-152025-04-22$254.11$237.97-10.03%5
2024-11-072025-01-14$296.91$396.3639.51%45
2024-09-042024-10-14$219.41$219.163.22%29
2024-06-272024-08-02$197.42$207.6710.21%26
2024-04-302024-05-29$183.28$176.19-9.10%21
2024-04-152024-04-17$161.48$155.45-8.34%3
2024-02-292024-03-07$201.88$178.65-12.80%6
2023-11-172024-01-10$234.30$233.940.39%36
2023-09-122023-09-28$267.48$246.38-12.27%13
2023-05-242023-08-02$182.90$254.1140.25%48
2022-09-212022-09-26$300.80$276.01-11.00%4
2022-07-142022-08-29$238.31$284.8221.29%33
2022-06-222022-06-29$236.09$228.49-2.04%6
2022-03-222022-04-27$331.33$293.84-5.04%26
2022-01-042022-01-24$383.20$310.00-21.49%14
2021-08-042021-12-01$236.97$365.0060.97%84
2021-06-142021-07-26$205.90$219.215.28%30
2021-04-142021-05-11$244.08$205.73-17.65%20
2021-04-052021-04-12$230.35$233.992.11%6
2020-11-192021-02-11$166.42$270.5565.06%57
2020-10-222020-10-29$141.93$136.94-4.12%6
2020-10-072020-10-20$141.77$140.653.87%10
2020-08-142020-09-24$110.05$129.2617.09%29
2020-04-142020-08-10$47.33$94.57122.74%83
2019-09-122020-03-04$16.39$49.97201.10%120
2019-07-162019-08-12$16.83$15.27-7.48%20
2019-04-042019-04-05$17.85$18.33-8.43%2
2019-02-282019-03-04$21.33$19.02-6.52%3
2018-10-292018-12-19$22.32$22.201.65%36
2018-08-032018-08-31$23.21$20.11-13.45%21
2018-06-072018-07-06$21.07$20.59-3.43%21
2018-04-302018-05-04$19.59$19.61-3.47%5
2018-03-132018-03-19$22.79$20.90-7.18%5
2017-12-122018-02-09$22.74$20.69-4.35%41
2017-09-182017-09-29$25.67$22.74-10.76%10
2017-08-042017-09-07$23.79$23.37-0.93%24
2017-06-012017-07-06$22.69$20.59-4.27%25
2017-03-282017-05-24$18.50$20.6812.23%41
2016-12-142017-03-08$13.25$16.4625.20%57
2016-10-042016-10-17$14.09$12.93-8.23%10
2016-07-192016-08-23$15.02$14.99-1.66%26
2016-06-082016-06-23$15.70$13.09-15.52%12
2016-03-042016-05-04$13.40$14.8418.45%43
2015-11-192016-01-05$14.79$14.900.86%31
2015-11-092015-11-13$15.02$13.81-8.54%5
2015-09-212015-10-02$17.61$16.50-8.14%10
2015-08-062015-08-07$16.41$16.17-9.08%2
2015-04-082015-07-28$13.84$17.6524.24%78
2015-02-102015-03-03$14.42$13.30-9.45%15
2014-11-112014-12-02$16.74$15.43-4.44%15
2014-08-052014-09-16$15.90$17.386.22%30
2014-06-092014-07-17$13.69$14.364.11%28
2014-05-282014-06-04$14.02$13.60-3.32%6
2014-01-152014-03-26$10.94$14.2036.42%49
2013-12-132014-01-14$9.84$10.75-5.70%21
2013-07-012013-10-22$7.81$11.4460.46%80
2013-03-262013-06-26$2.52$7.05172.31%65
2013-01-242013-02-26$2.47$2.30-4.69%23
2012-11-062013-01-11$2.08$2.196.23%46
2012-10-032012-10-12$1.95$1.84-5.16%8
2012-09-182012-09-27$2.09$1.90-15.54%8
2012-08-242012-09-06$1.97$1.90-9.26%9
2012-06-192012-07-20$2.14$2.121.15%23
2012-02-022012-04-10$2.02$2.1611.85%47