Strategy Zoo / S1136

LongTermTrend_V1136

ARCHIVEDhybrid

llm1) Added regime gates: only UPTREND, LOW/MEDIUM volatility and NORMAL bubble to reduce exposure in unfavorable market regimes. 2) Tightened entry MACD requirement to >0 (removes deep negative-hist entries) and added vol_pctile < 0.80 as an entry filter to avoid extreme volatility entry spikes. 3) Replaced single MACD exit with a safer OR exit: exit on macd_hist < 0 OR vol_pctile > 0.95 to cut losses on volatility shocks. 4) Introduced volatility-based position sizing (smaller allocations when vol_20 or vol_pctile are high) and reduced base_position from 1.0 to 0.8 to lower max drawdown risk while keeping participation in favorable regimes.

Fitness
0.1379
Generation
52
Complexity
33
Created
2026-10-03

Lineage

Parents (1)
LongTermTrend_V1037S1037 · gen 47ARCHIVEDllm

changed cumret_252d threshold -0.1997 -> 0.2692

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1136  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
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.2692 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 > 0.0 and vol_pctile < 0.8):
    position = 0.8
if long and (macd_hist < 0.0 or vol_pctile > 0.95):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.5%-0.8%3.3%0.9%
Total Return3.8%-2.3%13.1%14.7%
Sharpe0.100.010.320.14
Sortino0.040.010.130.06
Calmar0.03-0.030.220.04
Volatility9.3%13.8%12.9%11.3%
Max DD-14.0%-26.7%-15.0%-26.7%
Win Rate37.9%18.2%43.8%35.7%
Avg Win5.0%14.5%7.0%6.6%
Avg Loss-2.7%-3.1%-3.7%-3.1%
Payoff1.874.621.862.17
Expectancy0.2%0.1%0.9%0.4%
Profit Factor1.141.031.451.21
Trades29111656
Avg Holding Days6.37.45.36.2
Turnover5.85.96.96.1
Exposure6.1%7.4%5.9%6.3%

Growth of $100

LongTermTrend_V1136 vs TSLA Buy & Hold
LongTermTrend_V1136 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
20161.7%0.29-5.3%3
20178.7%1.17-4.3%5
2018-6.3%-1.20-6.3%2
20193.7%0.72-1.2%2
20200.0%0.000.0%0
202112.0%0.69-16.0%5
2022-21.3%-2.48-21.2%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 testDOWNTREND2770.0%0.000%
hidden testEXPENSIVE8334.0%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-13.8%-1.091%
hidden testLOW VOLATILITY4369.3%0.808%
hidden testMEDIUM VOLATILITY25113.2%0.888%
hidden testNORMAL8101.3%0.107%
hidden testSIDEWAYS293-18.7%-1.992%
hidden testUPTREND37125.2%1.3514%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3119.4%1.691%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.8%0.480%
trainLOW VOLATILITY7456.2%0.6214%
trainMEDIUM VOLATILITY568-9.7%-1.014%
trainNORMAL1,601-0.7%-0.077%
trainSIDEWAYS592-3.3%-1.051%
trainUPTREND9024.1%0.3013%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2581.0%0.071%
validationLOW VOLATILITY183-3.9%-0.3420%
validationMEDIUM VOLATILITY3151.8%0.126%
validationNORMAL4740.3%0.0212%
validationSIDEWAYS206-14.9%-1.901%
validationUPTREND4257.5%0.4313%

Trades (full period)

56 trades
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-292026-06-01$435.79$415.88-1.30%2
2025-12-042025-12-30$454.53$454.432.22%18
2025-09-122025-09-15$395.94$410.045.72%2
2025-07-292025-08-01$321.20$302.63-4.42%4
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-06-022025-06-03$342.69$344.27-1.03%2
2025-05-222025-05-28$341.04$356.906.58%4
2024-10-032024-10-04$240.66$250.08-2.84%2
2024-09-232024-09-27$250.00$260.465.19%5
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-022024-07-12$231.26$248.2311.75%8
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-07-062023-07-07$276.54$274.43-1.84%2
2023-06-022023-06-27$213.97$250.2112.72%17
2022-09-152022-09-23$303.75$275.33-3.86%7
2022-09-132022-09-14$292.13$302.61-3.39%2
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-052022-08-08$288.17$290.42-5.46%2
2022-04-052022-04-11$363.75$325.31-8.58%5
2021-12-282022-01-04$362.82$383.207.63%6
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-282021-10-07$259.19$264.54-1.03%8
2021-08-312021-09-21$245.24$246.46-0.21%15
2021-08-052021-08-17$238.21$221.90-2.92%9
2019-12-162019-12-17$25.43$25.274.99%2
2019-10-212019-10-22$16.90$17.04-1.23%2
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-02-012018-02-05$23.28$22.21-2.54%3
2017-10-132017-10-23$23.70$22.47-2.53%7
2017-03-242017-03-28$17.54$18.504.67%3
2017-03-202017-03-23$17.46$16.99-2.13%4
2017-01-312017-02-02$16.80$16.77-0.60%3
2017-01-052017-01-25$15.12$16.969.47%14
2016-07-262016-08-09$15.30$15.27-1.49%11
2016-06-082016-06-09$15.70$15.290.93%2
2016-04-052016-04-14$17.03$16.792.32%8
2015-07-212015-07-22$17.78$17.86-4.55%2
2015-06-222015-07-09$17.32$17.19-2.40%13
2015-05-112015-05-22$15.97$16.522.88%10
2015-04-292015-05-01$15.50$15.07-1.69%3
2014-10-082014-10-13$17.29$14.97-7.15%4
2014-09-022014-09-12$18.94$18.613.01%9
2014-07-312014-08-25$14.89$17.509.51%18
2014-06-232014-07-07$15.81$14.84-0.24%10
2013-03-272013-04-02$2.54$2.9612.65%4
2013-03-082013-03-18$2.56$2.34-6.31%7
2013-02-122013-02-14$2.53$2.55-0.10%3
2013-01-232013-01-24$2.40$2.471.68%2
2012-11-232012-12-14$2.14$2.252.68%16
2012-03-282012-04-05$2.52$2.30-6.33%7
2012-03-142012-03-16$2.35$2.35-2.58%3
2012-02-232012-02-29$2.30$2.23-1.11%5
2012-02-212012-02-22$2.30$2.28-1.23%2