Strategy Zoo / S1481
LongTermTrend_V1481
ARCHIVEDhybridllmAdded regime gates to avoid trading in downtrend/high-volatility/bubble regimes; required a simple trend filter (sma_50>sma_200 or price>sma_200) to reduce false entries; strengthened exits by adding a 20-day loss trigger and a sma_50 breakdown stop in addition to macd_hist; introduced volatility-based position sizing (scale down in high vol or high vol_pctile, full size in low vol); reduced base position to lower overall risk.
Fitness
0.1844
Generation
68
Complexity
34
Created
2026-10-13
Lineage
Parents (1)
changed ret_20d threshold 0.05 -> 0.1344
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1481 [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.0003) or ret_20d > 0.085) and ret_20d > 0.1344 and cumret_252d > 0.2888 and dist_sma_50 > -0.0774) 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)))) and (sma_50 > sma_200 or close > sma_200)):
position = 0.8
if long and (macd_hist < 0.0 or ret_20d < -0.08 or close < sma_50):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 2.3% | 1.0% | -1.4% | 1.1% |
| Total Return | 20.3% | 3.1% | -5.0% | 17.7% |
| Sharpe | 0.24 | 0.14 | -0.01 | 0.15 |
| Sortino | 0.15 | 0.08 | -0.01 | 0.09 |
| Calmar | 0.10 | 0.06 | -0.05 | 0.04 |
| Volatility | 12.9% | 15.1% | 15.3% | 14.0% |
| Max DD | -22.9% | -16.6% | -30.2% | -30.2% |
| Win Rate | 39.6% | 21.4% | 34.5% | 35.2% |
| Avg Win | 5.3% | 11.5% | 5.8% | 6.0% |
| Avg Loss | -2.6% | -2.6% | -3.1% | -2.8% |
| Payoff | 2.01 | 4.48 | 1.86 | 2.17 |
| Expectancy | 0.5% | 0.4% | -0.0% | 0.3% |
| Profit Factor | 1.31 | 1.22 | 0.98 | 1.18 |
| Trades | 48 | 14 | 29 | 91 |
| Avg Holding Days | 6.8 | 9.1 | 6.0 | 6.9 |
| Turnover | 9.6 | 7.5 | 12.3 | 9.9 |
| Exposure | 11.0% | 12.1% | 12.2% | 11.5% |
Growth of $100
LongTermTrend_V1481 vs TSLA Buy & Hold
LongTermTrend_V1481 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 | -0.1% | 0.03 | -6.6% | 5 |
| 2017 | 10.5% | 1.17 | -4.4% | 7 |
| 2018 | -5.5% | -0.68 | -9.7% | 3 |
| 2019 | 11.2% | 0.72 | -7.5% | 3 |
| 2020 | 0.0% | 0.00 | 0.0% | 0 |
| 2021 | 2.4% | 0.22 | -16.0% | 8 |
| 2022 | 0.7% | 0.12 | -16.6% | 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.8% | -1.37 | 1% |
| hidden test | EXPENSIVE | 83 | 34.2% | 2.44 | 2% |
| hidden test | EXTREME | 48 | 0.0% | 0.00 | 0% |
| hidden test | HIGH VOLATILITY | 254 | -8.7% | -0.63 | 2% |
| hidden test | LOW VOLATILITY | 443 | 2.7% | 0.17 | 18% |
| hidden test | MEDIUM VOLATILITY | 250 | 3.3% | 0.20 | 12% |
| hidden test | NORMAL | 816 | -3.7% | -0.23 | 14% |
| hidden test | SIDEWAYS | 298 | -30.6% | -1.88 | 20% |
| hidden test | UPTREND | 371 | 26.1% | 1.35 | 14% |
| train | DOWNTREND | 518 | -6.1% | -1.15 | 1% |
| train | EXPENSIVE | 311 | 10.3% | 1.83 | 2% |
| train | EXTREME | 100 | 0.0% | 0.00 | 0% |
| train | HIGH VOLATILITY | 699 | 8.4% | 0.70 | 1% |
| train | LOW VOLATILITY | 745 | 14.2% | 1.12 | 21% |
| train | MEDIUM VOLATILITY | 568 | -17.9% | -1.27 | 11% |
| train | NORMAL | 1,601 | 1.9% | 0.14 | 14% |
| train | SIDEWAYS | 592 | -4.5% | -0.34 | 15% |
| train | UPTREND | 902 | 13.4% | 0.87 | 14% |
| 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 | -9.5% | -1.00 | 0% |
| validation | LOW VOLATILITY | 183 | -1.3% | -0.10 | 28% |
| validation | MEDIUM VOLATILITY | 315 | 13.7% | 0.73 | 13% |
| validation | NORMAL | 474 | 3.4% | 0.18 | 19% |
| validation | SIDEWAYS | 206 | -7.6% | -0.44 | 17% |
| validation | UPTREND | 425 | 7.5% | 0.47 | 13% |
Trades (full period)
91 trades
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-07-01 | 2026-07-06 | $425.30 | $419.77 | -5.30% | 3 | |
| 2026-05-28 | 2026-06-02 | $442.10 | $423.74 | -4.61% | 4 | |
| 2026-05-08 | 2026-05-21 | $428.35 | $417.85 | 0.97% | 10 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.78% | 2 | |
| 2025-12-04 | 2025-12-30 | $454.53 | $454.43 | 2.22% | 18 | |
| 2025-09-08 | 2025-09-15 | $346.40 | $410.04 | 10.06% | 6 | |
| 2025-08-25 | 2025-09-03 | $346.60 | $334.09 | -2.65% | 7 | |
| 2025-08-11 | 2025-08-21 | $339.03 | $320.11 | -1.54% | 9 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -1.24% | 2 | |
| 2025-07-21 | 2025-07-25 | $328.49 | $316.06 | -6.05% | 5 | |
| 2025-06-04 | 2025-06-05 | $332.05 | $284.70 | -3.00% | 2 | |
| 2025-06-02 | 2025-06-03 | $342.69 | $344.27 | -1.03% | 2 | |
| 2025-05-22 | 2025-05-28 | $341.04 | $356.90 | 6.58% | 4 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 5.23% | 2 | |
| 2024-09-23 | 2024-10-04 | $250.00 | $250.08 | 0.70% | 10 | |
| 2024-09-16 | 2024-09-20 | $226.78 | $238.25 | 4.58% | 5 | |
| 2024-09-06 | 2024-09-09 | $210.73 | $216.27 | -6.91% | 2 | |
| 2024-07-02 | 2024-07-12 | $231.26 | $248.23 | 11.75% | 8 | |
| 2023-12-15 | 2024-01-02 | $253.50 | $248.42 | -0.94% | 11 | |
| 2023-11-29 | 2023-12-14 | $244.14 | $251.05 | -2.56% | 12 | |
| 2023-11-27 | 2023-11-28 | $236.08 | $246.72 | 0.05% | 2 | |
| 2023-11-22 | 2023-11-24 | $234.21 | $235.45 | -2.48% | 2 | |
| 2023-11-16 | 2023-11-17 | $233.59 | $234.30 | -3.20% | 2 | |
| 2023-10-06 | 2023-10-16 | $260.53 | $253.92 | -2.90% | 7 | |
| 2023-09-12 | 2023-09-22 | $267.48 | $244.88 | -5.39% | 9 | |
| 2023-09-06 | 2023-09-07 | $251.92 | $251.49 | -1.58% | 2 | |
| 2023-08-30 | 2023-09-05 | $256.90 | $256.49 | -3.94% | 4 | |
| 2023-07-06 | 2023-07-07 | $276.54 | $274.43 | -1.84% | 2 | |
| 2023-05-31 | 2023-06-27 | $203.93 | $250.21 | 15.56% | 19 | |
| 2022-09-13 | 2022-09-23 | $292.13 | $275.33 | -4.29% | 9 | |
| 2022-08-16 | 2022-08-19 | $306.56 | $296.67 | -1.83% | 4 | |
| 2022-08-04 | 2022-08-12 | $308.63 | $300.03 | -5.54% | 7 | |
| 2022-04-13 | 2022-04-14 | $340.79 | $328.33 | 2.71% | 2 | |
| 2022-03-21 | 2022-04-11 | $307.05 | $325.31 | 10.49% | 16 | |
| 2021-12-28 | 2022-01-03 | $362.82 | $399.93 | -2.88% | 5 | |
| 2021-10-13 | 2021-11-10 | $270.36 | $355.98 | 21.37% | 21 | |
| 2021-10-08 | 2021-10-11 | $261.83 | $263.98 | -0.98% | 2 | |
| 2021-09-28 | 2021-10-07 | $259.19 | $264.54 | -1.03% | 8 | |
| 2021-08-31 | 2021-09-21 | $245.24 | $246.46 | -0.21% | 15 | |
| 2021-08-02 | 2021-08-17 | $236.56 | $221.90 | -0.24% | 12 | |
| 2021-07-13 | 2021-07-15 | $222.85 | $216.87 | -3.94% | 3 | |
| 2021-06-24 | 2021-07-12 | $226.61 | $228.57 | -0.08% | 12 | |
| 2021-04-14 | 2021-04-29 | $244.08 | $225.67 | -7.29% | 12 | |
| 2019-12-16 | 2019-12-17 | $25.43 | $25.27 | 4.99% | 2 | |
| 2019-10-15 | 2019-10-25 | $17.19 | $21.88 | 13.15% | 9 | |
| 2019-03-01 | 2019-03-04 | $19.65 | $19.02 | -6.43% | 2 | |
| 2018-12-11 | 2018-12-18 | $24.45 | $22.47 | -3.81% | 6 | |
| 2018-03-14 | 2018-03-15 | $21.78 | $21.71 | -3.72% | 2 | |
| 2018-01-11 | 2018-02-05 | $22.53 | $22.21 | 2.00% | 17 | |
| 2017-12-12 | 2017-12-26 | $22.74 | $21.15 | -1.04% | 10 | |
| 2017-10-18 | 2017-10-20 | $23.98 | $23.01 | -1.04% | 3 | |
| 2017-10-12 | 2017-10-17 | $23.71 | $23.72 | -1.06% | 4 | |
| 2017-03-24 | 2017-03-28 | $17.54 | $18.50 | 4.67% | 3 | |
| 2017-03-20 | 2017-03-22 | $17.46 | $17.00 | -3.46% | 3 | |
| 2017-01-31 | 2017-02-02 | $16.80 | $16.77 | -0.60% | 3 | |
| 2016-12-28 | 2017-01-25 | $14.65 | $16.96 | 12.46% | 19 | |
| 2016-07-22 | 2016-08-09 | $14.82 | $15.27 | 1.91% | 13 | |
| 2016-06-08 | 2016-06-10 | $15.70 | $14.59 | -1.18% | 3 | |
| 2016-04-04 | 2016-04-14 | $16.47 | $16.79 | 5.55% | 9 | |
| 2016-03-29 | 2016-04-01 | $15.34 | $15.84 | -0.33% | 4 | |
| 2016-03-21 | 2016-03-24 | $15.89 | $15.18 | -3.63% | 4 | |
| 2015-12-30 | 2016-01-05 | $15.87 | $14.90 | -4.79% | 4 | |
| 2015-09-21 | 2015-09-29 | $17.61 | $16.44 | -3.90% | 7 | |
| 2015-07-21 | 2015-07-22 | $17.78 | $17.86 | -4.55% | 2 | |
| 2015-06-22 | 2015-07-09 | $17.32 | $17.19 | -2.40% | 13 | |
| 2015-04-28 | 2015-05-22 | $15.37 | $16.52 | 4.69% | 19 | |
| 2014-11-25 | 2014-12-01 | $16.54 | $15.44 | -0.87% | 4 | |
| 2014-11-12 | 2014-11-24 | $16.61 | $16.45 | -2.78% | 9 | |
| 2014-10-08 | 2014-10-10 | $17.29 | $15.79 | -0.95% | 3 | |
| 2014-09-02 | 2014-09-12 | $18.94 | $18.61 | 3.01% | 9 | |
| 2014-08-28 | 2014-08-29 | $17.59 | $17.98 | 0.03% | 2 | |
| 2014-08-26 | 2014-08-27 | $17.45 | $17.55 | -0.41% | 2 | |
| 2014-07-31 | 2014-08-25 | $14.89 | $17.50 | 9.51% | 18 | |
| 2014-06-16 | 2014-07-07 | $14.97 | $14.84 | 8.69% | 15 | |
| 2014-06-12 | 2014-06-13 | $13.57 | $13.76 | -0.53% | 2 | |
| 2014-06-06 | 2014-06-11 | $13.88 | $13.63 | -1.94% | 4 | |
| 2014-05-28 | 2014-06-03 | $14.02 | $13.66 | -2.76% | 5 | |
| 2014-01-07 | 2014-01-08 | $9.96 | $10.09 | 1.12% | 2 | |
| 2013-03-27 | 2013-04-02 | $2.54 | $2.96 | 12.65% | 4 | |
| 2013-03-08 | 2013-03-18 | $2.56 | $2.34 | -6.31% | 7 | |
| 2013-02-12 | 2013-02-14 | $2.53 | $2.55 | -0.10% | 3 | |
| 2013-01-23 | 2013-01-24 | $2.40 | $2.47 | 1.68% | 2 | |
| 2012-11-06 | 2012-12-14 | $2.08 | $2.25 | 5.24% | 28 | |
| 2012-09-18 | 2012-09-21 | $2.09 | $2.00 | -4.20% | 4 | |
| 2012-07-13 | 2012-07-23 | $2.28 | $2.04 | -2.29% | 7 | |
| 2012-06-27 | 2012-07-03 | $2.13 | $2.04 | -3.22% | 5 | |
| 2012-06-19 | 2012-06-25 | $2.14 | $2.21 | 4.76% | 5 | |
| 2012-03-27 | 2012-04-05 | $2.53 | $2.30 | -5.25% | 8 | |
| 2012-03-13 | 2012-03-16 | $2.41 | $2.35 | -2.40% | 4 | |
| 2012-03-01 | 2012-03-02 | $2.29 | $2.27 | 2.23% | 2 | |
| 2012-02-15 | 2012-02-29 | $2.24 | $2.23 | 1.39% | 10 |