Strategy Zoo / S1227

LongTermTrend_V1227

ARCHIVEDhybrid

parameterchanged macd_hist threshold 0.0 -> -2.4704

Fitness
0.6327
Generation
56
Complexity
23
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V1176S1176 · gen 54ARCHIVEDparameter

entry from LongTermTrend_V0959, exit from PriceMomentum_V1021

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1227  [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.0541) or ((macd_hist > -2.4704 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)))):
    position = 1.0
if long and ret_20d < -0.0017:
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR14.9%117.4%5.7%28.4%
Total Return203.1%927.0%23.2%3848.7%
Sharpe0.571.750.340.82
Sortino0.631.970.380.91
Calmar0.213.480.120.40
Volatility35.6%52.2%39.2%40.4%
Max DD-70.6%-33.7%-49.2%-70.6%
Win Rate29.7%46.9%30.4%32.5%
Avg Win12.6%28.8%12.1%18.1%
Avg Loss-3.3%-5.0%-3.9%-3.7%
Payoff3.855.793.114.93
Expectancy1.4%10.8%1.0%3.4%
Profit Factor1.625.111.352.38
Trades1183256206
Avg Holding Days9.714.89.510.7
Turnover29.721.330.228.0
Exposure53.7%58.6%50.7%54.0%

Growth of $100

LongTermTrend_V1227 vs TSLA Buy & Hold
LongTermTrend_V1227 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
201616.9%0.92-20.2%8
2017-0.1%0.14-33.1%22
2018-38.8%-1.44-45.2%21
201934.0%0.97-28.9%10
2020454.4%2.64-33.7%15
202196.4%2.00-17.6%9
2022-9.5%-0.17-22.2%8

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 testDOWNTREND278-2.8%-0.1029%
hidden testEXPENSIVE8397.5%1.8181%
hidden testEXTREME48163.4%2.8771%
hidden testHIGH VOLATILITY254-4.2%-0.0855%
hidden testLOW VOLATILITY43966.1%2.3748%
hidden testMEDIUM VOLATILITY250-61.8%-1.5152%
hidden testNORMAL812-4.2%-0.1246%
hidden testSIDEWAYS294-22.5%-0.5956%
hidden testUPTREND37153.5%1.1462%
trainDOWNTREND518-10.9%-0.5823%
trainEXPENSIVE31145.1%1.0581%
trainEXTREME100407.4%5.5199%
trainHIGH VOLATILITY69938.8%0.8546%
trainLOW VOLATILITY74538.8%1.4963%
trainMEDIUM VOLATILITY568-27.3%-0.8550%
trainNORMAL1,601-8.9%-0.3046%
trainSIDEWAYS592-7.0%-0.2446%
trainUPTREND90255.8%1.2376%
validationDOWNTREND12531.6%1.3313%
validationEXPENSIVE13861.1%1.0667%
validationEXTREME144332.0%3.8696%
validationHIGH VOLATILITY25881.8%1.1654%
validationLOW VOLATILITY18351.5%1.8868%
validationMEDIUM VOLATILITY315122.3%2.7057%
validationNORMAL47427.0%0.8345%
validationSIDEWAYS2068.9%0.2745%
validationUPTREND425148.8%2.3179%

Trades (full period)

