Strategy Zoo / S0966
LongTermTrend_V0966
ARCHIVEDhybridllmAdded regime gates to restrict entries to UPTREND + LOW_VOLATILITY and NORMAL bubble to reduce drawdowns; replaced single macd exit with combined exit (macd_hist < 0 OR price < sma_50 OR drawdown < -15%) for cleaner stops; introduced position scaling rules: reduce to 40% in high vol (vol_pctile > 0.75) and scale to full size on strong breakout with elevated relative volume; lowered base_position to 0.8 to reduce overall exposure.
Fitness
0.3922
Generation
44
Complexity
27
Created
2026-10-01
Lineage
Parents (1)
changed cumret_252d threshold 0.2888 -> -0.1176
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V0966 [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > -0.0003) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1176 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)))):
position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown < -0.15):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 10.1% | 39.0% | -2.8% | 12.0% |
| Total Return | 115.2% | 168.4% | -10.1% | 431.5% |
| Sharpe | 0.52 | 1.10 | -0.02 | 0.56 |
| Sortino | 0.54 | 1.19 | -0.02 | 0.58 |
| Calmar | 0.23 | 1.07 | -0.09 | 0.27 |
| Volatility | 23.8% | 35.7% | 22.0% | 26.3% |
| Max DD | -44.6% | -36.5% | -31.2% | -44.6% |
| Win Rate | 48.1% | 53.1% | 46.4% | 48.7% |
| Avg Win | 2.9% | 4.0% | 2.4% | 3.1% |
| Avg Loss | -1.9% | -2.4% | -2.1% | -2.1% |
| Payoff | 1.54 | 1.64 | 1.14 | 1.50 |
| Expectancy | 0.4% | 1.0% | -0.0% | 0.5% |
| Profit Factor | 1.43 | 1.85 | 0.99 | 1.42 |
| Trades | 266 | 130 | 181 | 577 |
| Avg Holding Days | 3.6 | 3.2 | 2.3 | 3.1 |
| Turnover | 53.4 | 69.3 | 77.7 | 62.8 |
| Exposure | 27.6% | 30.8% | 19.9% | 26.3% |
Growth of $100
LongTermTrend_V0966 vs TSLA Buy & Hold
LongTermTrend_V0966 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 | 12.6% | 1.12 | -7.7% | 34 |
| 2017 | 6.7% | 0.45 | -10.6% | 32 |
| 2018 | -20.4% | -0.93 | -26.0% | 24 |
| 2019 | 9.9% | 0.58 | -18.3% | 31 |
| 2020 | 152.8% | 2.01 | -29.4% | 46 |
| 2021 | 14.3% | 0.65 | -18.7% | 50 |
| 2022 | -7.3% | -0.33 | -21.9% | 32 |
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 | 275 | 8.3% | 0.54 | 11% |
| hidden test | EXPENSIVE | 83 | 27.2% | 0.73 | 35% |
| hidden test | EXTREME | 48 | 71.7% | 2.11 | 35% |
| hidden test | HIGH VOLATILITY | 254 | -12.4% | -0.43 | 20% |
| hidden test | LOW VOLATILITY | 434 | 18.8% | 1.08 | 22% |
| hidden test | MEDIUM VOLATILITY | 251 | -21.6% | -1.04 | 17% |
| hidden test | NORMAL | 808 | -7.6% | -0.40 | 17% |
| hidden test | SIDEWAYS | 293 | -21.0% | -1.10 | 20% |
| hidden test | UPTREND | 371 | 9.3% | 0.33 | 26% |
| train | DOWNTREND | 518 | -2.5% | -0.23 | 8% |
| train | EXPENSIVE | 311 | 31.8% | 1.14 | 46% |
| train | EXTREME | 100 | 278.4% | 4.87 | 66% |
| train | HIGH VOLATILITY | 699 | 26.6% | 0.84 | 27% |
| train | LOW VOLATILITY | 745 | 11.0% | 0.66 | 31% |
| train | MEDIUM VOLATILITY | 568 | -3.3% | -0.16 | 24% |
| train | NORMAL | 1,601 | -8.0% | -0.43 | 22% |
| train | SIDEWAYS | 592 | 0.7% | 0.04 | 23% |
| train | UPTREND | 902 | 28.6% | 0.91 | 42% |
| validation | DOWNTREND | 125 | 23.5% | 1.42 | 5% |
| validation | EXPENSIVE | 138 | 37.7% | 0.95 | 38% |
| validation | EXTREME | 144 | 173.6% | 2.84 | 57% |
| validation | HIGH VOLATILITY | 258 | 16.9% | 0.35 | 28% |
| validation | LOW VOLATILITY | 183 | 18.6% | 1.10 | 30% |
| validation | MEDIUM VOLATILITY | 315 | 69.6% | 2.19 | 34% |
| validation | NORMAL | 474 | -1.1% | -0.05 | 21% |
| validation | SIDEWAYS | 206 | -15.3% | -1.00 | 17% |
| validation | UPTREND | 425 | 70.4% | 1.55 | 45% |
Trades (full period)
latest 100 of 577
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-09-28 | 2026-09-29 | $357.45 | $352.84 | -3.31% | 2 | |
| 2026-09-24 | 2026-09-25 | $377.94 | $372.11 | -0.62% | 2 | |
| 2026-09-22 | 2026-09-23 | $378.90 | $380.12 | 0.61% | 2 | |
| 2026-09-18 | 2026-09-21 | $364.27 | $375.30 | -0.58% | 2 | |
| 2026-09-15 | 2026-09-16 | $356.58 | $358.08 | -0.69% | 2 | |
| 2026-09-11 | 2026-09-14 | $365.44 | $358.97 | 0.25% | 2 | |
| 2026-09-09 | 2026-09-10 | $367.81 | $363.56 | -0.24% | 2 | |
| 2026-09-03 | 2026-09-04 | $376.37 | $354.08 | 4.17% | 2 | |
| 2026-09-01 | 2026-09-02 | $356.09 | $357.01 | -2.74% | 2 | |
| 2026-08-28 | 2026-08-31 | $348.75 | $367.95 | -1.53% | 2 | |
| 2026-08-26 | 2026-08-27 | $345.82 | $354.81 | -1.17% | 2 | |
| 2026-08-24 | 2026-08-25 | $348.95 | $350.25 | -3.22% | 2 | |
| 2026-07-07 | 2026-07-08 | $402.90 | $394.06 | -3.37% | 2 | |
| 2026-07-01 | 2026-07-06 | $425.30 | $419.77 | -5.30% | 3 | |
| 2026-06-03 | 2026-06-04 | $423.70 | $418.45 | -0.17% | 2 | |
| 2026-05-27 | 2026-06-02 | $440.36 | $423.74 | -3.41% | 5 | |
| 2026-05-22 | 2026-05-26 | $426.01 | $433.59 | 1.40% | 2 | |
| 2026-05-20 | 2026-05-21 | $417.26 | $417.85 | 2.44% | 2 | |
| 2026-05-08 | 2026-05-19 | $428.35 | $404.11 | -0.45% | 8 | |
| 2026-05-06 | 2026-05-07 | $398.73 | $411.79 | 1.76% | 2 | |
| 2026-05-04 | 2026-05-05 | $392.51 | $389.37 | 0.19% | 2 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.78% | 2 | |
| 2026-04-16 | 2026-04-17 | $388.90 | $400.62 | -0.78% | 2 | |
| 2025-12-31 | 2026-01-02 | $449.72 | $438.07 | -0.99% | 2 | |
| 2025-12-04 | 2025-12-30 | $454.53 | $454.43 | 2.22% | 18 | |
| 2025-11-06 | 2025-11-07 | $445.91 | $429.52 | -2.96% | 2 | |
| 2025-11-03 | 2025-11-05 | $468.37 | $462.07 | -2.29% | 3 | |
| 2025-10-24 | 2025-10-27 | $433.72 | $452.42 | -2.88% | 2 | |
| 2025-10-14 | 2025-10-15 | $429.24 | $435.15 | -1.38% | 2 | |
| 2025-10-09 | 2025-10-10 | $435.54 | $413.49 | -0.73% | 2 | |
| 2025-10-07 | 2025-10-08 | $433.09 | $438.69 | -3.72% | 2 | |
| 2025-09-16 | 2025-10-06 | $421.62 | $453.25 | 3.78% | 15 | |
| 2025-09-12 | 2025-09-15 | $395.94 | $410.04 | 5.72% | 2 | |
| 2025-09-10 | 2025-09-11 | $347.79 | $368.81 | 0.03% | 2 | |
| 2025-09-08 | 2025-09-09 | $346.40 | $346.97 | -1.17% | 2 | |
| 2025-09-04 | 2025-09-05 | $338.53 | $350.84 | 0.90% | 2 | |
| 2025-08-29 | 2025-09-02 | $333.87 | $329.36 | -2.96% | 2 | |
| 2025-08-27 | 2025-08-28 | $349.60 | $345.98 | -0.63% | 2 | |
| 2025-08-25 | 2025-08-26 | $346.60 | $351.67 | 1.39% | 2 | |
| 2025-08-20 | 2025-08-21 | $323.90 | $320.11 | -1.47% | 2 | |
| 2025-08-18 | 2025-08-19 | $335.16 | $329.31 | 0.95% | 2 | |
| 2025-08-14 | 2025-08-15 | $335.58 | $330.56 | -1.05% | 2 | |
| 2025-08-12 | 2025-08-13 | $340.84 | $339.38 | 0.27% | 2 | |
| 2025-08-08 | 2025-08-11 | $329.65 | $339.03 | 1.67% | 2 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -1.24% | 2 | |
| 2025-07-23 | 2025-07-24 | $332.56 | $305.30 | -0.05% | 2 | |
| 2025-07-21 | 2025-07-22 | $328.49 | $332.11 | -0.44% | 2 | |
| 2025-06-25 | 2025-06-26 | $327.55 | $325.78 | -3.19% | 2 | |
| 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-29 | 2025-05-30 | $358.43 | $346.46 | 0.18% | 2 | |
| 2025-05-27 | 2025-05-28 | $362.89 | $356.90 | 5.39% | 2 | |
| 2025-05-22 | 2025-05-23 | $341.04 | $339.34 | 1.37% | 2 | |
| 2025-05-20 | 2025-05-21 | $343.82 | $334.62 | 0.24% | 2 | |
| 2025-05-16 | 2025-05-19 | $349.98 | $342.09 | 1.51% | 2 | |
| 2025-05-14 | 2025-05-15 | $347.68 | $342.82 | 3.10% | 2 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 5.23% | 2 | |
| 2025-05-08 | 2025-05-09 | $284.82 | $298.26 | 2.33% | 2 | |
| 2025-05-06 | 2025-05-07 | $275.35 | $276.22 | -1.56% | 2 | |
| 2025-05-02 | 2025-05-05 | $287.21 | $280.26 | 1.75% | 2 | |
| 2025-04-30 | 2025-05-01 | $282.16 | $280.52 | -2.86% | 2 | |
| 2025-04-28 | 2025-04-29 | $285.88 | $292.03 | 0.10% | 2 | |
| 2025-01-06 | 2025-01-07 | $411.05 | $394.36 | -0.04% | 2 | |
| 2025-01-02 | 2025-01-03 | $379.28 | $410.44 | -5.02% | 2 | |
| 2024-12-30 | 2024-12-31 | $417.41 | $403.84 | -2.80% | 2 | |
| 2024-12-26 | 2024-12-27 | $454.13 | $431.66 | -1.57% | 2 | |
| 2024-12-06 | 2024-12-24 | $389.22 | $462.28 | 13.06% | 13 | |
| 2024-12-04 | 2024-12-05 | $357.93 | $369.49 | 1.32% | 2 | |
| 2024-12-02 | 2024-12-03 | $357.09 | $351.42 | 2.60% | 2 | |
| 2024-11-27 | 2024-11-29 | $332.89 | $345.16 | -1.42% | 2 | |
| 2024-11-22 | 2024-11-26 | $352.56 | $338.23 | -0.38% | 3 | |
| 2024-11-20 | 2024-11-21 | $342.03 | $339.64 | -1.08% | 2 | |
| 2024-11-18 | 2024-11-19 | $338.74 | $346.00 | 4.33% | 2 | |
| 2024-11-14 | 2024-11-15 | $311.18 | $320.72 | -4.77% | 2 | |
| 2024-11-12 | 2024-11-13 | $328.49 | $330.24 | -5.07% | 2 | |
| 2024-11-08 | 2024-11-11 | $321.22 | $350.00 | 6.38% | 2 | |
| 2024-11-06 | 2024-11-07 | $288.53 | $296.91 | 11.63% | 2 | |
| 2024-11-04 | 2024-11-05 | $242.84 | $251.44 | -2.13% | 2 | |
| 2024-10-31 | 2024-11-01 | $249.85 | $248.98 | -2.55% | 2 | |
| 2024-10-29 | 2024-10-30 | $259.52 | $257.55 | -1.07% | 2 | |
| 2024-10-25 | 2024-10-28 | $269.19 | $262.51 | 2.51% | 2 | |
| 2024-10-09 | 2024-10-10 | $241.05 | $238.77 | -1.29% | 2 | |
| 2024-10-07 | 2024-10-08 | $240.83 | $244.50 | -3.12% | 2 | |
| 2024-10-03 | 2024-10-04 | $240.66 | $250.08 | -2.84% | 2 | |
| 2024-10-01 | 2024-10-02 | $258.02 | $249.02 | -1.26% | 2 | |
| 2024-09-27 | 2024-09-30 | $260.46 | $261.63 | 1.80% | 2 | |
| 2024-09-25 | 2024-09-26 | $257.02 | $254.22 | 0.70% | 2 | |
| 2024-09-23 | 2024-09-24 | $250.00 | $254.27 | 3.78% | 2 | |
| 2024-09-19 | 2024-09-20 | $243.92 | $238.25 | 5.72% | 2 | |
| 2024-09-17 | 2024-09-18 | $227.87 | $227.20 | 0.22% | 2 | |
| 2024-09-13 | 2024-09-16 | $230.29 | $226.78 | 0.01% | 2 | |
| 2024-09-11 | 2024-09-12 | $228.13 | $229.81 | 0.53% | 2 | |
| 2024-09-05 | 2024-09-06 | $230.17 | $210.73 | 3.76% | 2 | |
| 2024-08-26 | 2024-08-27 | $213.21 | $209.21 | -2.74% | 2 | |
| 2024-08-22 | 2024-08-23 | $210.66 | $220.32 | -4.67% | 2 | |
| 2024-08-20 | 2024-08-21 | $221.10 | $223.27 | -0.74% | 2 | |
| 2024-07-30 | 2024-07-31 | $222.62 | $232.07 | -3.42% | 2 | |
| 2024-07-23 | 2024-07-24 | $246.38 | $215.99 | -1.79% | 2 | |
| 2024-07-19 | 2024-07-22 | $239.20 | $251.51 | -3.38% | 2 | |
| 2024-07-17 | 2024-07-18 | $248.50 | $249.23 | -2.67% | 2 |