Strategy Zoo / S0394

LongTermTrend_V0394

ARCHIVEDhybrid

llmRemoved redundant duplicate ret_20d clause; added volatility and breakout/volume filters to avoid entries during very noisy conditions; required price > sma_50 for short-term confirmation; introduced regime gates (UPTREND, MEDIUM_VOLATILITY, NORMAL bubble) to limit trading to favorable regimes; improved exit with additional fast failure rules (close under sma_50 or sharp 1d drop) to reduce drawdowns; added a volatility-based position scaling rule to reduce exposure when volatility is high.

Fitness
0.4844
Generation
18
Complexity
17
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_V0394  [hybrid]
if flat and (((close > sma_200 and sma_200_slope > 0.0) or ret_20d > 0.1) and ret_20d > 0.05 and cumret_252d > -0.1997 and vol_pctile < 0.7 and (breakout_20 > 0.0 or rel_volume > 1.5) and dist_sma_50 > 0.0):
    position = 1.0
if long and (macd_hist < 0.0 or dist_sma_50 < 0.0 or ret_1d < -0.03):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-1.8%67.6%13.1%13.5%
Total Return-13.8%370.6%57.8%540.6%
Sharpe-0.021.750.750.69
Sortino-0.011.370.430.44
Calmar-0.063.650.760.42
Volatility17.5%32.5%18.8%21.7%
Max DD-32.4%-18.5%-17.3%-32.4%
Win Rate42.6%56.0%38.1%45.0%
Avg Win5.1%15.0%13.1%9.6%
Avg Loss-4.0%-2.8%-3.7%-3.7%
Payoff1.295.373.552.63
Expectancy-0.1%7.2%2.7%2.3%
Profit Factor0.966.842.192.15
Trades542521100
Avg Holding Days7.26.56.56.9
Turnover13.516.711.413.6
Exposure16.7%18.3%12.5%16.0%

Growth of $100

LongTermTrend_V0394 vs TSLA Buy & Hold
LongTermTrend_V0394 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
201614.0%1.10-7.0%4
20177.2%0.45-15.1%13
2018-10.6%-1.12-15.0%4
2019-2.6%-0.09-14.7%3
2020200.3%2.59-18.5%10
202137.2%1.37-17.9%10
202210.0%0.63-9.5%5

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 testDOWNTREND267-14.1%-1.942%
hidden testEXPENSIVE8364.7%2.4025%
hidden testEXTREME4867.6%2.1715%
hidden testHIGH VOLATILITY254-2.9%-0.192%
hidden testLOW VOLATILITY42932.9%1.8017%
hidden testMEDIUM VOLATILITY248-0.9%-0.0415%
hidden testNORMAL8005.7%0.3411%
hidden testSIDEWAYS2932.8%0.1818%
hidden testUPTREND37143.4%1.7016%
trainDOWNTREND5181.4%0.223%
trainEXPENSIVE3114.7%0.1729%
trainEXTREME10025.4%1.1324%
trainHIGH VOLATILITY699-15.0%-0.835%
trainLOW VOLATILITY74518.4%1.1230%
trainMEDIUM VOLATILITY568-6.8%-0.3814%
trainNORMAL1,601-2.9%-0.2014%
trainSIDEWAYS592-6.7%-0.4015%
trainUPTREND9022.9%0.1326%
validationDOWNTREND1255.9%0.574%
validationEXPENSIVE13858.6%1.8518%
validationEXTREME144181.7%3.2222%
validationHIGH VOLATILITY25863.2%1.617%
validationLOW VOLATILITY18315.9%0.9929%
validationMEDIUM VOLATILITY31575.3%2.2522%
validationNORMAL47418.3%0.9117%
validationSIDEWAYS20611.4%0.6712%
validationUPTREND42593.7%2.2825%

Trades (full period)

