Strategy Zoo / S1391

LongTermTrend_V1391

ARCHIVEDhybrid

llmAdded regime gates to restrict to uptrends and low/medium volatility; added volatility-spike veto (not vol_chg > 0.35) to avoid entries into sudden vol bursts; required short/medium trend alignment (sma_50>sma_200 OR positive sma_200_slope); strengthened exit logic to include price falling below sma_50 and a drawdown-based bail (drawdown > 12%); reduced base position to 0.8 to lower risk.

Fitness
0.3497
Generation
64
Complexity
35
Created
2026-10-09

Lineage

Parents (1)
LongTermTrend_V1083S1083 · gen 49ELITEllm

swapped indicator ret_20d -> cumret_252d; removed entry condition: rsi_14 > 34.4934

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1391  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and (((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and cumret_252d > 1.1509 and cumret_252d > -0.1997 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 not vol_chg > 0.35 and (sma_50 > sma_200 or sma_200_slope > 0.0)):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR2.3%27.3%-6.2%4.8%
Total Return19.8%106.3%-21.4%98.7%
Sharpe0.231.17-0.380.36
Sortino0.141.10-0.230.26
Calmar0.101.39-0.220.12
Volatility14.8%22.9%14.4%16.7%
Max DD-22.7%-19.7%-28.0%-41.1%
Win Rate31.1%47.6%25.0%35.4%
Avg Win6.5%6.6%6.1%7.0%
Avg Loss-2.6%-2.2%-3.2%-2.6%
Payoff2.512.981.912.66
Expectancy0.2%2.0%-0.9%0.8%
Profit Factor1.142.710.641.46
Trades614224127
Avg Holding Days6.35.67.16.3
Turnover12.322.410.213.8
Exposure13.4%20.4%12.4%14.6%

Growth of $100

LongTermTrend_V1391 vs TSLA Buy & Hold
LongTermTrend_V1391 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
20167.3%1.12-3.5%1
20178.1%0.61-14.3%13
2018-1.9%-0.24-6.2%2
20195.9%0.62-6.4%1
202089.4%2.46-8.4%14
20217.7%0.42-19.7%23
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 testDOWNTREND278-1.1%-0.401%
hidden testEXPENSIVE8335.6%1.5621%
hidden testEXTREME485.3%0.2410%
hidden testHIGH VOLATILITY2542.2%0.211%
hidden testLOW VOLATILITY44110.5%0.6819%
hidden testMEDIUM VOLATILITY250-41.1%-2.6312%
hidden testNORMAL814-10.2%-0.8212%
hidden testSIDEWAYS296-26.1%-1.5921%
hidden testUPTREND3717.9%0.4514%
trainDOWNTREND518-6.7%-1.003%
trainEXPENSIVE31122.9%1.0122%
trainEXTREME10035.6%1.8620%
trainHIGH VOLATILITY6992.0%0.151%
trainLOW VOLATILITY74514.8%1.0224%
trainMEDIUM VOLATILITY568-10.1%-0.6015%
trainNORMAL1,601-2.4%-0.2011%
trainSIDEWAYS592-1.1%-0.0912%
trainUPTREND90212.1%0.6420%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13825.3%0.9032%
validationEXTREME144116.3%4.0117%
validationHIGH VOLATILITY25819.0%1.072%
validationLOW VOLATILITY1835.6%0.3531%
validationMEDIUM VOLATILITY31545.4%1.5630%
validationNORMAL474-0.1%-0.0018%
validationSIDEWAYS206-5.1%-0.3117%
validationUPTREND42550.0%1.7728%

Trades (full period)

latest 100 of 127
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-282026-06-02$442.10$423.74-4.61%4
2026-05-042026-05-21$392.51$417.855.30%14
2026-04-212026-04-22$386.42$387.51-1.40%2
2025-12-042025-12-30$454.53$454.432.22%18
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-09-092025-10-06$346.97$453.2518.86%20
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-082025-08-22$329.65$340.01-0.67%11
2025-07-212025-07-25$328.49$316.06-6.05%5
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-132024-12-23$436.23$430.600.53%7
2024-09-252024-10-04$257.02$250.08-4.43%8
2024-09-162024-09-20$226.78$238.254.58%5
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-222023-11-24$234.21$235.45-2.48%2
2023-10-062023-10-17$260.53$254.85-2.03%8
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-09-062023-09-07$251.92$251.49-1.58%2
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-262023-06-27$241.05$250.21-5.00%2
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-12-282022-01-03$362.82$399.93-2.88%5
2021-11-232021-11-24$369.68$372.00-3.47%2
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-032021-08-17$236.58$221.90-2.79%11
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-282021-07-12$229.57$228.57-1.92%10
2021-06-222021-06-23$207.90$218.860.21%2
2021-06-182021-06-21$207.77$206.940.71%2
2021-06-152021-06-16$199.79$201.62-2.53%2
2021-06-112021-06-14$203.30$205.90-0.19%2
2021-06-022021-06-03$201.71$190.95-2.57%2
2021-05-282021-06-01$208.41$207.97-0.87%2
2021-04-162021-04-29$246.59$225.67-4.95%10
2021-04-122021-04-13$233.99$254.112.79%2
2021-04-082021-04-09$227.93$225.671.37%2
2021-02-082021-02-09$287.81$283.150.89%2
2021-02-042021-02-05$283.33$284.08-0.60%2
2021-02-022021-02-03$290.93$284.902.98%2
2021-01-282021-01-29$278.48$264.51-2.82%2
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-062021-01-25$251.99$293.6011.99%13
2020-12-312021-01-04$235.22$243.261.09%2
2020-12-292020-12-30$222.00$231.590.12%2
2020-12-242020-12-28$220.59$221.231.79%2
2020-12-182020-12-23$231.67$215.33-1.99%4
2020-11-252020-12-17$191.33$218.639.61%16
2020-11-062020-11-10$143.32$136.79-3.24%3
2020-10-132020-10-20$148.88$140.65-2.21%6
2020-08-312020-09-01$166.11$158.359.89%2
2020-08-262020-08-27$143.54$149.254.97%2
2020-07-022020-07-06$80.58$91.446.20%2
2020-06-262020-06-29$63.98$67.29-2.29%2
2020-06-042020-06-25$57.63$65.737.02%16
2020-05-292020-06-01$55.67$59.872.74%2
2020-05-272020-05-28$54.68$53.72-0.03%2
2019-12-162020-01-31$25.43$43.3759.48%32
2019-03-012019-03-04$19.65$19.02-6.43%2
2018-12-112018-12-18$24.45$22.47-3.81%6
2018-01-112018-02-05$22.53$22.212.00%17
2017-12-142017-12-27$22.53$20.78-5.30%9
2017-10-182017-10-20$23.98$23.01-1.04%3
2017-10-132017-10-17$23.70$23.72-1.30%3
2017-09-142017-09-25$25.18$23.00-3.44%8
2017-08-152017-08-18$24.16$23.16-2.77%4
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-032017-05-04$20.73$19.70-2.13%2
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-242017-04-04$17.54$20.2513.40%8
2017-03-212017-03-22$16.71$17.00-3.59%2
2017-02-162017-02-22$17.93$18.23-0.82%4
2016-12-152017-02-02$13.17$16.7719.78%33
2016-07-252016-08-09$15.33$15.271.26%12
2015-12-212016-01-05$15.50$14.90-2.56%10
2015-12-042015-12-14$15.36$14.57-5.56%7
2015-09-232015-09-29$17.40$16.44-3.99%5
2015-06-252015-07-09$17.92$17.19-3.19%10
2015-05-132015-05-22$16.21$16.520.13%8
2015-02-232015-02-24$13.82$13.61-3.76%2
2014-11-252014-12-01$16.54$15.44-0.87%4
2014-11-132014-11-24$16.78$16.45-2.16%8
2014-10-082014-10-10$17.29$15.79-0.95%3
2014-09-092014-09-12$18.57$18.61-0.67%4
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-062014-06-11$13.88$13.63-1.94%4
2014-06-042014-06-05$13.60$13.79-0.53%2
2014-05-272014-06-03$14.10$13.66-1.16%6
2014-05-222014-05-23$13.66$13.822.02%2