Strategy Zoo / S0437

LongTermTrend_V0437

ARCHIVEDhybrid

llm1) Added regime gates: only enter in UPTREND, medium volatility, and normal bubble to reduce regime overfitting. 2) Reworked entry: require momentum confirmation (macd_hist>0) and avoid overbought (rsi_14<70); use sma_50 cross + positive sma_50_slope or 20d return breakout for more robust trend signal. 3) Improved exit: multi-condition exit (negative 20d return OR price crossing below sma_50 OR drawdown>10%) to cut losses earlier. 4) Introduced volatility-based position sizing via vol_pctile to reduce size in higher-volatility regimes and set base_position to 0.8 to temper leverage.

Fitness
0.6059
Generation
20
Complexity
13
Created
2026-09-19

Lineage

Parents (1)
LongTermTrend_V0323S0323 · gen 15ARCHIVEDllm

changed ret_20d threshold 0.05 -> 0.1

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0437  [hybrid]
if flat and (((close > sma_50 and sma_50_slope > 0.0) or ret_20d > 0.05) and cumret_252d > -0.1997 and macd_hist > 0.0 and rsi_14 < 70.0):
    position = 0.8
if long and (ret_20d < 0.0 or close < sma_50 or drawdown > 0.1):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR16.8%77.7%2.7%23.4%
Total Return246.1%461.2%10.2%2090.5%
Sharpe0.731.680.230.86
Sortino0.771.750.220.87
Calmar0.312.720.070.44
Volatility25.9%38.7%28.1%29.5%
Max DD-53.5%-28.5%-37.2%-53.5%
Win Rate32.9%50.0%37.5%37.3%
Avg Win12.1%22.2%7.2%14.3%
Avg Loss-3.0%-4.0%-3.4%-3.3%
Payoff4.025.572.144.40
Expectancy2.0%9.1%0.6%3.3%
Profit Factor1.975.571.282.62
Trades762648150
Avg Holding Days11.815.78.311.7
Turnover15.313.921.016.4
Exposure34.9%40.4%30.8%35.0%

Growth of $100

LongTermTrend_V0437 vs TSLA Buy & Hold
LongTermTrend_V0437 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
201621.9%1.50-10.7%5
20172.3%0.21-22.8%14
2018-16.2%-0.70-26.1%11
20197.8%0.42-28.6%7
2020247.8%2.52-28.5%5
202156.6%1.70-14.2%11
2022-0.3%0.10-14.3%10

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-17.3%-0.9416%
hidden testEXPENSIVE8377.8%1.8659%
hidden testEXTREME48147.1%3.2753%
hidden testHIGH VOLATILITY254-19.3%-0.5232%
hidden testLOW VOLATILITY42948.9%2.3630%
hidden testMEDIUM VOLATILITY248-40.2%-1.4231%
hidden testNORMAL800-9.2%-0.3727%
hidden testSIDEWAYS293-16.5%-0.7426%
hidden testUPTREND37141.9%1.1445%
trainDOWNTREND518-10.4%-0.919%
trainEXPENSIVE31148.4%1.5458%
trainEXTREME100307.5%5.3075%
trainHIGH VOLATILITY69948.2%1.4432%
trainLOW VOLATILITY74522.3%1.1743%
trainMEDIUM VOLATILITY568-21.9%-0.9828%
trainNORMAL1,601-4.9%-0.2428%
trainSIDEWAYS592-3.6%-0.1927%
trainUPTREND90250.3%1.4755%
validationDOWNTREND12541.9%2.568%
validationEXPENSIVE13849.6%1.1543%
validationEXTREME144229.8%3.6267%
validationHIGH VOLATILITY25852.2%1.0233%
validationLOW VOLATILITY18333.0%1.6448%
validationMEDIUM VOLATILITY31594.1%2.7042%
validationNORMAL47419.4%0.8032%
validationSIDEWAYS2063.4%0.1430%
validationUPTREND425101.6%2.1255%

Trades (full period)

