Strategy Zoo / S1063
LongTermTrend_V1063
ARCHIVEDhybridstructuraladded entry filter: sma_50_slope > -0.005
Fitness
0.6364
Generation
48
Complexity
28
Created
2026-10-02
Lineage
Parents (1)
added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1063 [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.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > -2.6055 and sma_50_slope > -0.005):
position = 1.0
if long and macd_hist < 0.0:
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 17.9% | 84.3% | 23.7% | 31.0% |
| Total Return | 273.5% | 526.0% | 121.4% | 5228.3% |
| Sharpe | 0.67 | 1.61 | 0.81 | 0.94 |
| Sortino | 0.69 | 1.82 | 0.86 | 1.00 |
| Calmar | 0.34 | 3.40 | 0.65 | 0.58 |
| Volatility | 32.4% | 43.8% | 32.9% | 35.2% |
| Max DD | -53.3% | -24.8% | -36.6% | -53.3% |
| Win Rate | 43.7% | 52.9% | 39.1% | 44.8% |
| Avg Win | 8.7% | 11.2% | 11.6% | 10.2% |
| Avg Loss | -3.8% | -3.0% | -3.8% | -3.6% |
| Payoff | 2.27 | 3.74 | 3.08 | 2.81 |
| Expectancy | 1.6% | 4.5% | 2.2% | 2.6% |
| Profit Factor | 1.76 | 4.20 | 1.98 | 2.29 |
| Trades | 126 | 51 | 46 | 223 |
| Avg Holding Days | 7.5 | 7.2 | 9.2 | 7.8 |
| Turnover | 31.7 | 34.0 | 24.7 | 30.3 |
| Exposure | 41.3% | 41.5% | 40.1% | 41.0% |
Growth of $100
LongTermTrend_V1063 vs TSLA Buy & Hold
LongTermTrend_V1063 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 | 20.4% | 1.16 | -16.4% | 10 |
| 2017 | 1.5% | 0.18 | -24.2% | 21 |
| 2018 | -13.6% | -0.39 | -24.3% | 12 |
| 2019 | 11.8% | 0.49 | -29.2% | 8 |
| 2020 | 368.3% | 2.79 | -24.8% | 27 |
| 2021 | 28.4% | 0.94 | -18.0% | 15 |
| 2022 | -8.9% | -0.25 | -17.6% | 8 |
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 | 276 | 7.0% | 0.33 | 25% |
| hidden test | EXPENSIVE | 83 | 69.5% | 1.48 | 54% |
| hidden test | EXTREME | 48 | 151.9% | 3.23 | 46% |
| hidden test | HIGH VOLATILITY | 254 | 32.8% | 0.82 | 39% |
| hidden test | LOW VOLATILITY | 436 | 58.9% | 2.23 | 41% |
| hidden test | MEDIUM VOLATILITY | 250 | -35.8% | -1.02 | 40% |
| hidden test | NORMAL | 809 | 14.8% | 0.50 | 38% |
| hidden test | SIDEWAYS | 293 | 5.7% | 0.18 | 47% |
| hidden test | UPTREND | 371 | 57.9% | 1.45 | 46% |
| train | DOWNTREND | 518 | -5.6% | -0.29 | 20% |
| train | EXPENSIVE | 311 | 40.4% | 1.14 | 58% |
| train | EXTREME | 100 | 342.1% | 4.79 | 82% |
| train | HIGH VOLATILITY | 699 | 46.8% | 1.10 | 40% |
| train | LOW VOLATILITY | 745 | 27.8% | 1.20 | 47% |
| train | MEDIUM VOLATILITY | 568 | -17.3% | -0.62 | 35% |
| train | NORMAL | 1,601 | -2.0% | -0.07 | 35% |
| train | SIDEWAYS | 592 | 13.9% | 0.52 | 40% |
| train | UPTREND | 902 | 42.4% | 1.04 | 54% |
| validation | DOWNTREND | 125 | 38.5% | 2.00 | 6% |
| validation | EXPENSIVE | 138 | 65.4% | 1.65 | 43% |
| validation | EXTREME | 144 | 264.0% | 3.51 | 74% |
| validation | HIGH VOLATILITY | 258 | 78.6% | 1.38 | 34% |
| validation | LOW VOLATILITY | 183 | 26.2% | 1.10 | 50% |
| validation | MEDIUM VOLATILITY | 315 | 89.8% | 2.22 | 43% |
| validation | NORMAL | 474 | 13.4% | 0.46 | 31% |
| validation | SIDEWAYS | 206 | -6.1% | -0.22 | 32% |
| validation | UPTREND | 425 | 117.2% | 2.17 | 57% |
Trades (full period)
latest 100 of 223
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-09-18 | 2026-09-29 | $364.27 | $352.84 | -2.58% | 8 | |
| 2026-08-24 | 2026-09-17 | $348.95 | $366.20 | -1.52% | 18 | |
| 2026-07-01 | 2026-07-15 | $425.30 | $394.46 | -5.99% | 10 | |
| 2026-05-27 | 2026-06-02 | $440.36 | $423.74 | -4.27% | 5 | |
| 2026-05-22 | 2026-05-26 | $426.01 | $433.59 | 1.75% | 2 | |
| 2026-04-16 | 2026-05-21 | $388.90 | $417.85 | 6.24% | 26 | |
| 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-05 | $468.37 | $462.07 | -2.89% | 3 | |
| 2025-10-24 | 2025-10-27 | $433.72 | $452.42 | -3.60% | 2 | |
| 2025-10-07 | 2025-10-08 | $433.09 | $438.69 | -4.64% | 2 | |
| 2025-09-05 | 2025-10-06 | $350.84 | $453.25 | 26.72% | 22 | |
| 2025-08-25 | 2025-09-03 | $346.60 | $334.09 | -3.32% | 7 | |
| 2025-08-08 | 2025-08-22 | $329.65 | $340.01 | -0.87% | 11 | |
| 2025-07-21 | 2025-08-01 | $328.49 | $302.63 | -6.67% | 10 | |
| 2025-06-25 | 2025-06-26 | $327.55 | $325.78 | -3.99% | 2 | |
| 2025-06-04 | 2025-06-05 | $332.05 | $284.70 | -3.75% | 2 | |
| 2025-05-07 | 2025-06-03 | $276.22 | $344.27 | 24.21% | 19 | |
| 2024-12-30 | 2024-12-31 | $417.41 | $403.84 | -3.50% | 2 | |
| 2024-12-26 | 2024-12-27 | $454.13 | $431.66 | -1.96% | 2 | |
| 2024-12-06 | 2024-12-24 | $389.22 | $462.28 | 16.31% | 13 | |
| 2024-12-04 | 2024-12-05 | $357.93 | $369.49 | 1.65% | 2 | |
| 2024-12-02 | 2024-12-03 | $357.09 | $351.42 | 3.25% | 2 | |
| 2024-10-25 | 2024-11-29 | $269.19 | $345.16 | 27.55% | 25 | |
| 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-04 | 2024-10-04 | $219.41 | $250.08 | 14.05% | 23 | |
| 2024-08-20 | 2024-08-30 | $221.10 | $214.11 | -7.57% | 9 | |
| 2024-07-23 | 2024-07-24 | $246.38 | $215.99 | -2.24% | 2 | |
| 2024-06-17 | 2024-07-22 | $187.44 | $251.51 | 34.11% | 24 | |
| 2024-04-30 | 2024-05-30 | $183.28 | $178.79 | -9.39% | 22 | |
| 2023-12-15 | 2024-01-02 | $253.50 | $248.42 | -1.22% | 11 | |
| 2023-11-16 | 2023-12-14 | $233.59 | $251.05 | -1.66% | 20 | |
| 2023-10-06 | 2023-10-17 | $260.53 | $254.85 | -2.55% | 8 | |
| 2023-08-30 | 2023-09-25 | $256.90 | $246.99 | -4.97% | 18 | |
| 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-05 | 2023-07-07 | $282.48 | $274.43 | -1.37% | 3 | |
| 2023-06-30 | 2023-07-03 | $261.77 | $279.82 | 1.46% | 2 | |
| 2023-06-28 | 2023-06-29 | $256.24 | $257.50 | 2.21% | 2 | |
| 2023-05-22 | 2023-06-27 | $188.87 | $250.21 | 33.55% | 25 | |
| 2023-03-24 | 2023-04-06 | $190.41 | $185.06 | -3.68% | 10 | |
| 2023-02-02 | 2023-02-23 | $188.27 | $202.07 | 10.50% | 15 | |
| 2022-09-13 | 2022-09-23 | $292.13 | $275.33 | -5.39% | 9 | |
| 2022-08-24 | 2022-08-25 | $297.10 | $296.07 | 0.02% | 2 | |
| 2022-08-22 | 2022-08-23 | $289.91 | $296.45 | -2.47% | 2 | |
| 2022-08-15 | 2022-08-19 | $309.32 | $296.67 | 0.75% | 5 | |
| 2022-07-21 | 2022-08-12 | $271.71 | $300.03 | 15.59% | 17 | |
| 2022-03-23 | 2022-04-11 | $333.04 | $325.31 | 2.96% | 14 | |
| 2022-01-13 | 2022-01-14 | $343.85 | $349.87 | -6.94% | 2 | |
| 2021-12-28 | 2022-01-12 | $362.82 | $368.74 | -2.90% | 12 | |
| 2021-10-12 | 2021-11-11 | $268.57 | $354.50 | 34.59% | 23 | |
| 2021-10-08 | 2021-10-11 | $261.83 | $263.98 | -1.22% | 2 | |
| 2021-09-27 | 2021-10-07 | $263.79 | $264.54 | 0.88% | 9 | |
| 2021-09-23 | 2021-09-24 | $251.21 | $258.13 | 0.03% | 2 | |
| 2021-08-31 | 2021-09-21 | $245.24 | $246.46 | -0.30% | 15 | |
| 2021-08-26 | 2021-08-27 | $233.72 | $237.31 | -1.61% | 2 | |
| 2021-08-24 | 2021-08-25 | $236.16 | $237.07 | 0.11% | 2 | |
| 2021-08-19 | 2021-08-20 | $224.49 | $226.75 | -2.45% | 2 | |
| 2021-08-02 | 2021-08-17 | $236.56 | $221.90 | -0.35% | 12 | |
| 2021-07-13 | 2021-07-15 | $222.85 | $216.87 | -4.91% | 3 | |
| 2021-06-14 | 2021-07-12 | $205.90 | $228.57 | 7.50% | 20 | |
| 2021-04-14 | 2021-04-29 | $244.08 | $225.67 | -9.10% | 12 | |
| 2021-01-28 | 2021-01-29 | $278.48 | $264.51 | -3.52% | 2 | |
| 2021-01-26 | 2021-01-27 | $294.36 | $288.05 | 0.06% | 2 | |
| 2021-01-05 | 2021-01-25 | $245.04 | $293.60 | 15.78% | 14 | |
| 2020-12-31 | 2021-01-04 | $235.22 | $243.26 | 1.37% | 2 | |
| 2020-12-29 | 2020-12-30 | $222.00 | $231.59 | 0.15% | 2 | |
| 2020-12-24 | 2020-12-28 | $220.59 | $221.23 | 2.24% | 2 | |
| 2020-12-18 | 2020-12-23 | $231.67 | $215.33 | -2.56% | 4 | |
| 2020-11-18 | 2020-12-17 | $162.21 | $218.63 | 40.75% | 21 | |
| 2020-11-09 | 2020-11-11 | $140.42 | $139.04 | -4.75% | 3 | |
| 2020-10-14 | 2020-10-20 | $153.77 | $140.65 | -3.73% | 5 | |
| 2020-10-12 | 2020-10-13 | $147.43 | $148.88 | 1.71% | 2 | |
| 2020-10-08 | 2020-10-09 | $141.97 | $144.67 | -0.05% | 2 | |
| 2020-09-22 | 2020-09-23 | $141.41 | $126.79 | -5.79% | 2 | |
| 2020-09-18 | 2020-09-21 | $147.38 | $149.80 | 4.22% | 2 | |
| 2020-09-16 | 2020-09-17 | $147.25 | $141.14 | -1.98% | 2 | |
| 2020-08-18 | 2020-09-08 | $125.81 | $110.07 | 13.72% | 15 | |
| 2020-08-14 | 2020-08-17 | $110.05 | $122.38 | 1.63% | 2 | |
| 2020-07-30 | 2020-07-31 | $99.17 | $95.38 | -0.97% | 2 | |
| 2020-07-28 | 2020-07-29 | $98.43 | $99.94 | -4.29% | 2 | |
| 2020-07-02 | 2020-07-27 | $80.58 | $102.64 | 26.32% | 17 | |
| 2020-06-30 | 2020-07-01 | $71.99 | $74.64 | 6.77% | 2 | |
| 2020-06-26 | 2020-06-29 | $63.98 | $67.29 | -2.86% | 2 | |
| 2020-06-03 | 2020-06-25 | $58.86 | $65.73 | 8.78% | 17 | |
| 2020-06-01 | 2020-06-02 | $59.87 | $58.77 | 7.35% | 2 | |
| 2020-05-28 | 2020-05-29 | $53.72 | $55.67 | -1.96% | 2 | |
| 2020-05-26 | 2020-05-27 | $54.59 | $54.68 | 0.04% | 2 | |
| 2020-05-21 | 2020-05-22 | $55.17 | $54.46 | 1.27% | 2 | |
| 2020-05-19 | 2020-05-20 | $53.87 | $54.37 | -0.89% | 2 | |
| 2020-05-15 | 2020-05-18 | $53.28 | $54.24 | -0.72% | 2 | |
| 2020-04-14 | 2020-05-14 | $47.33 | $53.56 | 21.28% | 23 | |
| 2019-12-16 | 2020-02-26 | $25.43 | $51.92 | 122.76% | 49 | |
| 2019-11-22 | 2019-11-25 | $22.20 | $22.42 | -6.33% | 2 | |
| 2019-10-11 | 2019-11-21 | $16.53 | $23.66 | 43.63% | 30 | |
| 2019-10-02 | 2019-10-04 | $16.21 | $15.43 | -4.96% | 3 |