Strategy Zoo / S1161
LongTermTrend_V1161
ARCHIVEDhybridllmAdded regime gates to avoid downdrafts, high volatility, and extreme bubble states; reduced base position from 1.0 to 0.6 to lower max drawdown risk; added a volatility-change filter (vol_chg < 0.25) to the primary entry branch to avoid entries during rising volatility; tightened the short-term entry ret_20d threshold to 0.03 for consistency; replaced the single ret_20d exit with a multi-condition exit (20d loss < -3% OR price crossing below sma_50 OR drawdown > 12%) to improve exits and limit large losses.
Fitness
0.1197
Generation
53
Complexity
31
Created
2026-10-06
Lineage
Parents (1)
entry from LongTermTrend_V0733, exit from PriceMomentum_V0690
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1161 [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
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.03 and cumret_252d > -0.0248 and dist_sma_50 > -0.0774 and vol_chg < 0.25) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 2.0784) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))):
position = 0.6
if long and (ret_20d < -0.03 or close < sma_50 or drawdown > 0.12):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 1.0% | -0.1% | -1.5% | 0.1% |
| Total Return | 8.2% | -0.4% | -5.4% | 1.9% |
| Sharpe | 0.14 | 0.06 | -0.03 | 0.08 |
| Sortino | 0.10 | 0.04 | -0.02 | 0.05 |
| Calmar | 0.04 | -0.01 | -0.06 | 0.00 |
| Volatility | 12.2% | 13.8% | 14.7% | 13.2% |
| Max DD | -22.8% | -22.9% | -22.7% | -28.2% |
| Win Rate | 45.7% | 25.0% | 28.1% | 36.2% |
| Avg Win | 3.3% | 7.7% | 6.7% | 4.7% |
| Avg Loss | -2.3% | -2.3% | -2.6% | -2.4% |
| Payoff | 1.41 | 3.38 | 2.55 | 1.94 |
| Expectancy | 0.2% | 0.2% | -0.0% | 0.2% |
| Profit Factor | 1.19 | 1.13 | 1.00 | 1.10 |
| Trades | 46 | 16 | 32 | 94 |
| Avg Holding Days | 10.7 | 11.8 | 7.7 | 9.8 |
| Turnover | 6.9 | 6.4 | 10.3 | 7.7 |
| Exposure | 13.3% | 13.7% | 13.6% | 13.4% |
Growth of $100
LongTermTrend_V1161 vs TSLA Buy & Hold
LongTermTrend_V1161 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
| Year | CAGR | Sharpe | Max DD | Trades |
|---|---|---|---|---|
| 2016 | -3.4% | -0.36 | -9.5% | 4 |
| 2017 | 12.7% | 2.01 | -3.3% | 8 |
| 2018 | -4.3% | -0.40 | -9.3% | 3 |
| 2019 | -1.5% | -0.01 | -14.9% | 5 |
| 2020 | 0.0% | 0.00 | 0.0% | 0 |
| 2021 | 8.5% | 0.54 | -16.1% | 10 |
| 2022 | -8.2% | -0.47 | -22.1% | 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
| Period | Regime | Days | Ann. Return | Sharpe | Exposure |
|---|---|---|---|---|---|
| hidden test | DOWNTREND | 278 | -2.1% | -1.37 | 0% |
| hidden test | EXPENSIVE | 83 | 25.7% | 2.44 | 1% |
| hidden test | EXTREME | 48 | 0.0% | 0.00 | 0% |
| hidden test | HIGH VOLATILITY | 254 | -15.0% | -1.12 | 1% |
| hidden test | LOW VOLATILITY | 438 | 14.8% | 1.04 | 21% |
| hidden test | MEDIUM VOLATILITY | 250 | -12.2% | -0.73 | 13% |
| hidden test | NORMAL | 811 | -3.1% | -0.20 | 16% |
| hidden test | SIDEWAYS | 293 | -24.1% | -1.41 | 21% |
| hidden test | UPTREND | 371 | 19.6% | 1.11 | 17% |
| train | DOWNTREND | 518 | -6.4% | -1.39 | 1% |
| train | EXPENSIVE | 311 | 8.2% | 1.90 | 1% |
| train | EXTREME | 100 | 0.0% | 0.00 | 0% |
| train | HIGH VOLATILITY | 699 | 2.4% | 0.22 | 1% |
| train | LOW VOLATILITY | 745 | 13.0% | 1.02 | 26% |
| train | MEDIUM VOLATILITY | 568 | -13.9% | -1.07 | 13% |
| train | NORMAL | 1,601 | 0.6% | 0.04 | 16% |
| train | SIDEWAYS | 592 | -6.5% | -0.51 | 15% |
| train | UPTREND | 902 | 11.8% | 0.82 | 20% |
| validation | DOWNTREND | 125 | 0.0% | 0.00 | 0% |
| validation | EXPENSIVE | 138 | 0.0% | 0.00 | 0% |
| validation | EXTREME | 144 | 0.0% | 0.00 | 0% |
| validation | HIGH VOLATILITY | 258 | -5.0% | -0.66 | 0% |
| validation | LOW VOLATILITY | 183 | 6.1% | 0.45 | 33% |
| validation | MEDIUM VOLATILITY | 315 | 2.5% | 0.14 | 13% |
| validation | NORMAL | 474 | 1.3% | 0.07 | 22% |
| validation | SIDEWAYS | 206 | -16.2% | -0.96 | 20% |
| validation | UPTREND | 425 | 9.3% | 0.65 | 15% |
Trades (full period)
94 trades
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-07-01 | 2026-07-06 | $425.30 | $419.77 | -3.97% | 3 | |
| 2026-05-08 | 2026-06-08 | $428.35 | $408.95 | -2.97% | 21 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.34% | 2 | |
| 2025-12-04 | 2026-01-05 | $454.53 | $451.67 | -1.16% | 21 | |
| 2025-08-25 | 2025-09-15 | $346.60 | $410.04 | 9.60% | 15 | |
| 2025-08-11 | 2025-08-21 | $339.03 | $320.11 | -1.14% | 9 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -0.93% | 2 | |
| 2025-07-24 | 2025-07-25 | $305.30 | $316.06 | -5.04% | 2 | |
| 2025-07-21 | 2025-07-23 | $328.49 | $332.56 | 0.33% | 3 | |
| 2025-06-02 | 2025-06-06 | $342.69 | $295.14 | -10.95% | 5 | |
| 2025-05-22 | 2025-05-28 | $341.04 | $356.90 | 4.92% | 4 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 3.93% | 2 | |
| 2024-09-23 | 2024-10-14 | $250.00 | $219.16 | -5.15% | 16 | |
| 2024-09-16 | 2024-09-20 | $226.78 | $238.25 | 3.45% | 5 | |
| 2024-09-06 | 2024-09-09 | $210.73 | $216.27 | -5.18% | 2 | |
| 2024-06-17 | 2024-07-12 | $187.44 | $248.23 | 20.27% | 18 | |
| 2024-05-29 | 2024-05-30 | $176.19 | $178.79 | -0.31% | 2 | |
| 2023-11-29 | 2024-01-10 | $244.14 | $233.94 | -2.87% | 29 | |
| 2023-11-27 | 2023-11-28 | $236.08 | $246.72 | 0.04% | 2 | |
| 2023-11-22 | 2023-11-24 | $234.21 | $235.45 | -1.86% | 2 | |
| 2023-11-20 | 2023-11-21 | $235.60 | $241.20 | 0.21% | 2 | |
| 2023-11-16 | 2023-11-17 | $233.59 | $234.30 | -2.40% | 2 | |
| 2023-10-13 | 2023-10-16 | $251.12 | $253.92 | -1.92% | 2 | |
| 2023-10-11 | 2023-10-12 | $262.99 | $258.87 | -0.26% | 2 | |
| 2023-10-05 | 2023-10-10 | $260.05 | $263.62 | -0.46% | 4 | |
| 2023-09-12 | 2023-09-22 | $267.48 | $244.88 | -4.05% | 9 | |
| 2023-09-06 | 2023-09-07 | $251.92 | $251.49 | -1.19% | 2 | |
| 2023-08-30 | 2023-09-05 | $256.90 | $256.49 | -2.95% | 4 | |
| 2023-05-31 | 2023-08-02 | $203.93 | $254.11 | 17.41% | 44 | |
| 2023-03-30 | 2023-04-06 | $195.28 | $185.06 | -2.62% | 6 | |
| 2023-03-28 | 2023-03-29 | $189.19 | $193.88 | -0.94% | 2 | |
| 2023-03-24 | 2023-03-27 | $190.41 | $191.81 | -0.68% | 2 | |
| 2022-09-15 | 2022-09-26 | $303.75 | $276.01 | -5.57% | 8 | |
| 2022-09-12 | 2022-09-14 | $304.42 | $302.61 | -1.61% | 3 | |
| 2022-08-02 | 2022-08-29 | $300.59 | $284.82 | -1.82% | 20 | |
| 2022-03-21 | 2022-04-27 | $307.05 | $293.84 | -1.49% | 27 | |
| 2022-01-12 | 2022-01-13 | $368.74 | $343.85 | 2.24% | 2 | |
| 2021-12-30 | 2022-01-03 | $356.78 | $399.93 | -1.75% | 3 | |
| 2021-12-28 | 2021-12-29 | $362.82 | $362.06 | -0.42% | 2 | |
| 2021-12-09 | 2021-12-10 | $334.60 | $339.01 | -3.78% | 2 | |
| 2021-11-23 | 2021-12-01 | $369.68 | $365.00 | -0.69% | 6 | |
| 2021-08-02 | 2021-11-10 | $236.56 | $355.98 | 27.83% | 72 | |
| 2021-06-24 | 2021-07-26 | $226.61 | $219.21 | -1.24% | 22 | |
| 2021-06-22 | 2021-06-23 | $207.90 | $218.86 | 0.16% | 2 | |
| 2021-06-18 | 2021-06-21 | $207.77 | $206.94 | 0.53% | 2 | |
| 2021-06-15 | 2021-06-16 | $199.79 | $201.62 | -1.90% | 2 | |
| 2021-06-11 | 2021-06-14 | $203.30 | $205.90 | -0.14% | 2 | |
| 2021-04-14 | 2021-04-30 | $244.08 | $236.48 | -6.89% | 13 | |
| 2019-11-22 | 2019-12-17 | $22.20 | $25.27 | 4.45% | 17 | |
| 2019-10-15 | 2019-10-25 | $17.19 | $21.88 | 9.89% | 9 | |
| 2019-09-11 | 2019-09-25 | $16.47 | $15.25 | -3.18% | 11 | |
| 2019-07-22 | 2019-07-26 | $17.05 | $15.20 | -6.85% | 5 | |
| 2019-03-01 | 2019-03-04 | $19.65 | $19.02 | -4.82% | 2 | |
| 2018-11-26 | 2018-12-19 | $23.07 | $22.20 | 2.07% | 17 | |
| 2018-03-14 | 2018-03-15 | $21.78 | $21.71 | -2.79% | 2 | |
| 2018-01-11 | 2018-02-09 | $22.53 | $20.69 | -3.50% | 21 | |
| 2017-12-12 | 2017-12-26 | $22.74 | $21.15 | -0.76% | 10 | |
| 2017-10-18 | 2017-10-19 | $23.98 | $23.45 | 0.54% | 2 | |
| 2017-10-16 | 2017-10-17 | $23.37 | $23.72 | -0.96% | 2 | |
| 2017-10-12 | 2017-10-13 | $23.71 | $23.70 | 0.06% | 2 | |
| 2017-03-24 | 2017-03-28 | $17.54 | $18.50 | 3.49% | 3 | |
| 2017-03-20 | 2017-03-21 | $17.46 | $16.71 | -0.02% | 2 | |
| 2017-01-31 | 2017-02-03 | $16.80 | $16.76 | 0.10% | 4 | |
| 2016-12-28 | 2017-01-25 | $14.65 | $16.96 | 9.25% | 19 | |
| 2016-07-22 | 2016-08-23 | $14.82 | $14.99 | 0.58% | 23 | |
| 2016-06-08 | 2016-06-10 | $15.70 | $14.59 | -0.88% | 3 | |
| 2016-03-28 | 2016-05-04 | $15.35 | $14.84 | 1.23% | 28 | |
| 2016-03-21 | 2016-03-24 | $15.89 | $15.18 | -2.72% | 4 | |
| 2015-12-29 | 2016-01-05 | $15.81 | $14.90 | -1.50% | 5 | |
| 2015-09-21 | 2015-09-29 | $17.61 | $16.44 | -2.92% | 7 | |
| 2015-04-28 | 2015-07-28 | $15.37 | $17.65 | 5.62% | 64 | |
| 2015-04-14 | 2015-04-21 | $13.83 | $13.96 | -1.41% | 6 | |
| 2014-11-25 | 2014-12-02 | $16.54 | $15.43 | -3.79% | 5 | |
| 2014-11-11 | 2014-11-24 | $16.74 | $16.45 | 0.15% | 10 | |
| 2014-10-08 | 2014-10-09 | $17.29 | $17.13 | -0.19% | 2 | |
| 2014-09-19 | 2014-09-23 | $17.29 | $16.69 | -3.27% | 3 | |
| 2014-07-31 | 2014-09-16 | $14.89 | $17.38 | 6.56% | 33 | |
| 2014-06-16 | 2014-07-17 | $14.97 | $14.36 | 3.18% | 23 | |
| 2014-06-12 | 2014-06-13 | $13.57 | $13.76 | -0.40% | 2 | |
| 2014-06-06 | 2014-06-11 | $13.88 | $13.63 | -1.45% | 4 | |
| 2014-05-27 | 2014-06-03 | $14.10 | $13.66 | -0.86% | 6 | |
| 2014-01-10 | 2014-01-14 | $9.71 | $10.75 | -3.46% | 3 | |
| 2014-01-07 | 2014-01-08 | $9.96 | $10.09 | 0.84% | 2 | |
| 2013-03-27 | 2013-04-02 | $2.54 | $2.96 | 9.49% | 4 | |
| 2013-03-08 | 2013-03-15 | $2.56 | $2.35 | -2.26% | 6 | |
| 2013-02-15 | 2013-02-22 | $2.47 | $2.41 | -4.92% | 5 | |
| 2013-02-12 | 2013-02-14 | $2.53 | $2.55 | -0.07% | 3 | |
| 2013-01-23 | 2013-01-24 | $2.40 | $2.47 | 1.26% | 2 | |
| 2012-11-06 | 2013-01-11 | $2.08 | $2.19 | 3.88% | 46 | |
| 2012-09-18 | 2012-09-21 | $2.09 | $2.00 | -3.16% | 4 | |
| 2012-07-05 | 2012-07-20 | $2.08 | $2.12 | 3.16% | 12 | |
| 2012-06-27 | 2012-07-03 | $2.13 | $2.04 | -2.42% | 5 | |
| 2012-06-19 | 2012-06-25 | $2.14 | $2.21 | 3.60% | 5 | |
| 2012-02-15 | 2012-04-10 | $2.24 | $2.16 | 0.18% | 38 |