latest 100 of 207
EntryExitEntry PxExit PxReturnDays
2026-10-05—$378.73—2.62%2OPEN
2026-10-012026-10-02$354.11$370.59-0.40%2
2026-08-242026-09-30$348.95$354.81-2.96%27
2026-07-072026-07-09$402.90$406.55-6.32%3
2026-06-302026-07-06$420.60$419.77-4.65%4
2026-06-232026-06-24$381.61$375.53-5.98%2
2026-05-042026-06-08$392.51$408.95-0.15%25
2026-04-202026-04-24$392.50$376.30-6.90%5
2026-04-162026-04-17$388.90$400.62-0.98%2
2026-01-232026-01-26$449.06$435.20-0.27%2
2025-12-082026-01-05$439.58$451.67-3.92%19
2025-12-042025-12-05$454.53$455.001.54%2
2025-10-282025-11-13$460.55$401.99-5.01%13
2025-10-242025-10-27$433.72$452.42-3.60%2
2025-08-212025-10-23$320.11$448.9835.25%45
2025-08-082025-08-20$329.65$323.901.98%9
2025-07-292025-08-01$321.20$302.63-5.51%4
2025-07-242025-07-25$305.30$316.06-8.39%2
2025-07-212025-07-23$328.49$332.560.54%3
2025-07-012025-07-02$300.71$315.65-5.53%2
2025-06-272025-06-30$323.63$317.66-0.86%2
2025-06-242025-06-26$340.47$325.78-6.25%3
2025-05-052025-06-12$280.26$319.1113.43%28
2025-04-282025-05-02$285.88$287.21-1.75%5
2025-04-102025-04-22$252.40$237.97-16.60%8
2025-01-242025-01-27$406.58$397.15-1.60%2
2025-01-222025-01-23$415.11$412.38-2.31%2
2024-11-052025-01-13$251.44$403.3162.23%46
2024-10-252024-11-04$269.19$242.84-4.60%7
2024-09-062024-10-14$210.73$219.16-5.57%27
2024-08-262024-08-27$213.21$209.21-3.42%2
2024-08-222024-08-23$210.66$220.32-5.84%2
2024-08-202024-08-21$221.10$223.27-0.93%2
2024-08-162024-08-19$216.12$222.720.72%2
2024-06-242024-08-02$182.58$207.6718.26%29
2024-06-132024-06-21$182.47$183.012.21%6
2024-06-072024-06-12$177.48$177.29-4.28%4
2024-06-052024-06-06$175.00$177.94-0.07%2
2024-06-032024-06-04$176.29$174.77-1.20%2
2024-05-302024-05-31$178.79$178.081.27%2
2024-05-142024-05-29$177.55$176.192.63%11
2024-04-302024-05-10$183.28$168.47-11.56%9
2024-01-082024-01-09$240.45$234.961.05%2
2023-11-162024-01-05$233.59$237.49-2.22%34
2023-10-172023-10-18$254.85$242.680.17%2
2023-10-132023-10-16$251.12$253.92-3.19%2
2023-10-112023-10-12$262.99$258.87-0.44%2
2023-10-052023-10-10$260.05$263.62-0.77%4
2023-10-032023-10-04$246.53$261.16-2.21%2
2023-09-062023-09-28$251.92$246.38-6.42%17
2023-08-302023-09-01$256.90$245.010.15%3
2023-05-222023-07-24$188.87$269.0644.06%43
2023-03-302023-04-13$195.28$185.90-7.07%10
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-03-212023-03-23$197.58$192.224.11%3
2023-01-272023-03-08$177.90$182.0016.90%28
2022-09-152022-09-23$303.75$275.33-4.82%7
2022-09-092022-09-14$299.68$302.610.79%4
2022-07-142022-08-29$238.31$284.8221.29%33
2022-07-112022-07-12$234.34$233.07-6.74%2
2022-06-242022-06-29$245.71$228.49-1.22%4
2022-03-212022-04-21$307.05$336.267.72%23
2022-01-122022-01-24$368.74$310.00-11.49%8
2022-01-042022-01-07$383.20$342.32-11.44%4
2021-12-302021-12-31$356.78$352.26-1.66%2
2021-12-272021-12-29$364.65$362.061.81%3
2021-07-302021-12-01$229.07$365.0068.67%87
2021-07-282021-07-29$215.66$225.780.14%2
2021-07-262021-07-27$219.21$214.932.01%2
2021-06-142021-07-23$205.90$214.466.24%29
2021-04-142021-05-04$244.08$224.53-10.34%15
2021-04-052021-04-08$230.35$227.931.19%4
2020-11-182021-02-09$162.21$283.1595.14%56
2020-11-062020-11-09$143.32$140.42-2.06%2
2020-11-042020-11-05$140.33$146.03-0.89%2
2020-10-282020-10-29$135.34$136.94-4.59%2
2020-10-222020-10-27$141.93$141.56-0.76%4
2020-10-202020-10-21$140.65$140.88-2.26%2
2020-10-152020-10-19$149.63$143.61-4.88%3
2020-10-012020-10-14$149.39$153.773.91%10
2020-09-292020-09-30$139.69$143.00-0.71%2
2020-09-252020-09-28$135.78$140.404.84%2
2020-08-132020-09-24$108.07$129.2622.08%30
2020-08-112020-08-12$91.63$103.65-3.31%2
2020-04-142020-08-10$47.33$94.57122.74%83
2020-03-092020-03-10$40.53$43.02-13.76%2
2020-03-052020-03-06$48.30$46.90-3.53%2
2019-10-112020-03-04$16.53$49.97204.01%99
2019-09-112019-10-10$16.47$16.323.61%22
2019-08-142019-08-15$14.64$14.38-6.74%2
2019-08-092019-08-12$15.67$15.27-1.58%2
2019-08-072019-08-08$15.56$15.890.96%2
2019-08-052019-08-06$15.22$15.38-2.77%2
2019-07-012019-08-02$15.14$15.624.44%24
2019-03-012019-03-04$19.65$19.02-8.04%2
2019-01-182019-01-22$20.15$19.93-13.16%2
2019-01-162019-01-17$23.07$23.150.27%2
2019-01-112019-01-14$23.15$22.290.46%2
2018-12-202018-12-21$21.03$21.32-5.48%2