100 trades
EntryExitEntry PxExit PxReturnDays
2026-09-042026-09-08$354.08$368.16-6.12%2
2026-09-012026-09-02$356.09$357.01-3.42%2
2026-05-082026-05-18$428.35$409.992.34%7
2026-04-202026-04-22$392.50$387.51-3.74%3
2025-12-152025-12-18$475.31$483.371.61%4
2025-09-302025-10-03$444.72$429.83-1.82%4
2025-09-122025-09-26$395.94$440.4014.58%11
2025-08-262025-09-02$351.67$329.36-3.86%5
2025-08-122025-08-22$340.84$340.01-5.77%9
2025-05-122025-06-02$318.38$342.6915.94%15
2024-12-102024-12-19$400.99$436.1712.69%8
2024-09-242024-10-03$254.27$240.66-0.59%8
2024-09-062024-09-09$210.73$216.27-8.64%2
2024-06-272024-07-12$197.42$248.2322.50%11
2023-12-282023-12-29$253.18$248.48-3.36%2
2023-12-182023-12-21$252.08$254.50-2.70%4
2023-11-292023-12-14$244.14$251.05-3.21%12
2023-09-122023-09-19$267.48$266.50-3.23%6
2023-07-182023-07-19$293.34$291.260.82%2
2023-07-052023-07-07$282.48$274.43-1.37%3
2023-05-302023-06-22$201.16$264.6134.05%17
2022-08-162022-08-19$306.56$296.67-2.28%4
2022-07-282022-08-08$280.90$290.424.65%8
2022-07-222022-07-27$272.24$274.82-4.92%4
2022-03-222022-04-06$331.33$348.5918.24%12
2022-01-042022-01-05$383.20$362.71-4.38%2
2021-11-042021-11-09$409.97$341.17-4.39%4
2021-10-132021-11-03$270.36$404.6245.17%16
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-09-272021-10-07$263.79$264.540.88%9
2021-09-082021-09-21$251.29$246.46-3.22%10
2021-08-042021-08-17$236.97$221.90-3.51%10
2021-06-242021-07-12$226.61$228.57-0.14%12
2021-04-142021-04-15$244.08$246.28-4.14%2
2021-01-262021-01-27$294.36$288.050.06%2
2021-01-042021-01-12$243.26$283.1514.73%7
2020-12-182020-12-22$231.67$213.45-1.11%3
2020-12-042020-12-10$199.68$209.021.67%5
2020-11-192020-12-01$166.42$194.9216.41%8
2020-08-272020-09-02$149.25$149.1210.10%5
2020-07-012020-07-14$74.64$101.1238.37%9
2020-06-092020-06-12$62.71$62.352.21%4
2020-06-012020-06-02$59.87$58.777.35%2
2020-05-222020-05-26$54.46$54.59-1.49%2
2020-01-222020-02-06$37.97$49.9334.00%12
2020-01-062020-01-16$30.10$34.2316.81%9
2019-12-172019-12-31$25.27$27.898.48%10
2019-09-272019-09-30$16.14$16.06-0.38%2
2019-07-162019-07-26$16.83$15.20-9.92%9
2018-12-142018-12-18$24.38$22.47-7.72%3
2018-12-062018-12-07$24.20$23.860.73%2
2018-03-132018-03-15$22.79$21.71-5.65%3
2018-01-092018-02-05$22.25$22.211.98%19
2017-12-122017-12-27$22.74$20.78-3.72%11
2017-09-182017-09-25$25.67$23.00-7.75%6
2017-08-042017-08-18$23.79$23.161.19%11
2017-06-142017-06-27$25.38$24.160.21%10
2017-06-062017-06-12$23.52$23.932.68%5
2017-05-112017-05-12$21.54$21.65-0.85%2
2017-05-012017-05-04$21.52$19.70-1.17%4
2017-04-262017-04-27$20.68$20.58-1.35%2
2017-03-282017-04-13$18.50$20.279.63%13
2017-02-232017-02-24$17.07$17.13-6.60%2
2017-02-092017-02-17$17.95$18.152.42%7
2017-02-072017-02-08$17.17$17.47-0.31%2
2016-12-212017-02-02$13.85$16.7719.13%29
2016-07-262016-08-09$15.30$15.27-1.87%11
2016-06-082016-06-10$15.70$14.59-1.48%3
2016-04-012016-04-08$15.84$16.6711.72%6
2016-03-152016-03-24$14.56$15.183.25%8
2015-09-222015-09-29$17.40$16.44-6.16%6
2015-08-062015-08-07$16.41$16.17-9.08%2
2015-07-212015-07-22$17.78$17.86-5.68%2
2015-07-062015-07-08$18.65$17.00-4.53%3
2015-06-092015-06-10$17.07$16.71-0.31%2
2015-05-292015-06-01$16.72$16.63-0.46%2
2015-04-132015-05-22$13.99$16.5216.23%30
2014-11-122014-11-20$16.61$16.58-1.53%7
2014-09-022014-09-08$18.94$18.812.65%5
2014-08-282014-08-29$17.59$17.980.03%2
2014-08-262014-08-27$17.45$17.55-0.51%2
2014-08-052014-08-25$15.90$17.507.44%15
2014-06-172014-07-03$15.44$15.281.94%13
2014-03-052014-03-11$16.84$15.63-6.47%5
2014-02-212014-03-03$13.97$16.7016.36%7
2014-02-142014-02-20$13.22$14.00-3.20%4
2014-01-242014-01-27$11.64$11.31-4.00%2
2013-09-202013-10-03$12.23$11.551.50%10
2013-07-022013-07-17$7.85$8.02-7.12%11
2013-04-302013-05-08$3.60$3.720.83%7
2013-02-202013-02-21$2.57$2.34-2.08%2
2013-01-292013-02-14$2.53$2.550.90%13
2012-11-142012-12-14$2.09$2.256.11%22
2012-11-062012-11-12$2.08$2.07-3.94%5
2012-07-162012-07-18$2.40$2.14-2.82%3
2012-06-252012-06-27$2.21$2.13-6.64%3
2012-06-192012-06-22$2.14$2.250.90%4
2012-03-272012-04-05$2.53$2.30-6.60%8
2012-03-132012-03-16$2.41$2.35-3.00%4
2012-02-152012-02-29$2.24$2.231.73%10