Strategy Zoo / S1540

PriceMomentum_V1540

ARCHIVEDhybrid

llmAdded momentum confirmation (macd crossover OR momentum_60>0) and an RSI cap to avoid overbought entries; enforced price above/positive-slope 200SMA OR strong 20d return as original signal; tightened exit to a larger stop (ret_20d<-2%) or MACD bearish cross for cleaner exits; added regime gates to avoid trading in downtrends and extreme bubble states; introduced graduated position scaling by volatility and reduced base position to lower risk and improve out-of-sample robustness.

Fitness
0.3809
Generation
71
Complexity
19
Created
2026-10-14

Lineage

Parents (1)
PriceMomentum_V1534S1534 · gen 70ELITEllm

changed ret_20d threshold -0.0674 -> -0.1275

Children (0)
None

Strategy Logic (pseudocode)

# PriceMomentum_V1540  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (((ret_20d > 0.05 and close > sma_200 and sma_200_slope > 0.0) or ret_20d > 0.18) and (macd > macd_signal or momentum_60 > 0.0) and rsi_14 < 75.0):
    position = 0.85
if long and (ret_20d < -0.02 or macd < macd_signal):
    position = 0.0  # exit to cash
if regime.volatility == "HIGH_VOLATILITY": position *= 0.35
if regime.volatility == "MEDIUM_VOLATILITY": position *= 0.7
if regime.volatility == "LOW_VOLATILITY": position *= 1.0

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR2.7%28.8%4.5%8.2%
Total Return23.7%113.8%18.2%220.5%
Sharpe0.261.560.380.60
Sortino0.191.520.280.47
Calmar0.092.110.220.28
Volatility14.2%17.2%14.6%15.0%
Max DD-29.4%-13.6%-20.3%-29.4%
Win Rate47.5%66.7%42.5%51.3%
Avg Win2.9%3.7%3.6%3.4%
Avg Loss-2.2%-2.1%-1.8%-2.1%
Payoff1.301.732.021.63
Expectancy0.2%1.8%0.5%0.7%
Profit Factor1.173.461.491.72
Trades1014840189
Avg Holding Days5.65.15.85.6
Turnover17.718.714.317.0
Exposure14.8%16.8%13.9%15.0%

Growth of $100

PriceMomentum_V1540 vs TSLA Buy & Hold
PriceMomentum_V1540 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
YearCAGRSharpeMax DDTrades
2016-1.2%-0.11-4.7%4
20174.7%0.41-11.0%19
2018-5.6%-0.72-9.3%10
2019-6.6%-0.40-14.2%5
202058.1%2.82-4.8%14
202135.4%1.48-12.6%25
2022-0.2%0.04-7.8%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

PeriodRegimeDaysAnn. ReturnSharpeExposure
hidden testDOWNTREND279-2.5%-1.371%
hidden testEXPENSIVE8325.6%1.0028%
hidden testEXTREME4845.8%4.903%
hidden testHIGH VOLATILITY25417.5%1.665%
hidden testLOW VOLATILITY44320.6%1.2120%
hidden testMEDIUM VOLATILITY251-33.3%-2.5312%
hidden testNORMAL8171.1%0.0813%
hidden testSIDEWAYS298-3.5%-0.2421%
hidden testUPTREND37118.7%0.9718%
trainDOWNTREND518-3.3%-1.020%
trainEXPENSIVE31119.3%1.0227%
trainEXTREME10027.8%2.952%
trainHIGH VOLATILITY6999.0%0.647%
trainLOW VOLATILITY74510.7%0.7025%
trainMEDIUM VOLATILITY568-12.1%-0.9411%
trainNORMAL1,601-0.9%-0.0613%
trainSIDEWAYS592-1.4%-0.1015%
trainUPTREND90211.0%0.6223%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13882.6%3.6226%
validationEXTREME14428.0%2.612%
validationHIGH VOLATILITY258-5.9%-0.672%
validationLOW VOLATILITY18325.1%1.5231%
validationMEDIUM VOLATILITY31554.6%2.4720%
validationNORMAL47410.2%0.6119%
validationSIDEWAYS2066.4%0.4418%
validationUPTREND42544.6%2.1721%

Trades (full period)

