Strategy Zoo / S1233
LongTermTrend_V1233
ARCHIVEDhybridparameterchanged macd_hist threshold 0.0 -> 1.3569
Fitness
0.3410
Generation
56
Complexity
27
Created
2026-10-07
Lineage
Parents (1)
changed macd_hist threshold 0.0 -> 1.0705; changed dist_sma_50 threshold -0.0774 -> -0.1429
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1233 [hybrid]
if flat and (((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.1429) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 1.0705 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > -2.6055):
position = 1.0
if long and macd_hist < 1.3569:
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | -4.8% | 59.7% | 16.8% | 11.4% |
| Total Return | -32.4% | 307.0% | 79.0% | 391.8% |
| Sharpe | -0.11 | 1.31 | 0.63 | 0.51 |
| Sortino | -0.10 | 1.33 | 0.62 | 0.49 |
| Calmar | -0.09 | 1.56 | 0.47 | 0.23 |
| Volatility | 22.3% | 42.6% | 33.3% | 30.4% |
| Max DD | -50.5% | -38.2% | -35.6% | -50.5% |
| Win Rate | 47.0% | 54.8% | 46.0% | 48.3% |
| Avg Win | 2.1% | 5.1% | 6.6% | 3.3% |
| Avg Loss | -2.0% | -2.9% | -3.8% | -2.4% |
| Payoff | 1.08 | 1.72 | 1.77 | 1.38 |
| Expectancy | -0.0% | 1.5% | 1.0% | 0.4% |
| Profit Factor | 0.96 | 2.09 | 1.51 | 1.29 |
| Trades | 457 | 115 | 87 | 660 |
| Avg Holding Days | 2.0 | 3.3 | 4.9 | 2.6 |
| Turnover | 114.6 | 76.7 | 46.5 | 89.6 |
| Exposure | 22.8% | 35.6% | 35.6% | 28.6% |
Growth of $100
LongTermTrend_V1233 vs TSLA Buy & Hold
LongTermTrend_V1233 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 | 8.0% | 0.68 | -12.6% | 37 |
| 2017 | -2.2% | -0.06 | -12.6% | 69 |
| 2018 | -5.9% | -0.14 | -17.9% | 52 |
| 2019 | 5.0% | 0.33 | -20.2% | 41 |
| 2020 | 131.3% | 1.72 | -38.2% | 67 |
| 2021 | 35.1% | 1.10 | -20.3% | 35 |
| 2022 | 10.7% | 0.51 | -15.8% | 12 |
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 | -11.7% | -0.45 | 28% |
| hidden test | EXPENSIVE | 83 | 138.2% | 3.01 | 53% |
| hidden test | EXTREME | 48 | 131.4% | 2.69 | 42% |
| hidden test | HIGH VOLATILITY | 254 | 8.6% | 0.20 | 39% |
| hidden test | LOW VOLATILITY | 439 | 43.8% | 1.73 | 36% |
| hidden test | MEDIUM VOLATILITY | 250 | -6.1% | -0.18 | 32% |
| hidden test | NORMAL | 812 | 2.6% | 0.09 | 33% |
| hidden test | SIDEWAYS | 294 | -8.0% | -0.27 | 35% |
| hidden test | UPTREND | 371 | 68.7% | 1.70 | 42% |
| train | DOWNTREND | 518 | -10.4% | -0.68 | 10% |
| train | EXPENSIVE | 311 | 19.7% | 0.73 | 35% |
| train | EXTREME | 100 | 97.8% | 2.47 | 46% |
| train | HIGH VOLATILITY | 699 | -1.6% | -0.06 | 21% |
| train | LOW VOLATILITY | 745 | 1.8% | 0.11 | 26% |
| train | MEDIUM VOLATILITY | 568 | -9.0% | -0.42 | 20% |
| train | NORMAL | 1,601 | -13.0% | -0.67 | 19% |
| train | SIDEWAYS | 592 | -1.2% | -0.06 | 21% |
| train | UPTREND | 902 | 1.4% | 0.05 | 31% |
| validation | DOWNTREND | 125 | 50.4% | 1.94 | 20% |
| validation | EXPENSIVE | 138 | 25.0% | 0.53 | 34% |
| validation | EXTREME | 144 | 163.6% | 2.47 | 54% |
| validation | HIGH VOLATILITY | 258 | 17.5% | 0.31 | 30% |
| validation | LOW VOLATILITY | 183 | 11.1% | 0.60 | 34% |
| validation | MEDIUM VOLATILITY | 315 | 113.3% | 2.87 | 41% |
| validation | NORMAL | 474 | 32.1% | 1.06 | 30% |
| validation | SIDEWAYS | 206 | 11.4% | 0.41 | 29% |
| validation | UPTREND | 425 | 79.1% | 1.53 | 43% |
Trades (full period)
latest 100 of 660
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-09-22 | 2026-09-28 | $378.90 | $357.45 | -1.05% | 5 | |
| 2026-09-18 | 2026-09-21 | $364.27 | $375.30 | -0.73% | 2 | |
| 2026-08-24 | 2026-09-15 | $348.95 | $356.58 | -1.27% | 16 | |
| 2026-07-01 | 2026-07-09 | $425.30 | $406.55 | -6.50% | 6 | |
| 2026-06-01 | 2026-06-02 | $415.88 | $423.74 | -4.76% | 2 | |
| 2026-05-28 | 2026-05-29 | $442.10 | $435.79 | 0.19% | 2 | |
| 2026-05-26 | 2026-05-27 | $433.59 | $440.36 | 1.58% | 2 | |
| 2026-05-21 | 2026-05-22 | $417.85 | $426.01 | -0.06% | 2 | |
| 2026-05-04 | 2026-05-20 | $392.51 | $417.26 | 3.19% | 13 | |
| 2026-04-16 | 2026-04-30 | $388.90 | $381.63 | -5.08% | 11 | |
| 2025-12-04 | 2025-12-30 | $454.53 | $454.43 | 2.68% | 18 | |
| 2025-11-06 | 2025-11-07 | $445.91 | $429.52 | -3.69% | 2 | |
| 2025-11-03 | 2025-11-04 | $468.37 | $444.26 | 2.38% | 2 | |
| 2025-10-24 | 2025-10-27 | $433.72 | $452.42 | -3.60% | 2 | |
| 2025-10-08 | 2025-10-09 | $438.69 | $435.54 | 1.09% | 2 | |
| 2025-10-06 | 2025-10-07 | $453.25 | $433.09 | 5.24% | 2 | |
| 2025-09-11 | 2025-10-03 | $368.81 | $429.83 | 25.12% | 17 | |
| 2025-09-09 | 2025-09-10 | $346.97 | $347.79 | -0.04% | 2 | |
| 2025-09-05 | 2025-09-08 | $350.84 | $346.40 | 3.43% | 2 | |
| 2025-08-27 | 2025-09-02 | $349.60 | $329.36 | -5.25% | 4 | |
| 2025-08-25 | 2025-08-26 | $346.60 | $351.67 | 1.74% | 2 | |
| 2025-08-21 | 2025-08-22 | $320.11 | $340.01 | -1.37% | 2 | |
| 2025-08-12 | 2025-08-20 | $340.84 | $323.90 | -3.06% | 7 | |
| 2025-08-08 | 2025-08-11 | $329.65 | $339.03 | 2.09% | 2 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -1.55% | 2 | |
| 2025-07-21 | 2025-07-25 | $328.49 | $316.06 | -7.57% | 5 | |
| 2025-06-25 | 2025-06-26 | $327.55 | $325.78 | -3.99% | 2 | |
| 2025-06-03 | 2025-06-04 | $344.27 | $332.05 | 0.26% | 2 | |
| 2025-04-28 | 2025-06-02 | $285.88 | $342.69 | 21.34% | 25 | |
| 2025-04-10 | 2025-04-21 | $252.40 | $227.50 | -11.51% | 7 | |
| 2024-12-27 | 2024-12-30 | $431.66 | $417.41 | -5.14% | 2 | |
| 2024-12-24 | 2024-12-26 | $462.28 | $454.13 | 7.15% | 2 | |
| 2024-12-09 | 2024-12-23 | $389.79 | $430.60 | 7.96% | 11 | |
| 2024-12-05 | 2024-12-06 | $369.49 | $389.22 | 3.03% | 2 | |
| 2024-12-03 | 2024-12-04 | $351.42 | $357.93 | -1.79% | 2 | |
| 2024-11-29 | 2024-12-02 | $345.16 | $357.09 | 3.48% | 2 | |
| 2024-11-06 | 2024-11-27 | $288.53 | $332.89 | 34.27% | 16 | |
| 2024-10-25 | 2024-11-05 | $269.19 | $251.44 | -6.96% | 8 | |
| 2024-10-09 | 2024-10-10 | $241.05 | $238.77 | -1.61% | 2 | |
| 2024-10-07 | 2024-10-08 | $240.83 | $244.50 | -3.90% | 2 | |
| 2024-09-20 | 2024-10-04 | $238.25 | $250.08 | -1.54% | 11 | |
| 2024-09-10 | 2024-09-19 | $226.17 | $243.92 | 4.85% | 8 | |
| 2024-09-06 | 2024-09-09 | $210.73 | $216.27 | -8.64% | 2 | |
| 2024-09-04 | 2024-09-05 | $219.41 | $230.17 | 3.98% | 2 | |
| 2024-08-20 | 2024-08-27 | $221.10 | $209.21 | -4.46% | 6 | |
| 2024-07-24 | 2024-07-25 | $215.99 | $220.25 | -12.52% | 2 | |
| 2024-07-22 | 2024-07-23 | $251.51 | $246.38 | 4.94% | 2 | |
| 2024-06-26 | 2024-07-19 | $196.37 | $239.20 | 32.77% | 17 | |
| 2024-06-24 | 2024-06-25 | $182.58 | $187.35 | -0.43% | 2 | |
| 2024-06-20 | 2024-06-21 | $181.57 | $183.01 | -1.98% | 2 | |
| 2024-06-17 | 2024-06-18 | $187.44 | $184.86 | 5.09% | 2 | |
| 2024-05-28 | 2024-05-29 | $176.75 | $176.19 | -1.59% | 2 | |
| 2024-05-22 | 2024-05-23 | $180.11 | $173.74 | -3.67% | 2 | |
| 2024-05-20 | 2024-05-21 | $174.95 | $186.60 | -1.61% | 2 | |
| 2024-05-16 | 2024-05-17 | $174.84 | $177.46 | 0.29% | 2 | |
| 2024-05-14 | 2024-05-15 | $177.55 | $173.99 | 3.09% | 2 | |
| 2024-04-30 | 2024-05-10 | $183.28 | $168.47 | -11.56% | 9 | |
| 2024-02-27 | 2024-03-06 | $199.73 | $176.54 | -9.54% | 7 | |
| 2023-12-29 | 2024-01-02 | $248.48 | $248.42 | -2.05% | 2 | |
| 2023-12-27 | 2023-12-28 | $261.44 | $253.18 | 1.68% | 2 | |
| 2023-12-22 | 2023-12-26 | $252.54 | $256.61 | -0.97% | 2 | |
| 2023-12-19 | 2023-12-21 | $257.22 | $254.50 | -2.15% | 3 | |
| 2023-12-15 | 2023-12-18 | $253.50 | $252.08 | 0.78% | 2 | |
| 2023-12-12 | 2023-12-13 | $237.01 | $239.29 | -1.34% | 2 | |
| 2023-12-08 | 2023-12-11 | $243.84 | $239.74 | 0.29% | 2 | |
| 2023-12-06 | 2023-12-07 | $239.37 | $242.64 | 0.07% | 2 | |
| 2023-11-16 | 2023-12-05 | $233.59 | $238.72 | -3.19% | 13 | |
| 2023-10-12 | 2023-10-13 | $258.87 | $251.12 | -1.76% | 2 | |
| 2023-10-10 | 2023-10-11 | $263.62 | $262.99 | 1.32% | 2 | |
| 2023-10-06 | 2023-10-09 | $260.53 | $259.67 | -0.02% | 2 | |
| 2023-08-30 | 2023-09-21 | $256.90 | $255.70 | 1.90% | 16 | |
| 2023-07-20 | 2023-07-21 | $262.90 | $260.02 | -9.93% | 2 | |
| 2023-07-18 | 2023-07-19 | $293.34 | $291.26 | 0.82% | 2 | |
| 2023-07-14 | 2023-07-17 | $281.38 | $290.38 | 1.05% | 2 | |
| 2023-07-12 | 2023-07-13 | $271.99 | $277.90 | 0.61% | 2 | |
| 2023-07-10 | 2023-07-11 | $269.61 | $269.79 | -1.95% | 2 | |
| 2023-07-06 | 2023-07-07 | $276.54 | $274.43 | -2.30% | 2 | |
| 2023-07-03 | 2023-07-05 | $279.82 | $282.48 | 6.69% | 2 | |
| 2023-06-29 | 2023-06-30 | $257.50 | $261.77 | 0.29% | 2 | |
| 2023-06-27 | 2023-06-28 | $250.21 | $256.24 | 3.60% | 2 | |
| 2023-05-22 | 2023-06-26 | $188.87 | $241.05 | 42.17% | 24 | |
| 2023-04-05 | 2023-04-06 | $185.52 | $185.06 | -3.86% | 2 | |
| 2023-04-03 | 2023-04-04 | $194.77 | $192.58 | -6.31% | 2 | |
| 2023-03-30 | 2023-03-31 | $195.28 | $207.46 | 0.52% | 2 | |
| 2023-03-28 | 2023-03-29 | $189.19 | $193.88 | -1.56% | 2 | |
| 2023-03-24 | 2023-03-27 | $190.41 | $191.81 | -1.14% | 2 | |
| 2023-01-27 | 2023-02-22 | $177.90 | $200.86 | 22.91% | 18 | |
| 2022-09-19 | 2022-09-22 | $309.07 | $288.59 | -1.04% | 4 | |
| 2022-09-15 | 2022-09-16 | $303.75 | $303.35 | 0.18% | 2 | |
| 2022-09-13 | 2022-09-14 | $292.13 | $302.61 | -4.23% | 2 | |
| 2022-08-24 | 2022-08-25 | $297.10 | $296.07 | 0.02% | 2 | |
| 2022-08-19 | 2022-08-22 | $296.67 | $289.91 | -2.25% | 2 | |
| 2022-08-17 | 2022-08-18 | $304.00 | $302.87 | -1.04% | 2 | |
| 2022-08-15 | 2022-08-16 | $309.32 | $306.56 | 2.89% | 2 | |
| 2022-08-11 | 2022-08-12 | $286.63 | $300.03 | -2.82% | 2 | |
| 2022-06-24 | 2022-08-10 | $245.71 | $294.36 | 20.30% | 33 | |
| 2022-03-21 | 2022-04-11 | $307.05 | $325.31 | 13.04% | 16 | |
| 2022-01-12 | 2022-01-13 | $368.74 | $343.85 | 3.73% | 2 | |
| 2021-12-28 | 2022-01-10 | $362.82 | $352.71 | -6.31% | 10 | |
| 2021-11-11 | 2021-11-12 | $354.50 | $344.47 | -0.62% | 2 |