PriceMomentum_V1623
ARCHIVEDhybridllm1) Simplified and regularized entry logic into three robust signal paths (breakout momentum, MACD + 50 SMA, and 50/200 confirmation) to reduce overfitting. 2) Added a volatility guard (vol_pctile < 0.85) to avoid extreme/noisy regimes. 3) Broadened ret_20d threshold to 0.08 to increase activity on validation. 4) Replaced fragile single exit with a safer multi-exit: exit on macd_hist<0 OR price below SMA50 OR short-term loss (ret_5d<-8%). 5) Added regime gates to allow trading only in UPTREND/SIDEWAYS and non-high-volatility / non-extreme-bubble environments. 6) Reduced base_position to 0.8 to lower risk and drawdown exposure.
Lineage
Parents (1)
added entry filter: close > ema_20
Strategy Logic (pseudocode)
# PriceMomentum_V1623 [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 > ema_20 and vol_pctile < 0.85 and ((ret_20d > 0.08 and breakout_20 == 1) or (macd_hist > 0.0 and close > sma_50) or (sma_50 > sma_200 and sma_200_slope > -0.0024 and dist_sma_50 > -0.1))):
position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or ret_5d < -0.08):
position = 0.0 # exit to cashBacktest Metrics
| Metric | Train | Validation | Hidden Test | Full |
|---|
| CAGR | 0.6% | 21.0% | -7.8% | 2.3% |
| Total Return | 5.3% | 77.0% | -26.4% | 40.4% |
| Sharpe | 0.12 | 0.97 | -0.34 | 0.22 |
| Sortino | 0.10 | 0.89 | -0.27 | 0.18 |
| Calmar | 0.02 | 0.75 | -0.19 | 0.05 |
| Volatility | 17.1% | 22.2% | 18.8% | 18.7% |
| Max DD | -40.1% | -28.1% | -40.9% | -47.1% |
| Win Rate | 38.3% | 46.4% | 29.7% | 37.9% |
| Avg Win | 3.3% | 5.6% | 4.6% | 4.3% |
| Avg Loss | -2.0% | -2.5% | -2.4% | -2.2% |
| Payoff | 1.65 | 2.22 | 1.93 | 1.96 |
| Expectancy | 0.0% | 1.3% | -0.3% | 0.3% |
| Profit Factor | 1.02 | 1.92 | 0.82 | 1.20 |
| Trades | 149 | 56 | 64 | 269 |
| Avg Holding Days | 4.2 | 4.6 | 4.5 | 4.4 |
| Turnover | 30.0 | 29.9 | 27.4 | 29.2 |
| Exposure | 19.2% | 21.5% | 19.4% | 19.7% |
Growth of $100
PriceMomentum_V1623 vs TSLA Buy & Hold
PriceMomentum_V1623 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 | -1.0% | -0.04 | -8.5% | 11 |
| 2017 | -1.1% | 0.02 | -16.0% | 30 |
| 2018 | -6.7% | -0.82 | -10.7% | 5 |
| 2019 | -1.3% | 0.06 | -19.5% | 10 |
| 2020 | 72.6% | 2.64 | -9.1% | 12 |
| 2021 | 16.0% | 0.70 | -19.2% | 31 |
| 2022 | -11.6% | -0.59 | -28.1% | 11 |
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 | -2.9% | -1.41 | 1% |
| hidden test | EXPENSIVE | 83 | -7.3% | -0.28 | 33% |
| hidden test | EXTREME | 48 | 0.0% | 0.00 | 0% |
| hidden test | HIGH VOLATILITY | 254 | -8.6% | -0.62 | 2% |
| hidden test | LOW VOLATILITY | 445 | 13.8% | 0.74 | 27% |
| hidden test | MEDIUM VOLATILITY | 250 | -40.1% | -1.74 | 23% |
| hidden test | NORMAL | 818 | -6.6% | -0.36 | 19% |
| hidden test | SIDEWAYS | 300 | -27.9% | -1.41 | 29% |
| hidden test | UPTREND | 371 | 8.4% | 0.35 | 26% |
| train | DOWNTREND | 518 | -7.9% | -1.46 | 1% |
| train | EXPENSIVE | 311 | 31.1% | 1.45 | 29% |
| train | EXTREME | 100 | 9.3% | 1.55 | 1% |
| train | HIGH VOLATILITY | 699 | 9.9% | 0.63 | 1% |
| train | LOW VOLATILITY | 745 | 10.3% | 0.59 | 35% |
| train | MEDIUM VOLATILITY | 568 | -18.2% | -0.98 | 21% |
| train | NORMAL | 1,601 | -4.0% | -0.24 | 18% |
| train | SIDEWAYS | 592 | -10.0% | -0.59 | 22% |
| train | UPTREND | 902 | 15.8% | 0.75 | 28% |
| validation | DOWNTREND | 125 | -0.2% | -1.42 | 0% |
| validation | EXPENSIVE | 138 | 87.0% | 2.94 | 35% |
| validation | EXTREME | 144 | 42.5% | 2.86 | 3% |
| validation | HIGH VOLATILITY | 258 | -13.3% | -1.11 | 1% |
| validation | LOW VOLATILITY | 183 | -1.6% | -0.09 | 35% |
| validation | MEDIUM VOLATILITY | 315 | 63.3% | 2.14 | 30% |
| validation | NORMAL | 474 | -4.0% | -0.19 | 23% |
| validation | SIDEWAYS | 206 | -18.6% | -0.90 | 22% |
| validation | UPTREND | 425 | 47.3% | 1.83 | 28% |
Trades (full period)
latest 100 of 270
| Entry | Exit | Entry Px | Exit Px | Return | Days | |
|---|
| 2026-10-07 | — | $377.81 | — | -2.92% | 6 | OPEN |
| 2026-07-01 | 2026-07-06 | $425.30 | $419.77 | -5.30% | 3 | |
| 2026-05-28 | 2026-06-02 | $442.10 | $423.74 | -4.61% | 4 | |
| 2026-05-08 | 2026-05-21 | $428.35 | $417.85 | 0.97% | 10 | |
| 2026-04-20 | 2026-04-21 | $392.50 | $386.42 | -1.78% | 2 | |
| 2026-03-12 | 2026-03-13 | $395.01 | $391.20 | -2.67% | 2 | |
| 2026-02-12 | 2026-02-13 | $417.07 | $417.44 | -2.25% | 2 | |
| 2026-01-23 | 2026-01-26 | $449.06 | $435.20 | -0.21% | 2 | |
| 2025-12-04 | 2025-12-30 | $454.53 | $454.43 | 2.22% | 18 | |
| 2025-12-02 | 2025-12-03 | $429.24 | $446.74 | -0.33% | 2 | |
| 2025-11-28 | 2025-12-01 | $430.17 | $430.14 | 0.51% | 2 | |
| 2025-11-11 | 2025-11-12 | $439.62 | $430.60 | -1.17% | 2 | |
| 2025-11-06 | 2025-11-07 | $445.91 | $429.52 | -2.96% | 2 | |
| 2025-11-03 | 2025-11-05 | $468.37 | $462.07 | -2.29% | 3 | |
| 2025-10-30 | 2025-10-31 | $440.10 | $456.56 | -3.87% | 2 | |
| 2025-10-28 | 2025-10-29 | $460.55 | $461.51 | 1.28% | 2 | |
| 2025-10-24 | 2025-10-27 | $433.72 | $452.42 | -2.88% | 2 | |
| 2025-10-22 | 2025-10-23 | $438.97 | $448.98 | -0.82% | 2 | |
| 2025-10-20 | 2025-10-21 | $447.43 | $442.60 | 1.32% | 2 | |
| 2025-10-16 | 2025-10-17 | $428.75 | $439.31 | -1.34% | 2 | |
| 2025-10-14 | 2025-10-15 | $429.24 | $435.15 | -1.38% | 2 | |
| 2025-10-09 | 2025-10-10 | $435.54 | $413.49 | -0.73% | 2 | |
| 2025-10-07 | 2025-10-08 | $433.09 | $438.69 | -3.72% | 2 | |
| 2025-09-08 | 2025-10-06 | $346.40 | $453.25 | 17.65% | 21 | |
| 2025-08-25 | 2025-09-03 | $346.60 | $334.09 | -2.65% | 7 | |
| 2025-08-11 | 2025-08-21 | $339.03 | $320.11 | -1.54% | 9 | |
| 2025-07-29 | 2025-07-30 | $321.20 | $319.04 | -1.24% | 2 | |
| 2025-07-21 | 2025-07-25 | $328.49 | $316.06 | -6.05% | 5 | |
| 2025-07-17 | 2025-07-18 | $319.41 | $329.65 | -0.72% | 2 | |
| 2025-07-15 | 2025-07-16 | $310.78 | $321.67 | -1.70% | 2 | |
| 2025-05-19 | 2025-06-03 | $342.09 | $344.27 | -1.77% | 11 | |
| 2025-05-12 | 2025-05-13 | $318.38 | $334.07 | 5.23% | 2 | |
| 2024-10-09 | 2024-10-10 | $241.05 | $238.77 | -1.29% | 2 | |
| 2024-10-07 | 2024-10-08 | $240.83 | $244.50 | -3.12% | 2 | |
| 2024-09-23 | 2024-10-04 | $250.00 | $250.08 | 0.70% | 10 | |
| 2024-09-16 | 2024-09-20 | $226.78 | $238.25 | 4.58% | 5 | |
| 2024-09-05 | 2024-09-09 | $230.17 | $216.27 | -3.25% | 3 | |
| 2024-09-03 | 2024-09-04 | $210.60 | $219.41 | -1.47% | 2 | |
| 2024-06-17 | 2024-07-12 | $187.44 | $248.23 | 27.57% | 18 | |
| 2024-05-29 | 2024-05-30 | $176.19 | $178.79 | -0.41% | 2 | |
| 2024-01-03 | 2024-01-04 | $238.45 | $237.93 | -3.37% | 2 | |
| 2023-12-15 | 2024-01-02 | $253.50 | $248.42 | -0.94% | 11 | |
| 2023-11-29 | 2023-12-14 | $244.14 | $251.05 | -2.56% | 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.48% | 2 | |
| 2023-11-20 | 2023-11-21 | $235.60 | $241.20 | 0.28% | 2 | |
| 2023-11-16 | 2023-11-17 | $233.59 | $234.30 | -3.20% | 2 | |
| 2023-11-14 | 2023-11-15 | $237.41 | $242.84 | 4.74% | 2 | |
| 2023-10-05 | 2023-10-17 | $260.05 | $254.85 | -2.37% | 9 | |
| 2023-09-12 | 2023-09-22 | $267.48 | $244.88 | -5.39% | 9 | |
| 2023-09-08 | 2023-09-11 | $248.50 | $273.58 | -1.11% | 2 | |
| 2023-09-06 | 2023-09-07 | $251.92 | $251.49 | -1.58% | 2 | |
| 2023-08-30 | 2023-09-05 | $256.90 | $256.49 | -3.94% | 4 | |
| 2023-08-01 | 2023-08-02 | $261.07 | $254.11 | -2.06% | 2 | |
| 2023-07-25 | 2023-07-26 | $265.28 | $264.35 | -1.28% | 2 | |
| 2023-07-20 | 2023-07-21 | $262.90 | $260.02 | -7.94% | 2 | |
| 2023-07-18 | 2023-07-19 | $293.34 | $291.26 | 0.65% | 2 | |
| 2023-07-14 | 2023-07-17 | $281.38 | $290.38 | 0.84% | 2 | |
| 2023-07-12 | 2023-07-13 | $271.99 | $277.90 | 0.49% | 2 | |
| 2023-07-10 | 2023-07-11 | $269.61 | $269.79 | -1.56% | 2 | |
| 2023-07-05 | 2023-07-07 | $282.48 | $274.43 | -1.09% | 3 | |
| 2023-06-30 | 2023-07-03 | $261.77 | $279.82 | 1.17% | 2 | |
| 2023-06-28 | 2023-06-29 | $256.24 | $257.50 | 1.77% | 2 | |
| 2023-05-31 | 2023-06-27 | $203.93 | $250.21 | 15.56% | 19 | |
| 2023-03-24 | 2023-04-06 | $190.41 | $185.06 | -2.88% | 10 | |
| 2022-09-13 | 2022-09-23 | $292.13 | $275.33 | -4.29% | 9 | |
| 2022-08-16 | 2022-08-19 | $306.56 | $296.67 | -1.83% | 4 | |
| 2022-08-02 | 2022-08-12 | $300.59 | $300.03 | -2.97% | 9 | |
| 2022-05-05 | 2022-05-06 | $291.09 | $288.55 | -6.82% | 2 | |
| 2022-04-22 | 2022-04-25 | $335.02 | $332.67 | -0.46% | 2 | |
| 2022-04-20 | 2022-04-21 | $325.73 | $336.26 | -4.12% | 2 | |
| 2022-04-14 | 2022-04-18 | $328.33 | $334.76 | -3.08% | 2 | |
| 2022-03-21 | 2022-04-11 | $307.05 | $325.31 | 10.49% | 16 | |
| 2022-03-17 | 2022-03-18 | $290.53 | $301.80 | 2.82% | 2 | |
| 2022-03-03 | 2022-03-04 | $279.76 | $279.43 | -3.85% | 2 | |
| 2022-01-12 | 2022-01-13 | $368.74 | $343.85 | 2.98% | 2 | |
| 2021-12-28 | 2022-01-03 | $362.82 | $399.93 | -2.88% | 5 | |
| 2021-12-23 | 2021-12-27 | $355.67 | $364.65 | 4.45% | 2 | |
| 2021-12-02 | 2021-12-03 | $361.53 | $338.32 | -0.92% | 2 | |
| 2021-11-30 | 2021-12-01 | $381.59 | $365.00 | 0.39% | 2 | |
| 2021-11-26 | 2021-11-29 | $360.64 | $379.00 | -2.60% | 2 | |
| 2021-11-23 | 2021-11-24 | $369.68 | $372.00 | -3.47% | 2 | |
| 2021-10-12 | 2021-11-10 | $268.57 | $355.98 | 23.06% | 22 | |
| 2021-10-08 | 2021-10-11 | $261.83 | $263.98 | -0.98% | 2 | |
| 2021-09-28 | 2021-10-07 | $259.19 | $264.54 | -1.03% | 8 | |
| 2021-09-24 | 2021-09-27 | $258.13 | $263.79 | 2.04% | 2 | |
| 2021-09-22 | 2021-09-23 | $250.65 | $251.21 | 1.20% | 2 | |
| 2021-08-31 | 2021-09-21 | $245.24 | $246.46 | -0.21% | 15 | |
| 2021-08-02 | 2021-08-17 | $236.56 | $221.90 | -0.24% | 12 | |
| 2021-07-13 | 2021-07-15 | $222.85 | $216.87 | -3.94% | 3 | |
| 2021-06-24 | 2021-07-12 | $226.61 | $228.57 | -0.08% | 12 | |
| 2021-06-22 | 2021-06-23 | $207.90 | $218.86 | 0.21% | 2 | |
| 2021-06-18 | 2021-06-21 | $207.77 | $206.94 | 0.71% | 2 | |
| 2021-06-15 | 2021-06-16 | $199.79 | $201.62 | -2.53% | 2 | |
| 2021-06-02 | 2021-06-03 | $201.71 | $190.95 | -2.57% | 2 | |
| 2021-05-28 | 2021-06-01 | $208.41 | $207.97 | -0.87% | 2 | |
| 2021-05-03 | 2021-05-04 | $228.30 | $224.53 | -2.92% | 2 | |
| 2021-04-14 | 2021-04-29 | $244.08 | $225.67 | -7.29% | 12 | |
| 2021-04-12 | 2021-04-13 | $233.99 | $254.11 | 2.79% | 2 | |
| 2021-04-08 | 2021-04-09 | $227.93 | $225.67 | 1.37% | 2 | |