Strategy Zoo / S1074

LongTermTrend_V1074

ARCHIVEDhybrid

llmAdded a structural regime gate requiring UPTREND and non-high volatility; simplified/clarified entry into two clear modes (momentum above sma_200 with positive MACD hist, or breakout with volume and sma_50>200). Tightened exits to include macd_hist<0 and close crossing below sma_50 plus a -2% 20d stop. Introduced volatility-based position sizing (full size in low vol, reduced in high vol) and slightly lowered base position to reduce drawdown.

Fitness
0.4447
Generation
49
Complexity
16
Created
2026-10-02

Lineage

Parents (1)
LongTermTrend_V1061S1061 · gen 48ARCHIVEDllm

changed macd_hist threshold 0.0 -> 1.2086

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1074  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and (sma_200_slope > 0.0 and ((close > sma_200 and ret_20d > 0.04 and macd_hist > 0.0) or (breakout_50 == 1 and rel_volume > 1.2 and sma_50 > sma_200))):
    position = 0.8
if long and (ret_20d < -0.02 or macd_hist < 0.0 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR3.5%39.9%0.5%9.4%
Total Return31.8%173.8%1.7%275.5%
Sharpe0.321.550.100.65
Sortino0.191.400.060.44
Calmar0.172.580.040.39
Volatility13.6%23.4%12.3%15.8%
Max DD-20.7%-15.5%-11.7%-24.1%
Win Rate42.9%56.5%41.2%46.3%
Avg Win5.3%11.3%4.0%7.5%
Avg Loss-2.9%-3.1%-2.4%-2.8%
Payoff1.843.681.652.64
Expectancy0.6%5.0%0.2%1.9%
Profit Factor1.384.781.152.28
Trades42231782
Avg Holding Days7.48.87.58.0
Turnover8.512.37.38.9
Exposure11.1%19.0%9.4%12.3%

Growth of $100

LongTermTrend_V1074 vs TSLA Buy & Hold
LongTermTrend_V1074 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.2%-1.18-2.2%0
201714.2%1.00-11.2%11
2018-10.3%-1.39-11.0%5
20197.6%1.31-3.0%0
2020126.6%2.95-7.0%8
202119.2%0.84-15.5%12
20221.1%0.14-15.1%3

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 testDOWNTREND276-4.0%-1.671%
hidden testEXPENSIVE8348.5%2.2620%
hidden testEXTREME4823.7%0.9313%
hidden testHIGH VOLATILITY2542.4%0.401%
hidden testLOW VOLATILITY43612.5%0.8915%
hidden testMEDIUM VOLATILITY250-19.6%-1.448%
hidden testNORMAL809-5.0%-0.538%
hidden testSIDEWAYS293-11.8%-0.9017%
hidden testUPTREND37115.3%0.999%
trainDOWNTREND518-1.8%-1.030%
trainEXPENSIVE31116.0%0.7519%
trainEXTREME10030.0%1.5920%
trainHIGH VOLATILITY6994.1%0.301%
trainLOW VOLATILITY74512.0%0.9521%
trainMEDIUM VOLATILITY568-5.3%-0.3611%
trainNORMAL1,6010.5%0.059%
trainSIDEWAYS592-3.4%-0.2911%
trainUPTREND90213.0%0.7318%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13858.7%1.9228%
validationEXTREME144117.0%4.0317%
validationHIGH VOLATILITY25819.2%1.082%
validationLOW VOLATILITY18324.2%1.5430%
validationMEDIUM VOLATILITY31557.3%1.9027%
validationNORMAL4745.2%0.2917%
validationSIDEWAYS206-2.2%-0.1416%
validationUPTREND42565.6%2.2626%

Trades (full period)

82 trades
EntryExitEntry PxExit PxReturnDays
2026-05-282026-06-02$442.10$423.74-4.61%4
2026-05-082026-05-21$428.35$417.850.97%10
2026-04-202026-04-22$392.50$387.51-3.00%3
2025-12-152025-12-30$475.31$454.430.02%11
2025-09-082025-10-06$346.40$453.2517.65%21
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-05-192025-06-03$342.09$344.27-1.77%11
2025-05-122025-05-13$318.38$334.075.23%2
2024-12-112024-12-23$424.77$430.603.98%9
2023-12-182024-01-02$252.08$248.42-1.71%10
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-212023-11-24$241.20$235.45-0.62%3
2023-11-172023-11-20$234.30$235.600.08%2
2023-10-092023-10-10$259.67$263.62-0.42%2
2023-09-122023-09-22$267.48$244.88-5.39%9
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-042022-08-12$308.63$300.03-5.54%7
2022-03-222022-04-11$331.33$325.318.97%15
2021-10-132021-11-10$270.36$355.9821.37%21
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-272021-10-07$263.79$264.540.71%9
2021-09-012021-09-21$244.70$246.46-0.74%14
2021-08-032021-08-17$236.58$221.90-2.79%11
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-06-222021-06-23$207.90$218.860.21%2
2021-06-182021-06-21$207.77$206.940.71%2
2021-06-142021-06-15$205.90$199.790.86%2
2021-04-142021-04-29$244.08$225.67-7.29%12
2021-01-052021-01-25$245.04$293.6012.64%14
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-11-182020-12-17$162.21$218.6331.86%21
2020-10-152020-10-20$149.63$140.65-5.46%4
2020-08-312020-09-01$166.11$158.359.89%2
2020-08-262020-08-27$143.54$149.254.97%2
2020-07-012020-07-06$74.64$91.449.33%3
2020-06-032020-06-25$58.86$65.737.16%17
2019-12-172020-01-31$25.27$43.3751.65%31
2018-12-122018-12-18$24.44$22.47-4.14%5
2018-12-072018-12-10$23.86$24.34-1.28%2
2018-12-042018-12-06$23.98$24.200.11%2
2018-03-142018-03-15$21.78$21.71-3.72%2
2018-01-222018-02-05$23.44$22.21-1.57%11
2017-12-122017-12-27$22.74$20.78-2.96%11
2017-09-152017-09-25$25.32$23.00-5.79%7
2017-08-152017-08-18$24.16$23.16-2.77%4
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-052017-06-27$23.15$24.168.65%17
2017-05-152017-05-16$21.06$21.13-2.36%2
2017-05-022017-05-04$21.26$19.70-3.09%3
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-282017-04-04$18.50$20.258.17%6
2017-02-102017-02-22$17.95$18.232.29%8
2016-12-282017-02-02$14.65$16.7710.56%25
2015-09-222015-09-29$17.40$16.44-4.94%6
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-05-132015-05-22$16.21$16.520.13%8
2014-11-252014-12-01$16.54$15.44-0.87%4
2014-11-112014-11-24$16.74$16.450.16%10
2014-09-022014-09-12$18.94$18.613.01%9
2014-08-052014-08-25$15.90$17.505.95%15
2014-06-162014-07-07$14.97$14.848.69%15
2014-06-122014-06-13$13.57$13.76-0.53%2
2014-06-092014-06-11$13.69$13.63-2.42%3
2014-05-282014-06-03$14.02$13.66-2.76%5
2014-02-132014-02-26$13.31$16.8721.13%9
2014-01-062014-01-10$9.80$9.71-1.24%5
2013-09-202013-10-04$12.23$12.07-2.17%11
2013-09-092013-09-10$10.71$11.09-3.16%2
2013-07-022013-07-17$7.85$8.02-5.52%11
2013-04-302013-05-08$3.60$3.720.77%7
2013-03-272013-04-02$2.54$2.9612.65%4
2013-02-042013-02-14$2.52$2.550.17%9
2012-11-062012-12-14$2.08$2.255.24%28
2012-07-132012-07-20$2.28$2.12-1.12%6
2012-06-282012-07-03$2.09$2.04-4.07%4
2012-06-192012-06-25$2.14$2.214.76%5
2012-03-272012-04-05$2.53$2.30-5.25%8
2012-03-132012-03-16$2.41$2.35-2.40%4
2012-02-152012-02-29$2.24$2.231.39%10