Strategy Zoo / S1162

LongTermTrend_V1162

ARCHIVEDhybrid

llmTightened entry momentum filter (macd_hist > 0 instead of > -2.6) and added a volatility percentile cap on entries (vol_pctile < 0.75) to avoid extreme-volatility entrants. Broadened regime gates to only allow UPTREND/ SIDEWAYS, disallow HIGH volatility and non-normal bubble states. Improved exit logic to include price crossing below sma_20 and an absolute drawdown stop (drawdown > 12%) in addition to macd_hist < 0. Added volatility-based position scaling (reduce to 60% exposure when vol_pctile > 0.66) and lowered base position to 0.9 to reduce risk and drawdown.

Fitness
0.1668
Generation
53
Complexity
34
Created
2026-10-06

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1162  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > 0.0 and vol_pctile < 0.75):
    position = 0.9
if long and (macd_hist < 0.0 or close < sma_20 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.1%6.8%8.9%3.5%
Total Return-0.7%21.8%37.5%66.3%
Sharpe0.070.440.530.28
Sortino0.040.280.370.18
Calmar-0.000.370.460.09
Volatility15.8%18.6%19.5%17.4%
Max DD-37.5%-18.5%-19.4%-37.5%
Win Rate41.3%28.6%37.5%38.1%
Avg Win5.7%12.5%9.2%7.5%
Avg Loss-3.7%-2.6%-2.9%-3.3%
Payoff1.524.783.182.29
Expectancy0.1%1.7%1.6%0.8%
Profit Factor1.071.911.911.41
Trades46142484
Avg Holding Days7.59.68.38.1
Turnover10.48.411.610.3
Exposure13.4%14.4%16.6%14.4%

Growth of $100

LongTermTrend_V1162 vs TSLA Buy & Hold
LongTermTrend_V1162 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-3.4%-0.24-9.4%5
20179.6%0.95-5.5%7
2018-6.3%-0.68-10.8%3
2019-4.1%-0.06-21.9%5
20200.0%0.000.0%0
20217.9%0.43-17.9%9
20220.7%0.12-18.5%4

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 testDOWNTREND278-3.2%-1.371%
hidden testEXPENSIVE8338.5%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-9.6%-0.622%
hidden testLOW VOLATILITY43819.1%0.9725%
hidden testMEDIUM VOLATILITY25015.5%0.6818%
hidden testNORMAL8118.2%0.4019%
hidden testSIDEWAYS293-14.9%-0.6231%
hidden testUPTREND37140.6%1.8017%
trainDOWNTREND518-7.3%-1.211%
trainEXPENSIVE31111.6%1.832%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6996.4%0.421%
trainLOW VOLATILITY74514.8%1.0225%
trainMEDIUM VOLATILITY568-23.2%-1.3014%
trainNORMAL1,601-0.8%-0.0516%
trainSIDEWAYS592-9.0%-0.4921%
trainUPTREND90212.7%0.7116%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2581.2%0.071%
validationLOW VOLATILITY1834.1%0.2434%
validationMEDIUM VOLATILITY31516.5%0.7814%
validationNORMAL47413.2%0.5623%
validationSIDEWAYS2061.6%0.0822%
validationUPTREND42513.9%0.6915%

Trades (full period)

84 trades
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.97%3
2026-05-282026-06-02$442.10$423.74-5.18%4
2026-05-082026-05-21$428.35$417.851.06%10
2026-04-202026-04-21$392.50$386.42-2.00%2
2025-12-042025-12-30$454.53$454.432.46%18
2025-09-082025-09-15$346.40$410.0411.34%6
2025-08-252025-09-03$346.60$334.09-2.99%7
2025-08-112025-08-21$339.03$320.11-1.74%9
2025-07-292025-08-01$321.20$302.63-4.97%4
2025-07-212025-07-25$328.49$316.06-6.81%5
2025-06-022025-06-03$342.69$344.27-1.16%2
2025-05-222025-05-28$341.04$356.907.40%4
2025-05-122025-05-13$318.38$334.075.89%2
2024-09-232024-10-04$250.00$250.080.76%10
2024-09-162024-09-20$226.78$238.255.15%5
2024-09-042024-09-09$219.41$216.27-0.07%4
2024-06-172024-07-12$187.44$248.2331.32%18
2023-12-152024-01-02$253.50$248.42-1.08%11
2023-11-162023-12-13$233.59$239.29-2.31%19
2023-10-062023-10-16$260.53$253.92-3.26%7
2023-08-302023-09-22$256.90$244.88-0.62%17
2023-07-062023-07-07$276.54$274.43-2.07%2
2023-05-312023-06-27$203.93$250.2117.57%19
2023-03-242023-04-06$190.41$185.06-3.27%10
2022-09-132022-09-23$292.13$275.33-4.84%9
2022-08-162022-08-19$306.56$296.67-2.06%4
2022-08-022022-08-12$300.59$300.03-3.37%9
2022-03-212022-04-11$307.05$325.3111.77%16
2021-12-282022-01-04$362.82$383.208.55%6
2021-10-132021-11-10$270.36$355.9824.07%21
2021-10-082021-10-11$261.83$263.98-1.10%2
2021-09-282021-10-07$259.19$264.54-1.16%8
2021-08-312021-09-21$245.24$246.46-0.26%15
2021-08-022021-08-17$236.56$221.90-0.29%12
2021-07-132021-07-15$222.85$216.87-4.42%3
2021-06-182021-07-12$207.77$228.575.71%16
2021-06-142021-06-16$205.90$201.62-1.73%3
2021-04-142021-04-28$244.08$231.47-6.96%11
2019-12-162019-12-17$25.43$25.275.62%2
2019-10-152019-10-25$17.19$21.8814.77%9
2019-09-112019-09-25$16.47$15.25-4.85%11
2019-07-222019-07-26$17.05$15.20-10.36%5
2019-03-012019-03-04$19.65$19.02-7.23%2
2018-12-112018-12-18$24.45$22.47-4.29%6
2018-03-142018-03-15$21.78$21.71-4.18%2
2018-01-112018-02-05$22.53$22.212.24%17
2017-12-122017-12-26$22.74$21.15-1.18%10
2017-10-182017-10-23$23.98$22.47-2.87%4
2017-10-132017-10-17$23.70$23.72-1.46%3
2017-03-242017-03-28$17.54$18.505.26%3
2017-03-202017-03-22$17.46$17.00-3.90%3
2017-01-312017-02-02$16.80$16.77-0.68%3
2016-12-282017-01-25$14.65$16.9614.10%19
2016-07-222016-08-09$14.82$15.272.14%13
2016-06-082016-06-13$15.70$14.52-5.42%4
2016-04-042016-04-14$16.47$16.796.24%9
2016-03-282016-04-01$15.35$15.840.62%5
2016-03-212016-03-24$15.89$15.18-4.09%4
2015-12-292016-01-05$15.81$14.90-2.32%5
2015-09-212015-09-29$17.61$16.44-4.38%7
2015-07-212015-07-22$17.78$17.86-5.11%2
2015-06-222015-07-09$17.32$17.19-2.73%13
2015-04-282015-05-22$15.37$16.525.28%19
2015-04-142015-04-21$13.83$13.96-2.11%6
2014-11-252014-12-01$16.54$15.44-0.98%4
2014-11-112014-11-24$16.74$16.450.16%10
2014-10-082014-10-13$17.29$14.97-8.03%4
2014-09-022014-09-12$18.94$18.613.37%9
2014-07-312014-08-25$14.89$17.5010.73%18
2014-05-282014-07-07$14.02$14.847.37%28
2014-01-072014-01-08$9.96$10.091.26%2
2013-03-272013-04-02$2.54$2.9614.22%4
2013-03-082013-03-15$2.56$2.35-3.41%6
2013-02-122013-02-14$2.53$2.55-0.11%3
2013-01-232013-01-24$2.40$2.471.89%2
2012-11-062012-12-14$2.08$2.255.87%28
2012-09-182012-09-21$2.09$2.00-4.72%4
2012-07-202012-07-23$2.12$2.04-1.52%2
2012-07-132012-07-19$2.28$2.15-1.64%5
2012-06-272012-07-03$2.13$2.04-3.62%5
2012-06-192012-06-25$2.14$2.215.34%5
2012-03-282012-04-05$2.52$2.30-7.13%7
2012-03-142012-03-16$2.35$2.35-2.90%3
2012-02-152012-02-29$2.24$2.231.56%10