Strategy Zoo / S0390

LongTermTrend_V0390

ARCHIVEDhybrid

llmReplaced price-cross with SMA50>SMA200 and required positive SMA slopes to ensure trend alignment; relaxed ret_20d threshold to 3% but added breakout/volume OR gate to capture strong moves; added volatility percentile gate to avoid high-volatility environments; improved exit as an OR of negative MACD histogram, short-term loss, or deteriorating long-term slope; reduced base position to 0.6 to limit drawdown risk; set regime gates to trade only in UPTREND, LOW_VOLATILITY, NORMAL bubble.

Fitness
0.3946
Generation
18
Complexity
14
Created
2026-09-18

Lineage

Parents (1)
LongTermTrend_V0359S0359 · gen 17ARCHIVEDllm

entry from LongTermTrend_V0323, exit from MACDMomentum_V0334

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0390  [hybrid]
if flat and (sma_50 > sma_200 and sma_200_slope > 0.0 and sma_50_slope > 0.0 and ret_20d > 0.03 and vol_pctile < 0.75 and (breakout_20 > 0.0 or ret_20d > 0.1 or rel_volume > 1.25)):
    position = 0.6
if long and (macd_hist < 0.0 or ret_5d < -0.03 or sma_200_slope < 0.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR3.4%34.1%-1.1%7.9%
Total Return30.2%141.3%-4.1%206.8%
Sharpe0.321.48-0.120.61
Sortino0.211.33-0.040.40
Calmar0.151.88-0.080.35
Volatility12.8%21.4%7.2%14.0%
Max DD-22.7%-18.2%-13.4%-22.7%
Win Rate34.5%58.5%45.5%44.9%
Avg Win4.8%5.8%2.1%5.4%
Avg Loss-1.8%-2.2%-2.4%-2.0%
Payoff2.642.630.882.71
Expectancy0.5%2.5%-0.3%1.3%
Profit Factor1.403.720.742.20
Trades554111107
Avg Holding Days5.15.34.65.3
Turnover8.316.43.68.7
Exposure7.2%14.1%2.6%7.4%

Growth of $100

LongTermTrend_V0390 vs TSLA Buy & Hold
LongTermTrend_V0390 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
20160.0%0.000.0%0
20170.3%0.08-9.1%14
2018-3.7%-0.96-4.6%3
20195.4%0.79-4.1%1
2020108.3%2.44-15.0%16
202139.3%2.18-5.6%16
2022-17.1%-2.13-18.1%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 testDOWNTREND2670.0%0.000%
hidden testEXPENSIVE83-22.3%-1.6413%
hidden testEXTREME4833.1%1.4414%
hidden testHIGH VOLATILITY254-0.9%-0.161%
hidden testLOW VOLATILITY4297.0%1.073%
hidden testMEDIUM VOLATILITY248-14.3%-1.543%
hidden testNORMAL800-0.7%-0.221%
hidden testSIDEWAYS2930.0%0.000%
hidden testUPTREND371-2.2%-0.196%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3116.8%0.3623%
trainEXTREME100106.5%2.8226%
trainHIGH VOLATILITY69911.4%0.636%
trainLOW VOLATILITY7452.2%0.279%
trainMEDIUM VOLATILITY568-2.5%-0.266%
trainNORMAL1,601-2.8%-0.423%
trainSIDEWAYS5920.0%0.000%
trainUPTREND9029.2%0.4816%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13831.9%1.4224%
validationEXTREME144121.3%3.1426%
validationHIGH VOLATILITY25828.4%1.0411%
validationLOW VOLATILITY18323.4%2.3913%
validationMEDIUM VOLATILITY31539.1%1.8617%
validationNORMAL4744.3%0.398%
validationSIDEWAYS206-0.1%-1.110%
validationUPTREND42556.3%1.9825%

Trades (full period)

latest 100 of 107
EntryExitEntry PxExit PxReturnDays
2025-12-152025-12-30$475.31$454.430.06%11
2025-11-042025-11-05$444.26$462.07-3.21%2
2025-10-292025-10-30$461.51$440.100.01%2
2025-10-242025-10-27$433.72$452.42-2.16%2
2025-10-092025-10-10$435.54$413.49-0.55%2
2025-10-072025-10-08$433.09$438.69-2.79%2
2025-09-172025-10-06$425.86$453.251.18%14
2024-12-272024-12-30$431.66$417.41-3.09%2
2024-12-242024-12-26$462.28$454.134.29%2
2024-12-102024-12-23$400.99$430.604.86%10
2024-10-072024-10-08$240.83$244.50-2.34%2
2022-04-192022-04-20$342.72$325.731.30%2
2022-04-142022-04-18$328.33$334.76-2.31%2
2022-04-122022-04-13$328.98$340.790.56%2
2022-04-082022-04-11$341.83$325.31-1.92%2
2022-04-052022-04-07$363.75$352.42-5.38%3
2022-01-182022-01-19$343.50$331.88-1.21%2
2022-01-122022-01-14$368.74$349.87-1.90%3
2022-01-042022-01-11$383.20$354.80-7.29%6
2021-11-222021-11-23$385.62$369.680.92%2
2021-11-182021-11-19$365.46$379.020.29%2
2021-11-162021-11-17$351.58$363.002.33%2
2021-11-122021-11-15$344.47$337.80-1.82%2
2021-11-102021-11-11$355.98$354.502.48%2
2021-10-132021-11-09$270.36$341.1724.96%20
2021-10-082021-10-11$261.83$263.98-0.73%2
2021-09-272021-10-07$263.79$264.540.54%9
2021-09-012021-09-21$244.70$246.46-0.53%14
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.36%2
2021-02-012021-02-02$279.94$290.933.38%2
2021-01-282021-01-29$278.48$264.51-2.11%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-202021-01-25$283.48$293.600.03%4
2021-01-052021-01-19$245.04$281.527.88%10
2020-12-312021-01-04$235.22$243.260.82%2
2020-12-292020-12-30$222.00$231.590.09%2
2020-12-242020-12-28$220.59$221.231.35%2
2020-12-182020-12-23$231.67$215.33-1.45%4
2020-11-192020-12-17$166.42$218.6316.23%20
2020-10-222020-10-23$141.93$140.210.33%2
2020-10-152020-10-20$149.63$140.65-4.12%4
2020-08-242020-09-04$134.28$139.44-0.14%10
2020-07-022020-07-27$80.58$102.6415.78%17
2020-06-302020-07-01$71.99$74.644.07%2
2020-06-262020-06-29$63.98$67.29-1.72%2
2020-06-192020-06-25$66.73$65.73-2.69%5
2020-06-032020-06-18$58.86$66.937.47%12
2020-06-012020-06-02$59.87$58.774.41%2
2020-05-222020-05-26$54.46$54.59-0.90%2
2020-05-202020-05-21$54.37$55.170.44%2
2019-12-132020-02-12$23.89$51.1560.71%41
2019-11-222019-11-25$22.20$22.42-3.80%2
2018-12-112018-12-18$24.45$22.47-2.84%6
2018-12-072018-12-10$23.86$24.34-0.96%2
2018-12-042018-12-06$23.98$24.200.08%2
2017-10-052017-10-06$23.69$23.79-0.07%2
2017-09-182017-09-25$25.67$23.00-4.69%6
2017-08-042017-08-22$23.79$22.76-1.67%13
2017-06-052017-06-27$23.15$24.166.46%17
2017-05-112017-05-12$21.54$21.65-0.51%2
2017-05-082017-05-09$20.48$21.42-0.35%2
2017-05-022017-05-04$21.26$19.70-2.32%3
2017-04-282017-05-01$20.94$21.520.94%2
2017-04-262017-04-27$20.68$20.58-0.81%2
2017-04-242017-04-25$20.54$20.920.36%2
2017-04-202017-04-21$20.17$20.37-0.71%2
2017-03-282017-04-19$18.50$20.376.53%16
2017-02-232017-02-24$17.07$17.13-3.96%2
2017-02-102017-02-22$17.95$18.231.74%8
2015-08-062015-08-07$16.41$16.17-5.45%2
2015-07-202015-07-22$18.82$17.86-1.80%3
2014-09-022014-09-12$18.94$18.612.28%9
2014-08-282014-08-29$17.59$17.980.02%2
2014-08-262014-08-27$17.45$17.55-0.30%2
2014-08-052014-08-25$15.90$17.504.46%15
2014-07-102014-07-11$14.63$14.54-1.09%2
2014-07-072014-07-08$14.84$14.60-1.84%2
2014-06-232014-07-03$15.81$15.28-0.11%9
2014-03-202014-03-21$15.66$15.26-0.36%2
2014-03-182014-03-19$16.00$15.721.43%2
2014-03-142014-03-17$15.40$15.60-1.84%2
2014-03-122014-03-13$16.10$15.851.69%2
2014-02-122014-03-11$13.02$15.6312.68%19
2014-01-242014-02-06$11.64$11.89-2.38%10
2013-10-162013-10-17$12.24$12.19-0.24%2
2013-10-092013-10-10$11.25$11.53-2.16%2
2013-10-072013-10-08$12.20$11.650.57%2
2013-09-232013-10-04$12.07$12.07-3.37%10
2013-09-192013-09-20$11.86$12.234.10%2
2013-09-172013-09-18$11.08$11.08-0.25%2
2013-09-132013-09-16$11.04$11.110.10%2
2013-09-112013-09-12$10.90$11.00-1.15%2
2013-09-062013-09-10$11.13$11.09-3.39%3
2013-07-022013-07-17$7.85$8.02-4.00%11
2013-06-282013-07-01$7.16$7.81-1.16%2
2013-04-302013-06-04$3.60$6.3238.79%25
2013-03-262013-04-09$2.52$2.706.96%10
2013-02-202013-02-21$2.57$2.34-1.25%2
2013-02-152013-02-19$2.47$2.62-2.05%2