latest 100 of 189
EntryExitEntry PxExit PxReturnDays
2026-06-032026-06-04$423.70$418.45-0.18%2
2026-05-272026-06-02$440.36$423.74-3.63%5
2026-05-222026-05-26$426.01$433.591.49%2
2026-05-082026-05-21$428.35$417.851.02%10
2026-04-202026-04-21$392.50$386.42-1.32%2
2025-12-312026-01-02$449.72$438.07-1.05%2
2025-12-152025-12-30$475.31$454.430.01%11
2025-11-062025-11-07$445.91$429.52-2.20%2
2025-11-032025-11-05$468.37$462.07-3.07%3
2025-10-242025-10-27$433.72$452.42-2.14%2
2025-10-142025-10-15$429.24$435.15-1.03%2
2025-10-092025-10-10$435.54$413.49-0.55%2
2025-10-072025-10-08$433.09$438.69-2.76%2
2025-09-082025-10-06$346.40$453.2517.80%21
2025-09-042025-09-05$338.53$350.840.96%2
2025-08-252025-09-03$346.60$334.09-2.82%7
2025-08-112025-08-21$339.03$320.11-1.64%9
2025-06-042025-06-05$332.05$284.70-2.23%2
2025-05-122025-06-03$318.38$344.276.37%16
2025-01-032025-01-06$410.44$411.052.38%2
2024-12-022024-12-03$357.09$351.420.97%2
2024-11-262024-11-29$338.23$345.16-0.56%3
2024-11-222024-11-25$352.56$338.591.07%2
2024-11-142024-11-19$311.18$346.000.78%4
2024-11-072024-11-12$296.91$328.496.01%4
2024-10-072024-10-08$240.83$244.50-3.31%2
2024-09-062024-10-04$210.73$250.080.74%21
2024-07-232024-07-24$246.38$215.99-0.67%2
2024-07-122024-07-22$248.23$251.51-0.24%7
2023-12-182024-01-02$252.08$248.42-1.82%10
2023-11-172023-12-14$234.30$251.051.93%19
2023-09-122023-09-25$267.48$246.99-6.44%10
2023-07-102023-07-11$269.61$269.79-1.16%2
2023-07-052023-07-07$282.48$274.43-0.81%3
2023-06-302023-07-03$261.77$279.821.24%2
2023-06-282023-06-29$256.24$257.501.88%2
2023-05-312023-06-27$203.93$250.2116.57%19
2023-03-012023-03-02$202.77$190.90-0.97%2
2023-02-242023-02-27$196.88$207.63-0.82%2
2023-02-132023-02-23$194.64$202.070.68%8
2022-08-152022-08-19$309.32$296.670.46%5
2022-08-022022-08-12$300.59$300.03-2.17%9
2022-04-192022-04-20$342.72$325.731.29%2
2022-03-222022-04-11$331.33$325.316.73%15
2022-01-202022-01-21$332.09$314.63-0.04%2
2022-01-182022-01-19$343.50$331.88-0.60%2
2022-01-132022-01-14$343.85$349.87-2.07%2
2022-01-042022-01-12$383.20$368.74-3.48%7
2021-11-242021-11-26$372.00$360.640.25%2
2021-11-222021-11-23$385.62$369.680.46%2
2021-11-182021-11-19$365.46$379.020.14%2
2021-11-162021-11-17$351.58$363.001.15%2
2021-11-122021-11-15$344.47$337.80-0.90%2
2021-10-122021-11-11$268.57$354.5026.41%23
2021-10-082021-10-11$261.83$263.98-1.04%2
2021-09-272021-10-07$263.79$264.540.75%9
2021-09-232021-09-24$251.21$258.130.02%2
2021-09-082021-09-21$251.29$246.46-2.72%10
2021-08-252021-08-26$237.07$233.720.15%2
2021-08-232021-08-24$235.43$236.163.08%2
2021-08-192021-08-20$224.49$226.75-2.08%2
2021-08-042021-08-17$236.97$221.90-2.97%10
2021-07-132021-07-15$222.85$216.87-4.18%3
2021-06-142021-07-12$205.90$228.576.40%20
2021-04-142021-04-29$244.08$225.67-5.42%12
2021-04-052021-04-12$230.35$233.990.87%6
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.35%2
2021-02-012021-02-02$279.94$290.933.35%2
2021-01-282021-01-29$278.48$264.51-2.10%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-122021-01-25$283.15$293.602.50%9
2021-01-052021-01-11$245.04$270.4011.82%5
2020-12-312021-01-04$235.22$243.260.81%2
2020-12-292020-12-30$222.00$231.590.09%2
2020-12-242020-12-28$220.59$221.231.33%2
2020-12-182020-12-23$231.67$215.33-1.44%4
2020-12-102020-12-17$209.02$218.631.73%6
2020-11-192020-12-08$166.42$216.6318.04%13
2020-10-222020-10-23$141.93$140.210.32%2
2020-10-132020-10-20$148.88$140.65-1.64%6
2020-10-092020-10-12$144.67$147.430.50%2
2020-10-072020-10-08$141.77$141.970.75%2
2020-09-112020-09-14$124.24$139.870.05%2
2020-09-092020-09-10$122.09$123.783.19%2
2020-06-292020-06-30$67.29$71.992.95%2
2020-06-252020-06-26$65.73$63.981.44%2
2019-12-182020-01-22$26.21$37.9735.26%23
2019-12-032019-12-04$22.41$22.200.17%2
2019-11-292019-12-02$22.00$22.32-0.52%2
2019-11-222019-11-25$22.20$22.42-5.39%2
2019-10-302019-11-21$21.00$23.663.24%17
2019-07-252019-07-26$15.25$15.20-11.73%2
2018-12-132018-12-18$25.12$22.47-2.42%4
2018-12-062018-12-07$24.20$23.860.44%2
2018-11-292018-11-30$22.74$23.37-1.26%2
2018-10-292018-11-21$22.32$22.551.48%18
2018-08-272018-08-28$21.28$20.79-0.39%2
2018-06-292018-07-02$22.86$22.34-0.65%2
2018-06-272018-06-28$22.97$23.330.16%2