Strategy Zoo / S0162

LongTermTrend_V0162

ARCHIVEDtrend_following

structuralrestricted to volatility regimes ['HIGH_VOLATILITY', 'MEDIUM_VOLATILITY']

Fitness
0.4886
Generation
7
Complexity
10
Created
2026-09-18

Lineage

Parents (1)
LongTermTrend_V0135S0135 · gen 6ARCHIVEDstructural

changed rel_volume threshold 1.1075 -> 1.5438

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0162  [trend_following]
require regime.volatility in ['HIGH_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and (sma_200_slope > 0.0 and (close > sma_200 and sma_200_slope > 0.0 and rel_volume > 1.5438)):
    position = 1.0
if long and (close < sma_200 or dist_sma_200 < 0.1009):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR18.6%59.1%8.6%23.2%
Total Return291.2%302.9%35.5%2035.7%
Sharpe0.811.090.600.80
Sortino0.581.120.310.57
Calmar0.490.970.480.38
Volatility24.9%57.9%15.6%32.9%
Max DD-38.0%-60.7%-18.0%-60.7%
Win Rate50.0%50.0%40.0%48.8%
Avg Win18.8%100.8%29.5%31.5%
Avg Loss-5.9%-20.2%-5.9%-7.9%
Payoff3.174.984.984.00
Expectancy6.4%40.3%8.2%11.4%
Profit Factor3.174.983.323.82
Trades326543
Avg Holding Days13.061.813.219.8
Turnover8.04.02.75.9
Exposure19.1%48.3%6.6%21.9%

Growth of $100

LongTermTrend_V0162 vs TSLA Buy & Hold
LongTermTrend_V0162 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
201752.6%1.76-13.8%8
2018-0.1%-0.03-2.3%3
20190.0%0.000.0%0
2020359.1%2.22-60.7%3
20217.5%0.38-27.7%2
2022-31.1%-1.99-31.0%1

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 testEXPENSIVE8324.2%0.9217%
hidden testEXTREME48176.1%3.0494%
hidden testHIGH VOLATILITY25421.7%0.8019%
hidden testLOW VOLATILITY4293.7%1.001%
hidden testMEDIUM VOLATILITY2486.7%0.564%
hidden testNORMAL800-2.1%-0.790%
hidden testSIDEWAYS293-3.6%-0.950%
hidden testUPTREND37126.5%1.0816%
trainDOWNTREND518-3.4%-0.700%
trainEXPENSIVE31169.2%1.8765%
trainEXTREME100400.8%5.6486%
trainHIGH VOLATILITY69947.0%1.2832%
trainLOW VOLATILITY745-2.5%-0.692%
trainMEDIUM VOLATILITY56816.7%0.7425%
trainNORMAL1,601-13.2%-1.056%
trainSIDEWAYS592-10.6%-0.6510%
trainUPTREND90253.7%1.5636%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13846.4%0.6578%
validationEXTREME144356.0%4.0396%
validationHIGH VOLATILITY258126.8%1.4772%
validationLOW VOLATILITY183-7.0%-2.192%
validationMEDIUM VOLATILITY31552.0%1.1956%
validationNORMAL474-20.8%-0.5625%
validationSIDEWAYS206-46.6%-1.1531%
validationUPTREND425135.1%1.8871%

Trades (full period)

43 trades
EntryExitEntry PxExit PxReturnDays
2025-06-242025-06-25$340.47$327.55-2.55%2
2025-02-262025-02-27$290.80$281.95-4.16%2
2025-02-122025-02-18$336.51$354.118.11%4
2024-12-192025-02-05$436.17$378.17-11.07%31
2024-11-072024-12-16$296.91$463.0250.89%27
2021-10-262022-01-28$339.48$282.12-19.26%66
2021-02-242021-05-11$247.34$205.73-10.16%54
2020-11-182021-02-10$162.21$268.2791.99%57
2020-06-112020-10-26$64.86$140.09104.75%96
2020-03-202020-06-03$28.50$58.86105.73%52
2020-01-142020-03-19$35.86$28.51-31.31%46
2018-12-102018-12-13$24.34$25.122.21%4
2018-03-132018-03-14$22.79$21.78-1.26%2
2018-01-092018-01-10$22.25$22.32-1.01%2
2017-11-022017-11-03$19.95$20.41-6.99%2
2017-09-252017-10-10$23.00$23.71-2.52%12
2017-09-122017-09-22$24.18$23.410.57%9
2017-07-062017-09-01$20.59$23.698.58%42
2017-06-122017-06-16$23.93$24.764.83%5
2017-05-052017-06-08$20.56$24.6721.49%24
2017-03-292017-05-03$18.49$20.7314.71%25
2017-02-242017-03-28$17.13$18.505.35%23
2015-08-182015-08-21$17.38$15.38-5.21%4
2015-07-222015-08-07$17.86$16.17-7.92%13
2014-11-072014-11-10$16.01$16.13-0.62%2
2014-10-132014-10-14$14.97$15.14-5.39%2
2014-04-162014-05-09$13.27$12.15-8.08%17
2014-02-202014-03-26$14.00$14.2013.62%25
2014-01-152014-02-18$10.94$13.5822.67%23
2013-12-042014-01-06$9.26$9.803.15%22
2013-11-062013-11-27$10.08$8.46-32.00%16
2013-10-042013-10-18$12.07$12.235.27%11
2013-07-172013-09-09$8.02$10.7152.82%38
2013-05-082013-07-11$3.72$8.37119.83%45
2013-04-022013-05-06$2.96$3.9723.93%25
2013-02-222013-02-26$2.41$2.30-2.41%3
2012-07-182012-07-19$2.14$2.15-3.79%2
2012-06-272012-06-28$2.13$2.090.91%2
2012-06-252012-06-26$2.21$2.11-2.21%2
2012-06-212012-06-22$2.15$2.25-4.90%2
2012-05-232012-05-24$2.07$2.020.51%2
2012-05-112012-05-14$2.15$2.00-2.35%2
2012-04-052012-04-17$2.30$2.15-8.04%8