Fitness
0.3601
Generation
66
Complexity
26
Created
2026-10-10
Lineage
Parents (1)
changed ret_20d threshold 0.05 -> 0.1344
Children (0)
None
Strategy Logic (pseudocode)
# LongTermTrend_V1440 [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > -0.0003) or ret_20d > 0.085) and ret_20d > 0.1344 and cumret_252d > 0.2888 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 2.0784) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))):
position = 1.0
if long and (macd_hist < 0.0 or vol_60 < 0.9813):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|---|---|---|---|
| CAGR | 6.3% | 35.3% | -0.4% | 9.8% |
| Total Return | 62.9% | 147.4% | -1.6% | 296.1% |
| Sharpe | 0.37 | 0.97 | 0.11 | 0.47 |
| Sortino | 0.38 | 0.99 | 0.10 | 0.47 |
| Calmar | 0.16 | 1.07 | -0.01 | 0.24 |
| Volatility | 23.6% | 38.8% | 25.0% | 27.7% |
| Max DD | -39.8% | -33.0% | -41.2% | -41.2% |
| Win Rate | 50.6% | 53.4% | 50.3% | 51.2% |
| Avg Win | 2.3% | 3.9% | 2.8% | 2.8% |
| Avg Loss | -2.0% | -3.0% | -2.7% | -2.4% |
| Payoff | 1.14 | 1.30 | 1.02 | 1.16 |
| Expectancy | 0.2% | 0.7% | 0.0% | 0.3% |
| Profit Factor | 1.17 | 1.49 | 1.03 | 1.22 |
| Trades | 403 | 163 | 183 | 750 |
| Avg Holding Days | 2.0 | 2.2 | 2.0 | 2.0 |
| Turnover | 101.1 | 108.7 | 97.8 | 101.8 |
| Exposure | 20.1% | 25.1% | 19.5% | 20.9% |
Growth of $100
LongTermTrend_V1440 vs TSLA Buy & Hold
LongTermTrend_V1440 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 | 18.9% | 1.59 | -4.1% | 31 |
| 2017 | 5.0% | 0.40 | -7.8% | 59 |
| 2018 | -3.1% | -0.02 | -17.9% | 43 |
| 2019 | 12.5% | 0.64 | -20.2% | 39 |
| 2020 | 93.1% | 1.41 | -33.0% | 74 |
| 2021 | 25.2% | 1.07 | -14.6% | 60 |
| 2022 | -1.1% | 0.05 | -18.2% | 28 |
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 | 6.7% | 0.36 | 13% |
| hidden test | EXPENSIVE | 83 | 117.9% | 2.73 | 30% |
| hidden test | EXTREME | 48 | 59.7% | 1.92 | 31% |
| hidden test | HIGH VOLATILITY | 254 | -0.7% | -0.02 | 22% |
| hidden test | LOW VOLATILITY | 442 | 14.6% | 0.81 | 19% |
| hidden test | MEDIUM VOLATILITY | 250 | -15.0% | -0.64 | 18% |
| hidden test | NORMAL | 815 | -12.4% | -0.57 | 18% |
| hidden test | SIDEWAYS | 297 | -23.6% | -1.09 | 22% |
| hidden test | UPTREND | 371 | 20.7% | 0.67 | 23% |
| train | DOWNTREND | 518 | -11.3% | -0.74 | 9% |
| train | EXPENSIVE | 311 | 25.4% | 1.09 | 31% |
| train | EXTREME | 100 | 176.2% | 3.08 | 45% |
| train | HIGH VOLATILITY | 699 | 17.0% | 0.53 | 20% |
| train | LOW VOLATILITY | 745 | 6.7% | 0.42 | 23% |
| train | MEDIUM VOLATILITY | 568 | 1.5% | 0.08 | 16% |
| train | NORMAL | 1,601 | -4.8% | -0.25 | 16% |
| train | SIDEWAYS | 592 | 7.9% | 0.42 | 20% |
| train | UPTREND | 902 | 21.0% | 0.71 | 26% |
| validation | DOWNTREND | 125 | 29.7% | 1.43 | 5% |
| validation | EXPENSIVE | 138 | 16.6% | 0.37 | 29% |
| validation | EXTREME | 144 | 160.9% | 2.38 | 51% |
| validation | HIGH VOLATILITY | 258 | 31.2% | 0.58 | 26% |
| validation | LOW VOLATILITY | 183 | 7.4% | 0.41 | 24% |
| validation | MEDIUM VOLATILITY | 315 | 60.7% | 1.87 | 25% |
| validation | NORMAL | 474 | 6.4% | 0.31 | 16% |
| validation | SIDEWAYS | 206 | 0.4% | 0.02 | 17% |
| validation | UPTREND | 425 | 58.2% | 1.20 | 35% |
Trades (full period)
latest 100 of 751
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|---|---|---|---|---|---|
| 2026-10-09 | — | $382.70 | — | 1.95% | 1 | OPEN |
| 2026-10-07 | 2026-10-08 | $377.81 | $375.00 | -0.95% | 2 | |
| 2026-09-28 | 2026-09-29 | $357.45 | $352.84 | -4.14% | 2 | |
| 2026-09-24 | 2026-09-25 | $377.94 | $372.11 | -0.77% | 2 | |
| 2026-09-22 | 2026-09-23 | $378.90 | $380.12 | 0.76% | 2 | |
| 2026-09-18 | 2026-09-21 | $364.27 | $375.30 | -0.73% | 2 | |
| 2026-09-15 | 2026-09-16 | $356.58 | $358.08 | -0.86% | 2 | |
| 2026-09-11 | 2026-09-14 | $365.44 | $358.97 | 0.32% | 2 | |
| 2026-09-09 | 2026-09-10 | $367.81 | $363.56 | -0.29% | 2 | |
| 2026-09-04 | 2026-09-08 | $354.08 | $368.16 | -6.12% | 2 | |
| 2026-09-01 | 2026-09-02 | $356.09 | $357.01 | -3.42% | 2 | |
| 2026-07-07 | 2026-07-08 | $402.90 | $394.06 | -4.21% | 2 | |
| 2026-07-01 | 2026-07-02 | $425.30 | $393.45 | 0.92% | 2 | |
| 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-20 | 2026-05-21 | $417.26 | $417.85 | 3.05% | 2 | |
| 2026-05-18 | 2026-05-19 | $409.99 | $404.11 | -3.10% | 2 | |
| 2026-05-14 | 2026-05-15 | $443.30 | $422.24 | -0.64% | 2 | |
| 2026-05-12 | 2026-05-13 | $433.45 | $445.27 | -2.79% | 2 | |
| 2026-05-08 | 2026-05-11 | $428.35 | $445.00 | 3.82% | 2 | |
| 2026-05-06 | 2026-05-07 | $398.73 | $411.79 | 2.20% | 2 | |
| 2026-05-04 | 2026-05-05 | $392.51 | $389.37 | 0.23% | 2 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -2.22% | 2 | |
| 2026-04-16 | 2026-04-17 | $388.90 | $400.62 | -0.98% | 2 | |
| 2025-12-29 | 2025-12-30 | $459.64 | $454.43 | -3.47% | 2 | |
| 2025-12-24 | 2025-12-26 | $485.40 | $475.19 | -0.23% | 2 | |
| 2025-12-22 | 2025-12-23 | $488.73 | $485.56 | 1.36% | 2 | |
| 2025-12-18 | 2025-12-19 | $483.37 | $481.20 | 3.24% | 2 | |
| 2025-12-16 | 2025-12-17 | $489.88 | $467.26 | 2.86% | 2 | |
| 2025-12-12 | 2025-12-15 | $458.96 | $475.31 | 2.50% | 2 | |
| 2025-12-10 | 2025-12-11 | $451.45 | $446.89 | 1.21% | 2 | |
| 2025-12-08 | 2025-12-09 | $439.58 | $445.17 | -3.59% | 2 | |
| 2025-12-04 | 2025-12-05 | $454.53 | $455.00 | 1.54% | 2 | |
| 2025-11-04 | 2025-11-05 | $444.26 | $462.07 | -5.34% | 2 | |
| 2025-10-10 | 2025-10-13 | $413.49 | $435.90 | -5.26% | 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-10-02 | 2025-10-03 | $436.00 | $429.83 | -5.30% | 2 | |
| 2025-09-30 | 2025-10-01 | $444.72 | $459.46 | 0.14% | 2 | |
| 2025-09-26 | 2025-09-29 | $440.40 | $443.21 | 3.81% | 2 | |
| 2025-09-24 | 2025-09-25 | $442.79 | $423.39 | 3.77% | 2 | |
| 2025-09-22 | 2025-09-23 | $434.21 | $425.85 | 1.71% | 2 | |
| 2025-09-18 | 2025-09-19 | $416.85 | $426.07 | -2.31% | 2 | |
| 2025-09-16 | 2025-09-17 | $421.62 | $425.86 | 2.62% | 2 | |
| 2025-09-12 | 2025-09-15 | $395.94 | $410.04 | 7.15% | 2 | |
| 2025-09-10 | 2025-09-11 | $347.79 | $368.81 | 0.04% | 2 | |
| 2025-09-08 | 2025-09-09 | $346.40 | $346.97 | -1.46% | 2 | |
| 2025-08-29 | 2025-09-02 | $333.87 | $329.36 | -3.70% | 2 | |
| 2025-08-27 | 2025-08-28 | $349.60 | $345.98 | -0.79% | 2 | |
| 2025-08-25 | 2025-08-26 | $346.60 | $351.67 | 1.74% | 2 | |
| 2025-08-20 | 2025-08-21 | $323.90 | $320.11 | -1.84% | 2 | |
| 2025-08-18 | 2025-08-19 | $335.16 | $329.31 | 1.19% | 2 | |
| 2025-08-14 | 2025-08-15 | $335.58 | $330.56 | -1.32% | 2 | |
| 2025-08-12 | 2025-08-13 | $340.84 | $339.38 | 0.33% | 2 | |
| 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-23 | 2025-07-24 | $332.56 | $305.30 | -0.06% | 2 | |
| 2025-07-21 | 2025-07-22 | $328.49 | $332.11 | -0.55% | 2 | |
| 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-06-02 | 2025-06-03 | $342.69 | $344.27 | -1.29% | 2 | |
| 2025-05-29 | 2025-05-30 | $358.43 | $346.46 | 0.23% | 2 | |
| 2025-05-27 | 2025-05-28 | $362.89 | $356.90 | 6.73% | 2 | |
| 2025-05-22 | 2025-05-23 | $341.04 | $339.34 | 1.72% | 2 | |
| 2025-05-20 | 2025-05-21 | $343.82 | $334.62 | 0.31% | 2 | |
| 2025-05-16 | 2025-05-19 | $349.98 | $342.09 | 1.89% | 2 | |
| 2025-05-14 | 2025-05-15 | $347.68 | $342.82 | 3.87% | 2 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 6.54% | 2 | |
| 2025-05-08 | 2025-05-09 | $284.82 | $298.26 | 2.91% | 2 | |
| 2025-05-06 | 2025-05-07 | $275.35 | $276.22 | -1.95% | 2 | |
| 2025-05-02 | 2025-05-05 | $287.21 | $280.26 | 2.18% | 2 | |
| 2025-04-30 | 2025-05-01 | $282.16 | $280.52 | -3.58% | 2 | |
| 2025-04-28 | 2025-04-29 | $285.88 | $292.03 | 0.13% | 2 | |
| 2025-01-06 | 2025-01-07 | $411.05 | $394.36 | -0.05% | 2 | |
| 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-23 | 2024-12-24 | $430.60 | $462.28 | 2.06% | 2 | |
| 2024-12-19 | 2024-12-20 | $436.17 | $421.06 | -1.10% | 2 | |
| 2024-12-17 | 2024-12-18 | $479.86 | $440.13 | 3.43% | 2 | |
| 2024-12-13 | 2024-12-16 | $436.23 | $463.02 | 4.13% | 2 | |
| 2024-12-11 | 2024-12-12 | $424.77 | $418.10 | 5.72% | 2 | |
| 2024-12-09 | 2024-12-10 | $389.79 | $400.99 | -0.05% | 2 | |
| 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-26 | 2024-11-27 | $338.23 | $332.89 | -0.31% | 2 | |
| 2024-11-22 | 2024-11-25 | $352.56 | $338.59 | 3.60% | 2 | |
| 2024-11-20 | 2024-11-21 | $342.03 | $339.64 | -1.35% | 2 | |
| 2024-11-18 | 2024-11-19 | $338.74 | $346.00 | 5.41% | 2 | |
| 2024-11-14 | 2024-11-15 | $311.18 | $320.72 | -5.97% | 2 | |
| 2024-11-12 | 2024-11-13 | $328.49 | $330.24 | -6.34% | 2 | |
| 2024-11-08 | 2024-11-11 | $321.22 | $350.00 | 7.98% | 2 | |
| 2024-11-06 | 2024-11-07 | $288.53 | $296.91 | 14.54% | 2 | |
| 2024-11-04 | 2024-11-05 | $242.84 | $251.44 | -2.66% | 2 | |
| 2024-10-31 | 2024-11-01 | $249.85 | $248.98 | -3.19% | 2 | |
| 2024-10-29 | 2024-10-30 | $259.52 | $257.55 | -1.34% | 2 | |
| 2024-10-25 | 2024-10-28 | $269.19 | $262.51 | 3.14% | 2 | |
| 2024-10-03 | 2024-10-04 | $240.66 | $250.08 | -3.55% | 2 | |
| 2024-10-01 | 2024-10-02 | $258.02 | $249.02 | -1.58% | 2 | |
| 2024-09-27 | 2024-09-30 | $260.46 | $261.63 | 2.25% | 2 |