Strategy Zoo / S1577
LongTermTrend_V1577
ARCHIVEDhybridcrossoverlogic of LongTermTrend_V1513 with risk overlay of PriceMomentum_V1423
Fitness
0.4408
Generation
73
Complexity
13
Created
2026-10-14
Lineage
Parents (2)
swapped indicator ret_20d -> ret_1d
added entry filter: sma_50_slope > -0.005
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1577 [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > -0.0012) or ret_20d > 0.0257) and ret_20d > 0.05 and cumret_252d > -0.1997) and ret_20d > 0.05 and sma_50_slope > -0.005):
position = 1.0
if long and ret_20d < -0.1003:
position = 0.0 # exit to cash
if regime.volatility == "HIGH_VOLATILITY": position *= 0.41Backtest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 4.4% | 85.5% | 2.7% | 17.1% |
| Total Return | 41.4% | 538.3% | 10.6% | 927.7% |
| Sharpe | 0.29 | 1.70 | 0.25 | 0.63 |
| Sortino | 0.33 | 2.16 | 0.24 | 0.71 |
| Calmar | 0.06 | 1.79 | 0.05 | 0.23 |
| Volatility | 31.8% | 41.2% | 33.1% | 34.3% |
| Max DD | -73.3% | -47.8% | -55.1% | -73.3% |
| Win Rate | 34.6% | 55.6% | 30.8% | 37.5% |
| Avg Win | 27.4% | 66.9% | 26.6% | 43.3% |
| Avg Loss | -11.1% | -12.1% | -9.5% | -10.7% |
| Payoff | 2.47 | 5.55 | 2.80 | 4.04 |
| Expectancy | 2.2% | 31.8% | 1.6% | 9.5% |
| Profit Factor | 1.31 | 6.93 | 1.25 | 2.42 |
| Trades | 26 | 9 | 13 | 48 |
| Avg Holding Days | 49.8 | 54.0 | 36.7 | 48.6 |
| Turnover | 10.3 | 8.0 | 8.4 | 9.3 |
| Exposure | 55.4% | 52.4% | 46.2% | 52.5% |
Growth of $100
LongTermTrend_V1577 vs TSLA Buy & Hold
LongTermTrend_V1577 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 | -26.8% | -1.04 | -46.0% | 4 |
| 2017 | 12.2% | 0.53 | -31.6% | 2 |
| 2018 | -10.4% | -0.28 | -23.0% | 4 |
| 2019 | -5.5% | -0.00 | -45.1% | 3 |
| 2020 | 533.1% | 3.93 | -15.9% | 2 |
| 2021 | 51.8% | 1.24 | -25.3% | 3 |
| 2022 | -36.4% | -1.40 | -39.4% | 4 |
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 | 279 | -26.8% | -1.03 | 29% |
| hidden test | EXPENSIVE | 83 | 78.3% | 1.90 | 65% |
| hidden test | EXTREME | 48 | 103.9% | 2.75 | 41% |
| hidden test | HIGH VOLATILITY | 254 | -20.3% | -0.67 | 19% |
| hidden test | LOW VOLATILITY | 443 | 51.8% | 1.64 | 59% |
| hidden test | MEDIUM VOLATILITY | 251 | -39.7% | -1.05 | 51% |
| hidden test | NORMAL | 817 | -4.5% | -0.14 | 45% |
| hidden test | SIDEWAYS | 298 | -7.1% | -0.23 | 52% |
| hidden test | UPTREND | 371 | 46.9% | 1.21 | 54% |
| train | DOWNTREND | 518 | -33.1% | -1.33 | 39% |
| train | EXPENSIVE | 311 | 68.1% | 1.78 | 63% |
| train | EXTREME | 100 | 211.4% | 5.29 | 59% |
| train | HIGH VOLATILITY | 699 | 20.1% | 0.61 | 26% |
| train | LOW VOLATILITY | 745 | 24.4% | 0.88 | 75% |
| train | MEDIUM VOLATILITY | 568 | -23.5% | -0.67 | 66% |
| train | NORMAL | 1,601 | -14.6% | -0.49 | 54% |
| train | SIDEWAYS | 592 | -16.3% | -0.55 | 46% |
| train | UPTREND | 902 | 50.6% | 1.39 | 71% |
| validation | DOWNTREND | 125 | 18.7% | 1.38 | 5% |
| validation | EXPENSIVE | 138 | 98.5% | 1.95 | 77% |
| validation | EXTREME | 144 | 277.5% | 5.41 | 54% |
| validation | HIGH VOLATILITY | 258 | 76.3% | 2.07 | 23% |
| validation | LOW VOLATILITY | 183 | 41.1% | 1.30 | 79% |
| validation | MEDIUM VOLATILITY | 315 | 82.2% | 1.68 | 61% |
| validation | NORMAL | 474 | -0.9% | -0.03 | 45% |
| validation | SIDEWAYS | 206 | -21.7% | -0.60 | 52% |
| validation | UPTREND | 425 | 130.0% | 2.71 | 67% |
Trades (full period)
49 trades
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-08-21 | — | $362.86 | — | 9.43% | 37 | OPEN |
| 2026-07-13 | 2026-07-24 | $394.76 | $313.03 | -20.89% | 10 | |
| 2026-04-20 | 2026-06-10 | $392.50 | $381.59 | -1.18% | 37 | |
| 2025-12-15 | 2026-01-16 | $475.31 | $437.50 | -4.63% | 23 | |
| 2025-07-31 | 2025-11-21 | $308.27 | $391.09 | 23.63% | 81 | |
| 2025-05-07 | 2025-07-02 | $276.22 | $315.65 | -4.58% | 39 | |
| 2024-11-07 | 2025-01-17 | $296.91 | $426.50 | 20.07% | 48 | |
| 2024-09-04 | 2024-10-22 | $219.41 | $217.97 | -0.40% | 35 | |
| 2024-04-30 | 2024-08-02 | $183.28 | $207.67 | 26.23% | 66 | |
| 2024-04-15 | 2024-04-19 | $161.48 | $147.05 | -12.53% | 5 | |
| 2024-02-26 | 2024-03-15 | $199.40 | $163.57 | -15.52% | 15 | |
| 2023-11-17 | 2024-01-17 | $234.30 | $215.55 | -6.04% | 40 | |
| 2023-09-12 | 2023-10-20 | $267.48 | $211.99 | -19.71% | 29 | |
| 2023-05-24 | 2023-08-03 | $182.90 | $259.32 | 36.51% | 49 | |
| 2022-09-21 | 2022-10-04 | $300.80 | $249.44 | -21.64% | 10 | |
| 2022-07-22 | 2022-09-01 | $272.24 | $277.16 | 1.23% | 30 | |
| 2022-03-23 | 2022-04-27 | $333.04 | $293.84 | -12.00% | 25 | |
| 2022-01-04 | 2022-01-25 | $383.20 | $306.13 | -8.75% | 15 | |
| 2021-06-14 | 2021-12-03 | $205.90 | $338.32 | 65.06% | 122 | |
| 2021-04-05 | 2021-05-11 | $230.35 | $205.73 | -5.87% | 27 | |
| 2020-10-07 | 2021-02-23 | $141.77 | $232.95 | 65.68% | 95 | |
| 2020-04-14 | 2020-09-30 | $47.33 | $143.00 | 141.57% | 119 | |
| 2019-09-12 | 2020-03-05 | $16.39 | $48.30 | 154.11% | 121 | |
| 2019-07-16 | 2019-08-15 | $16.83 | $14.38 | -11.31% | 23 | |
| 2019-04-04 | 2019-04-29 | $17.85 | $16.10 | -20.62% | 17 | |
| 2019-02-28 | 2019-03-06 | $21.33 | $18.42 | -12.31% | 5 | |
| 2018-10-29 | 2019-01-03 | $22.32 | $20.02 | -4.27% | 45 | |
| 2018-10-04 | 2018-10-09 | $18.79 | $17.52 | -6.42% | 4 | |
| 2018-08-03 | 2018-08-31 | $23.21 | $20.11 | -5.43% | 21 | |
| 2018-04-27 | 2018-07-16 | $19.61 | $20.67 | 7.18% | 55 | |
| 2017-12-12 | 2018-03-23 | $22.74 | $20.10 | -6.54% | 70 | |
| 2017-08-04 | 2017-11-03 | $23.79 | $20.41 | -13.15% | 65 | |
| 2016-10-04 | 2017-07-07 | $14.09 | $20.88 | 38.66% | 191 | |
| 2016-07-19 | 2016-09-02 | $15.02 | $13.19 | -10.07% | 34 | |
| 2016-06-08 | 2016-06-24 | $15.70 | $12.88 | -15.57% | 13 | |
| 2016-03-04 | 2016-05-05 | $13.40 | $14.10 | 5.43% | 44 | |
| 2015-11-09 | 2016-01-19 | $15.02 | $13.65 | -11.92% | 48 | |
| 2015-09-21 | 2015-10-12 | $17.61 | $14.37 | -15.49% | 16 | |
| 2015-04-08 | 2015-08-12 | $13.84 | $15.88 | 17.84% | 89 | |
| 2015-02-10 | 2015-03-09 | $14.42 | $12.73 | -11.03% | 19 | |
| 2014-11-11 | 2014-12-09 | $16.74 | $14.46 | -11.57% | 20 | |
| 2014-05-28 | 2014-10-01 | $14.02 | $16.02 | 14.48% | 89 | |
| 2013-12-20 | 2014-03-26 | $9.55 | $14.20 | 38.64% | 65 | |
| 2013-03-26 | 2013-10-24 | $2.52 | $11.54 | 112.25% | 149 | |
| 2012-11-06 | 2013-03-20 | $2.08 | $2.40 | 11.27% | 92 | |
| 2012-09-18 | 2012-10-16 | $2.09 | $1.87 | -18.97% | 21 | |
| 2012-08-24 | 2012-09-12 | $1.97 | $1.89 | -5.22% | 13 | |
| 2012-06-19 | 2012-07-27 | $2.14 | $1.97 | -8.37% | 28 | |
| 2012-02-02 | 2012-04-25 | $2.02 | $2.19 | 0.43% | 58 |