Strategy Zoo / S0769
LongTermTrend_V0769
ARCHIVEDhybridllmSimplified and regularized entry: require long-term uptrend signal (close>200sma or rising 50sma) plus either positive momentum (macd_hist>0 and above 20sma) or a volume-backed 50-day breakout; added volatility filter (vol_pctile<0.8) and mild RSI floor. Added robust exits: keep macd_hist sell, add hard stop via drawdown < -8% and exit if price falls below 50sma. Added regime gates to trade only in UPTREND and non-extreme volatility/bubble regimes. Reduced base position to 0.8 to lower risk.
Fitness
0.4077
Generation
35
Complexity
18
Created
2026-09-26
Lineage
Parents (1)
swapped indicator macd_hist -> rsi_14
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V0769 [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and ((close > sma_200 or sma_50_slope > 0.0) and ((macd_hist > 0.0 and sma_20 < close) or (breakout_50 == 1 and rel_volume > 1.2)) and vol_pctile < 0.8 and rsi_14 > 30.0):
position = 0.8
if long and (macd_hist < 0.0 or drawdown < -0.08 or close < sma_50):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | -2.8% | 48.7% | -4.9% | 5.6% |
| Total Return | -20.6% | 228.5% | -16.9% | 122.1% |
| Sharpe | -0.12 | 1.80 | -0.26 | 0.40 |
| Sortino | -0.09 | 1.82 | -0.19 | 0.32 |
| Calmar | -0.07 | 3.20 | -0.22 | 0.15 |
| Volatility | 14.7% | 23.6% | 14.9% | 17.0% |
| Max DD | -38.4% | -15.2% | -22.4% | -38.4% |
| Win Rate | 37.5% | 53.9% | 41.7% | 42.4% |
| Avg Win | 2.3% | 4.5% | 2.2% | 3.1% |
| Avg Loss | -1.7% | -1.5% | -1.8% | -1.7% |
| Payoff | 1.41 | 3.05 | 1.20 | 1.82 |
| Expectancy | -0.2% | 1.8% | -0.1% | 0.3% |
| Profit Factor | 0.84 | 3.57 | 0.86 | 1.34 |
| Trades | 168 | 76 | 103 | 347 |
| Avg Holding Days | 2.9 | 3.1 | 2.2 | 2.8 |
| Turnover | 33.8 | 40.5 | 44.4 | 37.8 |
| Exposure | 13.0% | 16.8% | 10.9% | 13.3% |
Growth of $100
LongTermTrend_V0769 vs TSLA Buy & Hold
LongTermTrend_V0769 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 | -2.2% | -0.21 | -6.4% | 20 |
| 2017 | 15.7% | 1.10 | -10.5% | 27 |
| 2018 | -10.5% | -1.57 | -11.7% | 12 |
| 2019 | -5.5% | -0.40 | -16.5% | 15 |
| 2020 | 121.0% | 2.89 | -9.5% | 11 |
| 2021 | 27.3% | 1.14 | -15.2% | 43 |
| 2022 | 5.2% | 0.47 | -5.9% | 21 |
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 | 272 | -1.8% | -1.10 | 0% |
| hidden test | EXPENSIVE | 83 | -5.3% | -0.29 | 13% |
| hidden test | EXTREME | 48 | 26.6% | 1.05 | 12% |
| hidden test | HIGH VOLATILITY | 254 | -4.8% | -0.53 | 1% |
| hidden test | LOW VOLATILITY | 432 | 6.1% | 0.40 | 15% |
| hidden test | MEDIUM VOLATILITY | 250 | -20.1% | -1.06 | 13% |
| hidden test | NORMAL | 805 | -5.5% | -0.41 | 11% |
| hidden test | SIDEWAYS | 293 | -19.9% | -1.29 | 16% |
| hidden test | UPTREND | 371 | 7.3% | 0.38 | 15% |
| train | DOWNTREND | 518 | -7.1% | -1.30 | 1% |
| train | EXPENSIVE | 311 | 27.5% | 1.24 | 22% |
| train | EXTREME | 100 | 30.0% | 1.59 | 20% |
| train | HIGH VOLATILITY | 699 | 1.4% | 0.10 | 1% |
| train | LOW VOLATILITY | 745 | 3.6% | 0.27 | 22% |
| train | MEDIUM VOLATILITY | 568 | -12.8% | -0.74 | 15% |
| train | NORMAL | 1,601 | -9.5% | -0.77 | 11% |
| train | SIDEWAYS | 592 | -14.0% | -1.16 | 12% |
| train | UPTREND | 902 | 9.2% | 0.48 | 20% |
| validation | DOWNTREND | 125 | -0.3% | -2.02 | 0% |
| validation | EXPENSIVE | 138 | 63.0% | 2.05 | 28% |
| validation | EXTREME | 144 | 108.4% | 3.80 | 16% |
| validation | HIGH VOLATILITY | 258 | 29.6% | 1.43 | 2% |
| validation | LOW VOLATILITY | 183 | 18.7% | 1.16 | 24% |
| validation | MEDIUM VOLATILITY | 315 | 66.7% | 2.31 | 25% |
| validation | NORMAL | 474 | 16.4% | 0.86 | 14% |
| validation | SIDEWAYS | 206 | 9.5% | 0.61 | 13% |
| validation | UPTREND | 425 | 70.9% | 2.41 | 24% |
Trades (full period)
latest 100 of 347
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-07-01 | 2026-07-02 | $425.30 | $393.45 | 0.73% | 2 | |
| 2026-06-01 | 2026-06-02 | $415.88 | $423.74 | -3.81% | 2 | |
| 2026-05-28 | 2026-05-29 | $442.10 | $435.79 | 0.16% | 2 | |
| 2026-05-20 | 2026-05-21 | $417.26 | $417.85 | 2.44% | 2 | |
| 2026-05-18 | 2026-05-19 | $409.99 | $404.11 | -2.48% | 2 | |
| 2026-05-14 | 2026-05-15 | $443.30 | $422.24 | -0.51% | 2 | |
| 2026-05-12 | 2026-05-13 | $433.45 | $445.27 | -2.23% | 2 | |
| 2026-05-08 | 2026-05-11 | $428.35 | $445.00 | 3.05% | 2 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.78% | 2 | |
| 2026-03-12 | 2026-03-13 | $395.01 | $391.20 | -2.67% | 2 | |
| 2026-02-26 | 2026-02-27 | $408.58 | $402.51 | -1.85% | 2 | |
| 2026-02-12 | 2026-02-13 | $417.07 | $417.44 | -2.25% | 2 | |
| 2025-12-10 | 2025-12-30 | $451.45 | $454.43 | 2.50% | 14 | |
| 2025-12-03 | 2025-12-09 | $446.74 | $445.17 | 1.79% | 5 | |
| 2025-12-01 | 2025-12-02 | $430.14 | $429.24 | -0.17% | 2 | |
| 2025-11-04 | 2025-11-05 | $444.26 | $462.07 | -4.27% | 2 | |
| 2025-09-29 | 2025-10-03 | $443.21 | $429.83 | -0.93% | 5 | |
| 2025-09-24 | 2025-09-26 | $442.79 | $440.40 | -0.59% | 3 | |
| 2025-09-22 | 2025-09-23 | $434.21 | $425.85 | 1.37% | 2 | |
| 2025-09-18 | 2025-09-19 | $416.85 | $426.07 | -1.85% | 2 | |
| 2025-09-16 | 2025-09-17 | $421.62 | $425.86 | 2.10% | 2 | |
| 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-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-19 | 2025-08-20 | $329.31 | $323.90 | -1.56% | 2 | |
| 2025-08-15 | 2025-08-18 | $330.56 | $335.16 | -1.36% | 2 | |
| 2025-08-13 | 2025-08-14 | $339.38 | $335.58 | -0.50% | 2 | |
| 2025-08-11 | 2025-08-12 | $339.03 | $340.84 | 2.11% | 2 | |
| 2025-07-30 | 2025-07-31 | $319.04 | $308.27 | -0.70% | 2 | |
| 2025-07-28 | 2025-07-29 | $325.59 | $321.20 | 2.25% | 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-07-17 | 2025-07-18 | $319.41 | $329.65 | -0.72% | 2 | |
| 2025-05-30 | 2025-06-02 | $346.46 | $342.69 | -2.83% | 2 | |
| 2025-05-28 | 2025-05-29 | $356.90 | $358.43 | -1.48% | 2 | |
| 2025-05-23 | 2025-05-27 | $339.34 | $362.89 | -0.56% | 2 | |
| 2025-05-21 | 2025-05-22 | $334.62 | $341.04 | -2.30% | 2 | |
| 2025-05-19 | 2025-05-20 | $342.09 | $343.82 | -1.96% | 2 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 5.23% | 2 | |
| 2024-12-20 | 2024-12-23 | $421.06 | $430.60 | -2.93% | 2 | |
| 2024-12-11 | 2024-12-19 | $424.77 | $436.17 | 7.72% | 7 | |
| 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-18 | 2024-09-19 | $227.20 | $243.92 | -0.40% | 2 | |
| 2024-09-16 | 2024-09-17 | $226.78 | $227.87 | -1.38% | 2 | |
| 2024-09-05 | 2024-09-06 | $230.17 | $210.73 | 3.76% | 2 | |
| 2024-09-03 | 2024-09-04 | $210.60 | $219.41 | -1.47% | 2 | |
| 2024-07-11 | 2024-07-12 | $241.03 | $248.23 | -6.91% | 2 | |
| 2024-07-09 | 2024-07-10 | $262.33 | $263.26 | 2.81% | 2 | |
| 2024-07-05 | 2024-07-08 | $251.52 | $252.94 | 1.50% | 2 | |
| 2024-07-02 | 2024-07-03 | $231.26 | $246.39 | 7.99% | 2 | |
| 2024-06-28 | 2024-07-01 | $197.88 | $209.86 | 0.03% | 2 | |
| 2024-06-26 | 2024-06-27 | $196.37 | $197.42 | 3.69% | 2 | |
| 2024-06-24 | 2024-06-25 | $182.58 | $187.35 | -0.35% | 2 | |
| 2024-06-20 | 2024-06-21 | $181.57 | $183.01 | -1.58% | 2 | |
| 2024-06-17 | 2024-06-18 | $187.44 | $184.86 | 4.07% | 2 | |
| 2023-12-28 | 2023-12-29 | $253.18 | $248.48 | -2.69% | 2 | |
| 2023-12-26 | 2023-12-27 | $256.61 | $261.44 | 1.13% | 2 | |
| 2023-12-21 | 2023-12-22 | $254.50 | $252.54 | 2.22% | 2 | |
| 2023-12-19 | 2023-12-20 | $257.22 | $247.14 | 1.47% | 2 | |
| 2023-12-15 | 2023-12-18 | $253.50 | $252.08 | 0.62% | 2 | |
| 2023-12-11 | 2023-12-12 | $239.74 | $237.01 | -1.50% | 2 | |
| 2023-12-07 | 2023-12-08 | $242.64 | $243.84 | 0.93% | 2 | |
| 2023-12-05 | 2023-12-06 | $238.72 | $239.37 | 0.91% | 2 | |
| 2023-12-01 | 2023-12-04 | $238.83 | $235.58 | -0.58% | 2 | |
| 2023-11-29 | 2023-11-30 | $244.14 | $240.08 | -1.00% | 2 | |
| 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-20 | 2023-11-21 | $235.60 | $241.20 | 0.28% | 2 | |
| 2023-11-16 | 2023-11-17 | $233.59 | $234.30 | -3.20% | 2 | |
| 2023-11-14 | 2023-11-15 | $237.41 | $242.84 | 4.74% | 2 | |
| 2023-10-12 | 2023-10-13 | $258.87 | $251.12 | -1.41% | 2 | |
| 2023-10-10 | 2023-10-11 | $263.62 | $262.99 | 1.06% | 2 | |
| 2023-10-06 | 2023-10-09 | $260.53 | $259.67 | -0.01% | 2 | |
| 2023-09-20 | 2023-09-21 | $262.59 | $255.70 | -1.33% | 2 | |
| 2023-09-18 | 2023-09-19 | $265.28 | $266.50 | -2.81% | 2 | |
| 2023-09-14 | 2023-09-15 | $276.04 | $274.39 | 1.24% | 2 | |
| 2023-09-12 | 2023-09-13 | $267.48 | $271.30 | -1.94% | 2 | |
| 2023-09-08 | 2023-09-11 | $248.50 | $273.58 | -1.11% | 2 | |
| 2023-09-06 | 2023-09-07 | $251.92 | $251.49 | -1.58% | 2 | |
| 2023-09-01 | 2023-09-05 | $245.01 | $256.49 | -4.21% | 2 | |
| 2023-08-30 | 2023-08-31 | $256.90 | $258.08 | -0.25% | 2 | |
| 2023-07-06 | 2023-07-07 | $276.54 | $274.43 | -1.84% | 2 | |
| 2023-06-23 | 2023-06-26 | $256.60 | $241.05 | -2.58% | 2 | |
| 2023-06-21 | 2023-06-22 | $259.46 | $264.61 | -4.53% | 2 | |
| 2023-06-16 | 2023-06-20 | $260.54 | $274.45 | 1.29% | 2 | |
| 2023-06-14 | 2023-06-15 | $256.79 | $255.90 | -0.75% | 2 | |
| 2023-06-12 | 2023-06-13 | $249.83 | $258.71 | 1.62% | 2 | |
| 2023-06-08 | 2023-06-09 | $234.86 | $244.40 | 3.50% | 2 | |
| 2023-06-06 | 2023-06-07 | $221.31 | $224.57 | 1.20% | 2 | |
| 2023-06-02 | 2023-06-05 | $213.97 | $217.61 | 2.32% | 2 | |
| 2023-05-31 | 2023-06-01 | $203.93 | $207.52 | 0.94% | 2 | |
| 2023-04-05 | 2023-04-06 | $185.52 | $185.06 | -3.09% | 2 | |
| 2023-04-03 | 2023-04-04 | $194.77 | $192.58 | -5.05% | 2 |