latest 100 of 151
EntryExitEntry PxExit PxReturnDays
2026-09-09—$367.81—-0.50%8OPEN
2026-09-032026-09-08$376.37$368.16-0.76%3
2026-08-312026-09-02$367.95$357.011.55%3
2026-08-272026-08-28$354.81$348.751.92%2
2026-08-252026-08-26$350.25$345.820.14%2
2026-08-212026-08-24$362.86$348.953.95%2
2026-07-132026-07-14$394.76$396.18-2.71%2
2026-07-072026-07-08$402.90$394.06-3.37%2
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-042026-06-08$392.51$408.950.03%25
2026-04-292026-04-30$372.80$381.63-0.84%2
2026-04-202026-04-22$392.50$387.51-3.00%3
2025-12-112026-01-05$446.89$451.67-2.46%16
2025-12-082025-12-10$439.58$451.45-1.88%3
2025-12-042025-12-05$454.53$455.001.23%2
2025-11-042025-11-13$444.26$401.99-6.59%8
2025-08-252025-10-23$346.60$448.9822.85%43
2025-08-112025-08-20$339.03$323.90-0.23%8
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-242025-07-25$305.30$316.06-6.71%2
2025-07-212025-07-23$328.49$332.560.44%3
2025-06-252025-06-26$327.55$325.78-3.19%2
2025-05-052025-06-06$280.26$295.14-0.49%24
2025-04-292025-05-02$292.03$287.21-1.65%4
2025-04-152025-04-16$254.11$241.550.40%2
2025-04-102025-04-11$252.40$252.31-5.97%2
2025-04-082025-04-09$221.86$272.20-4.08%2
2024-11-052025-01-13$251.44$403.3148.43%46
2024-10-252024-11-04$269.19$242.84-3.68%7
2024-09-102024-10-14$226.17$219.160.62%25
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-09-042024-09-05$219.41$230.173.18%2
2024-08-262024-08-27$213.21$209.21-2.74%2
2024-08-222024-08-23$210.66$220.32-4.67%2
2024-08-202024-08-21$221.10$223.27-0.74%2
2024-06-272024-08-02$197.42$207.678.63%26
2024-05-142024-05-29$177.55$176.192.17%11
2024-04-302024-05-10$183.28$168.47-9.32%9
2024-04-152024-04-16$161.48$157.11-4.63%2
2024-03-042024-03-05$188.14$180.74-5.88%2
2024-02-292024-03-01$201.88$202.64-0.22%2
2024-02-262024-02-27$199.40$199.732.93%2
2023-11-292024-01-05$244.14$237.49-2.93%26
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-09-122023-09-22$267.48$244.88-5.39%9
2023-05-242023-07-24$182.90$269.0631.11%41
2022-09-192022-09-23$309.07$275.33-4.04%5
2022-09-152022-09-16$303.75$303.350.14%2
2022-09-132022-09-14$292.13$302.61-3.39%2
2022-07-192022-08-29$245.53$284.8215.63%30
2022-07-142022-07-15$238.31$240.070.27%2
2022-06-242022-06-27$245.71$244.923.46%2
2022-06-222022-06-23$236.09$235.07-0.48%2
2022-03-222022-04-21$331.33$336.264.92%22
2022-01-132022-01-14$343.85$349.87-5.55%2
2022-01-042022-01-07$383.20$342.32-9.22%4
2021-12-302021-12-31$356.78$352.26-1.33%2
2021-12-282021-12-29$362.82$362.06-0.56%2
2021-08-022021-12-01$236.56$365.0051.10%86
2021-06-242021-07-23$226.61$214.46-0.99%21
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-30$244.08$236.48-9.14%13
2021-04-072021-04-08$223.66$227.93-2.55%2
2021-04-052021-04-06$230.35$230.543.38%2
2020-11-192021-02-09$166.42$283.1558.94%55
2020-11-092020-11-10$140.42$136.79-1.78%2
2020-10-142020-10-19$153.77$143.61-1.39%4
2020-09-032020-09-24$135.67$129.26-11.49%15
2020-04-142020-08-10$47.33$94.5792.26%83
2019-10-152020-03-04$17.19$49.97138.37%97
2019-10-022019-10-07$16.21$15.85-4.50%4
2019-09-112019-09-25$16.47$15.25-4.29%11
2019-04-042019-04-05$17.85$18.33-6.74%2
2019-02-282019-03-04$21.33$19.02-5.20%3
2019-01-182019-01-22$20.15$19.93-10.53%2
2019-01-162019-01-17$23.07$23.150.22%2
2019-01-112019-01-14$23.15$22.290.37%2
2018-10-292018-12-18$22.32$22.474.21%35
2018-10-042018-10-05$18.79$17.46-3.68%2
2018-08-032018-08-20$23.21$20.56-10.18%12
2018-06-072018-07-06$21.07$20.59-2.60%21
2018-05-012018-05-02$19.99$20.081.48%2
2018-04-272018-04-30$19.61$19.592.25%2
2018-03-142018-03-15$21.78$21.71-3.72%2
2018-03-052018-03-06$22.22$21.88-0.58%2
2018-02-232018-03-01$23.47$22.06-0.87%5
2018-01-182018-02-07$22.97$23.00-3.18%15
2018-01-092018-01-12$22.25$22.410.21%4
2017-12-122017-12-27$22.74$20.78-2.96%11
2017-10-182017-10-19$23.98$23.450.72%2
2017-10-162017-10-17$23.37$23.72-1.28%2
2017-10-122017-10-13$23.71$23.700.08%2
2017-09-182017-09-25$25.67$23.00-6.22%6
2017-08-042017-08-21$23.79$22.52-0.04%12
2017-07-272017-07-28$22.30$22.34-2.34%2