Strategy Zoo / S0962
LongTermTrend_V0962
ARCHIVEDhybridllmAdded regime gates to avoid high-volatility/EXTREME bubble regimes; reduced base position to 0.7 for robustness; simplified and consolidated entry logic into clear momentum/breakout/long-term trend paths; added a volatility percentile gate (vol_pctile < 0.9) to avoid entries in extreme volatility; strengthened exit to also cut on price crossing below sma_50 or large negative distance from sma_50 (dist_sma_50 < -0.15) in addition to macd_hist < 0.0.
Fitness
0.3186
Generation
44
Complexity
18
Created
2026-10-01
Lineage
Parents (1)
added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V0962 [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and ((close > sma_200 or (breakout_50 == 1 and rel_volume > 1.5) or (macd_hist > 0.0 and close > sma_50)) and sma_20 < close and vol_pctile < 0.9):
position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or dist_sma_50 < -0.15):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 0.0% | 26.8% | -4.8% | 3.8% |
| Total Return | 0.1% | 103.9% | -16.6% | 73.6% |
| Sharpe | 0.07 | 1.36 | -0.21 | 0.31 |
| Sortino | 0.06 | 1.30 | -0.16 | 0.26 |
| Calmar | 0.00 | 1.55 | -0.15 | 0.10 |
| Volatility | 15.0% | 18.7% | 16.8% | 16.3% |
| Max DD | -37.0% | -17.3% | -31.2% | -37.0% |
| Win Rate | 36.2% | 52.9% | 30.6% | 38.2% |
| Avg Win | 3.0% | 4.7% | 4.4% | 3.9% |
| Avg Loss | -1.7% | -1.9% | -2.2% | -1.9% |
| Payoff | 1.74 | 2.48 | 1.99 | 2.07 |
| Expectancy | -0.0% | 1.6% | -0.2% | 0.3% |
| Profit Factor | 0.99 | 2.79 | 0.88 | 1.28 |
| Trades | 141 | 51 | 62 | 254 |
| Avg Holding Days | 4.3 | 5.0 | 4.6 | 4.6 |
| Turnover | 24.8 | 23.8 | 23.3 | 24.2 |
| Exposure | 16.5% | 18.8% | 16.8% | 17.1% |
Growth of $100
LongTermTrend_V0962 vs TSLA Buy & Hold
LongTermTrend_V0962 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 | -5.8% | -0.62 | -10.4% | 13 |
| 2017 | 7.6% | 0.58 | -9.1% | 25 |
| 2018 | -10.2% | -1.08 | -13.7% | 8 |
| 2019 | -2.0% | -0.00 | -17.3% | 7 |
| 2020 | 62.6% | 2.67 | -7.4% | 11 |
| 2021 | 23.1% | 1.05 | -15.5% | 30 |
| 2022 | 1.8% | 0.20 | -13.7% | 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 | 275 | -2.5% | -1.42 | 1% |
| hidden test | EXPENSIVE | 83 | -3.5% | -0.15 | 28% |
| hidden test | EXTREME | 48 | 0.0% | 0.00 | 0% |
| hidden test | HIGH VOLATILITY | 254 | -7.6% | -0.63 | 1% |
| hidden test | LOW VOLATILITY | 434 | 15.7% | 0.94 | 24% |
| hidden test | MEDIUM VOLATILITY | 251 | -32.5% | -1.60 | 20% |
| hidden test | NORMAL | 808 | -3.7% | -0.22 | 17% |
| hidden test | SIDEWAYS | 293 | -22.8% | -1.28 | 26% |
| hidden test | UPTREND | 371 | 11.1% | 0.52 | 22% |
| train | DOWNTREND | 518 | -5.7% | -1.21 | 1% |
| train | EXPENSIVE | 311 | 29.3% | 1.57 | 24% |
| train | EXTREME | 100 | 8.1% | 1.55 | 1% |
| train | HIGH VOLATILITY | 699 | 6.4% | 0.45 | 1% |
| train | LOW VOLATILITY | 745 | 10.6% | 0.73 | 29% |
| train | MEDIUM VOLATILITY | 568 | -17.8% | -1.10 | 19% |
| train | NORMAL | 1,601 | -4.8% | -0.33 | 16% |
| train | SIDEWAYS | 592 | -12.3% | -0.81 | 19% |
| train | UPTREND | 902 | 13.8% | 0.75 | 24% |
| validation | DOWNTREND | 125 | -0.3% | -2.02 | 0% |
| validation | EXPENSIVE | 138 | 84.2% | 3.33 | 29% |
| validation | EXTREME | 144 | 37.2% | 2.86 | 2% |
| validation | HIGH VOLATILITY | 258 | -5.8% | -0.66 | 1% |
| validation | LOW VOLATILITY | 183 | 6.2% | 0.41 | 33% |
| validation | MEDIUM VOLATILITY | 315 | 62.3% | 2.47 | 26% |
| validation | NORMAL | 474 | 4.8% | 0.27 | 21% |
| validation | SIDEWAYS | 206 | -6.7% | -0.40 | 20% |
| validation | UPTREND | 425 | 48.7% | 2.22 | 24% |
Trades (full period)
latest 100 of 254
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-07-01 | 2026-07-06 | $425.30 | $419.77 | -4.63% | 3 | |
| 2026-05-27 | 2026-06-02 | $440.36 | $423.74 | -2.99% | 5 | |
| 2026-05-22 | 2026-05-26 | $426.01 | $433.59 | 1.23% | 2 | |
| 2026-05-08 | 2026-05-21 | $428.35 | $417.85 | 0.88% | 10 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.56% | 2 | |
| 2026-03-12 | 2026-03-13 | $395.01 | $391.20 | -2.34% | 2 | |
| 2026-02-26 | 2026-02-27 | $408.58 | $402.51 | -1.62% | 2 | |
| 2026-02-12 | 2026-02-13 | $417.07 | $417.44 | -1.97% | 2 | |
| 2026-01-23 | 2026-01-26 | $449.06 | $435.20 | -0.19% | 2 | |
| 2025-12-03 | 2025-12-30 | $446.74 | $454.43 | 4.89% | 19 | |
| 2025-12-01 | 2025-12-02 | $430.14 | $429.24 | -0.14% | 2 | |
| 2025-11-06 | 2025-11-07 | $445.91 | $429.52 | -2.59% | 2 | |
| 2025-11-03 | 2025-11-05 | $468.37 | $462.07 | -1.99% | 3 | |
| 2025-10-30 | 2025-10-31 | $440.10 | $456.56 | -3.39% | 2 | |
| 2025-10-28 | 2025-10-29 | $460.55 | $461.51 | 1.12% | 2 | |
| 2025-10-24 | 2025-10-27 | $433.72 | $452.42 | -2.52% | 2 | |
| 2025-10-22 | 2025-10-23 | $438.97 | $448.98 | -0.71% | 2 | |
| 2025-10-20 | 2025-10-21 | $447.43 | $442.60 | 1.15% | 2 | |
| 2025-10-16 | 2025-10-17 | $428.75 | $439.31 | -1.17% | 2 | |
| 2025-10-14 | 2025-10-15 | $429.24 | $435.15 | -1.21% | 2 | |
| 2025-10-09 | 2025-10-10 | $435.54 | $413.49 | -0.64% | 2 | |
| 2025-10-07 | 2025-10-08 | $433.09 | $438.69 | -3.25% | 2 | |
| 2025-09-05 | 2025-10-06 | $350.84 | $453.25 | 18.31% | 22 | |
| 2025-08-25 | 2025-09-03 | $346.60 | $334.09 | -2.32% | 7 | |
| 2025-08-11 | 2025-08-21 | $339.03 | $320.11 | -1.34% | 9 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -1.08% | 2 | |
| 2025-07-21 | 2025-07-25 | $328.49 | $316.06 | -5.29% | 5 | |
| 2025-07-17 | 2025-07-18 | $319.41 | $329.65 | -0.63% | 2 | |
| 2025-06-04 | 2025-06-05 | $332.05 | $284.70 | -2.62% | 2 | |
| 2025-05-19 | 2025-06-03 | $342.09 | $344.27 | -1.52% | 11 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 4.58% | 2 | |
| 2024-10-09 | 2024-10-10 | $241.05 | $238.77 | -1.13% | 2 | |
| 2024-10-07 | 2024-10-08 | $240.83 | $244.50 | -2.73% | 2 | |
| 2024-09-23 | 2024-10-04 | $250.00 | $250.08 | 0.63% | 10 | |
| 2024-09-16 | 2024-09-20 | $226.78 | $238.25 | 4.02% | 5 | |
| 2024-09-05 | 2024-09-09 | $230.17 | $216.27 | -2.82% | 3 | |
| 2024-09-03 | 2024-09-04 | $210.60 | $219.41 | -1.29% | 2 | |
| 2024-06-17 | 2024-07-12 | $187.44 | $248.23 | 23.89% | 18 | |
| 2024-01-03 | 2024-01-04 | $238.45 | $237.93 | -2.95% | 2 | |
| 2023-12-15 | 2024-01-02 | $253.50 | $248.42 | -0.80% | 11 | |
| 2023-11-29 | 2023-12-14 | $244.14 | $251.05 | -2.24% | 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.17% | 2 | |
| 2023-11-20 | 2023-11-21 | $235.60 | $241.20 | 0.25% | 2 | |
| 2023-11-16 | 2023-11-17 | $233.59 | $234.30 | -2.80% | 2 | |
| 2023-11-14 | 2023-11-15 | $237.41 | $242.84 | 4.14% | 2 | |
| 2023-10-18 | 2023-10-19 | $242.68 | $220.11 | -3.48% | 2 | |
| 2023-10-05 | 2023-10-17 | $260.05 | $254.85 | -2.07% | 9 | |
| 2023-09-12 | 2023-09-22 | $267.48 | $244.88 | -4.72% | 9 | |
| 2023-09-08 | 2023-09-11 | $248.50 | $273.58 | -0.97% | 2 | |
| 2023-09-06 | 2023-09-07 | $251.92 | $251.49 | -1.39% | 2 | |
| 2023-08-30 | 2023-09-05 | $256.90 | $256.49 | -3.44% | 4 | |
| 2023-07-20 | 2023-07-21 | $262.90 | $260.02 | -6.95% | 2 | |
| 2023-07-18 | 2023-07-19 | $293.34 | $291.26 | 0.57% | 2 | |
| 2023-07-14 | 2023-07-17 | $281.38 | $290.38 | 0.74% | 2 | |
| 2023-07-12 | 2023-07-13 | $271.99 | $277.90 | 0.43% | 2 | |
| 2023-07-10 | 2023-07-11 | $269.61 | $269.79 | -1.37% | 2 | |
| 2023-07-05 | 2023-07-07 | $282.48 | $274.43 | -0.95% | 3 | |
| 2023-06-30 | 2023-07-03 | $261.77 | $279.82 | 1.02% | 2 | |
| 2023-06-28 | 2023-06-29 | $256.24 | $257.50 | 1.55% | 2 | |
| 2023-05-31 | 2023-06-27 | $203.93 | $250.21 | 13.57% | 19 | |
| 2023-03-24 | 2023-04-06 | $190.41 | $185.06 | -2.49% | 10 | |
| 2022-09-12 | 2022-09-23 | $304.42 | $275.33 | -2.68% | 10 | |
| 2022-08-16 | 2022-08-19 | $306.56 | $296.67 | -1.60% | 4 | |
| 2022-08-02 | 2022-08-12 | $300.59 | $300.03 | -2.57% | 9 | |
| 2022-03-18 | 2022-04-11 | $301.80 | $325.31 | 12.16% | 17 | |
| 2022-03-10 | 2022-03-11 | $279.43 | $265.12 | -1.82% | 2 | |
| 2022-03-03 | 2022-03-04 | $279.76 | $279.43 | -3.37% | 2 | |
| 2022-02-16 | 2022-02-17 | $307.80 | $292.12 | -0.07% | 2 | |
| 2022-01-12 | 2022-01-13 | $368.74 | $343.85 | 2.61% | 2 | |
| 2021-12-27 | 2022-01-03 | $364.65 | $399.93 | -0.80% | 6 | |
| 2021-11-30 | 2021-12-01 | $381.59 | $365.00 | 0.34% | 2 | |
| 2021-11-23 | 2021-11-24 | $369.68 | $372.00 | -3.03% | 2 | |
| 2021-10-12 | 2021-11-10 | $268.57 | $355.98 | 20.11% | 22 | |
| 2021-10-08 | 2021-10-11 | $261.83 | $263.98 | -0.86% | 2 | |
| 2021-09-28 | 2021-10-07 | $259.19 | $264.54 | -0.90% | 8 | |
| 2021-09-24 | 2021-09-27 | $258.13 | $263.79 | 1.79% | 2 | |
| 2021-09-22 | 2021-09-23 | $250.65 | $251.21 | 1.05% | 2 | |
| 2021-08-30 | 2021-09-21 | $243.64 | $246.46 | 1.69% | 16 | |
| 2021-08-26 | 2021-08-27 | $233.72 | $237.31 | -1.13% | 2 | |
| 2021-08-24 | 2021-08-25 | $236.16 | $237.07 | 0.08% | 2 | |
| 2021-08-19 | 2021-08-20 | $224.49 | $226.75 | -1.72% | 2 | |
| 2021-07-30 | 2021-08-17 | $229.07 | $221.90 | 0.82% | 13 | |
| 2021-07-13 | 2021-07-15 | $222.85 | $216.87 | -3.45% | 3 | |
| 2021-06-24 | 2021-07-12 | $226.61 | $228.57 | -0.06% | 12 | |
| 2021-06-22 | 2021-06-23 | $207.90 | $218.86 | 0.18% | 2 | |
| 2021-06-18 | 2021-06-21 | $207.77 | $206.94 | 0.62% | 2 | |
| 2021-06-15 | 2021-06-16 | $199.79 | $201.62 | -2.22% | 2 | |
| 2021-06-11 | 2021-06-14 | $203.30 | $205.90 | -0.17% | 2 | |
| 2021-06-02 | 2021-06-03 | $201.71 | $190.95 | -2.25% | 2 | |
| 2021-05-28 | 2021-06-01 | $208.41 | $207.97 | -0.76% | 2 | |
| 2021-04-14 | 2021-04-29 | $244.08 | $225.67 | -6.38% | 12 | |
| 2021-04-12 | 2021-04-13 | $233.99 | $254.11 | 2.44% | 2 | |
| 2021-04-08 | 2021-04-09 | $227.93 | $225.67 | 1.20% | 2 | |
| 2021-02-08 | 2021-02-09 | $287.81 | $283.15 | 0.78% | 2 | |
| 2021-02-04 | 2021-02-05 | $283.33 | $284.08 | -0.52% | 2 | |
| 2021-02-02 | 2021-02-03 | $290.93 | $284.90 | 2.61% | 2 | |
| 2021-01-28 | 2021-01-29 | $278.48 | $264.51 | -2.47% | 2 | |
| 2021-01-26 | 2021-01-27 | $294.36 | $288.05 | 0.04% | 2 | |
| 2021-01-12 | 2021-01-25 | $283.15 | $293.60 | 2.93% | 9 |