Strategy Zoo / S1241

LongTermTrend_V1241

ARCHIVEDhybrid

llmAdded regime gates to avoid downtrend/high-bubble environments; tightened medium-term and 1-day drawdown filters; incorporated volatility percentile and momentum filter to avoid high-volatility, low-momentum entries; allowed breakout-based entry path in addition to 200-day trend; improved exit with SMA50 gap and high RSI overbought rule; reduced base position to 0.8 to lower risk.

Fitness
0.0682
Generation
57
Complexity
20
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V0909S0909 · gen 41ARCHIVEDllm

swapped indicator ret_20d -> ret_1d

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1241  [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.0) or (breakout_20 > 0.0 and ret_20d > 0.05) or ret_20d > 0.1) and vol_pctile < 0.75 and ret_1d > -0.05 and cumret_252d > -0.3 and momentum_60 > 0.0):
    position = 0.8
if long and (ret_20d < -0.1003 or dist_sma_50 < -0.03 or rsi_14 > 80.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-6.8%-1.1%-11.6%-6.9%
Total Return-42.9%-3.2%-37.1%-65.2%
Sharpe-0.330.05-0.50-0.29
Sortino-0.220.03-0.37-0.20
Calmar-0.12-0.04-0.27-0.10
Volatility17.0%20.2%20.5%18.6%
Max DD-56.2%-29.8%-43.9%-67.6%
Win Rate34.9%45.8%41.3%39.1%
Avg Win4.9%7.6%4.1%5.2%
Avg Loss-3.8%-5.9%-4.3%-4.3%
Payoff1.311.290.951.21
Expectancy-0.7%0.3%-0.8%-0.6%
Profit Factor0.701.100.670.78
Trades632446133
Avg Holding Days8.77.86.27.7
Turnover12.612.819.714.5
Exposure19.4%17.4%20.4%19.3%

Growth of $100

LongTermTrend_V1241 vs TSLA Buy & Hold
LongTermTrend_V1241 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-19.8%-1.73-25.8%4
201717.6%1.59-9.2%9
2018-18.6%-1.58-19.3%3
20190.7%0.14-19.2%4
20200.0%0.000.0%0
202116.4%0.69-23.3%19
2022-24.9%-1.42-29.7%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-1.2%-0.950%
hidden testEXPENSIVE8334.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-25.3%-1.482%
hidden testLOW VOLATILITY4397.8%0.3930%
hidden testMEDIUM VOLATILITY250-26.6%-1.0824%
hidden testNORMAL812-15.4%-0.7124%
hidden testSIDEWAYS294-53.1%-2.2930%
hidden testUPTREND37116.9%0.6728%
trainDOWNTREND518-4.6%-1.131%
trainEXPENSIVE3119.9%1.762%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-3.8%-0.251%
trainLOW VOLATILITY74513.8%0.8336%
trainMEDIUM VOLATILITY568-33.2%-1.7320%
trainNORMAL1,601-8.9%-0.4724%
trainSIDEWAYS592-33.4%-2.0913%
trainUPTREND90212.2%0.5634%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-2.7%-0.171%
validationLOW VOLATILITY18323.5%1.2842%
validationMEDIUM VOLATILITY315-9.1%-0.3816%
validationNORMAL4741.5%0.0628%
validationSIDEWAYS206-22.0%-1.0821%
validationUPTREND42512.4%0.5421%

Trades (full period)

latest 100 of 133
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-112026-06-10$445.00$381.59-5.97%22
2026-02-232026-02-24$399.83$409.38-2.49%2
2026-02-192026-02-20$411.71$411.82-0.08%2
2026-02-172026-02-18$410.63$411.32-1.46%2
2026-02-122026-02-13$417.07$417.44-2.25%2
2026-01-232026-01-27$449.06$430.90-2.68%3
2026-01-122026-01-16$448.96$437.50-1.31%5
2025-11-282026-01-08$430.17$435.800.87%28
2025-11-252025-11-26$419.40$426.580.15%2
2025-11-212025-11-24$391.09$417.78-1.00%2
2025-11-192025-11-20$403.99$395.230.39%2
2025-11-172025-11-18$408.92$401.250.74%2
2025-11-132025-11-14$401.99$404.35-5.47%2
2025-08-272025-09-15$349.60$410.049.88%13
2025-08-192025-08-21$329.31$320.11-2.85%3
2025-07-292025-08-01$321.20$302.63-4.42%4
2025-07-172025-07-25$319.41$316.06-4.18%7
2025-07-152025-07-16$310.78$321.67-1.70%2
2025-06-022025-06-06$342.69$295.14-14.50%5
2025-05-222025-05-28$341.04$356.906.58%4
2024-09-232024-10-14$250.00$219.16-6.94%16
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-112024-07-12$241.03$248.23-6.91%2
2024-07-092024-07-10$262.33$263.262.81%2
2024-07-052024-07-08$251.52$252.941.50%2
2024-06-182024-07-03$184.86$246.3918.26%11
2023-11-142024-01-12$237.41$218.891.27%41
2023-09-122023-09-25$267.48$246.99-8.60%10
2023-09-062023-09-11$251.92$273.58-2.65%4
2023-08-292023-09-05$257.18$256.491.98%5
2023-08-252023-08-28$238.59$238.822.81%2
2023-08-232023-08-24$236.86$230.041.10%2
2023-08-212023-08-22$231.28$233.195.70%2
2023-08-172023-08-18$219.22$215.49-2.42%2
2023-08-152023-08-16$232.96$225.60-2.43%2
2023-08-112023-08-14$242.65$239.76-1.04%2
2023-08-042023-08-10$253.86$245.34-5.46%5
2023-06-232023-08-03$256.60$259.32-3.11%29
2023-06-202023-06-21$274.45$259.464.11%2
2023-06-152023-06-16$255.90$260.54-0.44%2
2023-06-132023-06-14$258.71$256.792.68%2
2023-06-092023-06-12$244.40$249.833.09%2
2023-05-312023-06-08$203.93$234.869.05%7
2023-02-282023-03-10$205.71$173.44-13.68%9
2022-08-032022-09-01$307.40$277.16-6.75%22
2022-05-052022-05-06$291.09$288.55-6.82%2
2022-03-292022-04-27$366.52$293.84-16.02%21
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-222022-01-04$336.29$383.2021.76%9
2021-12-202021-12-21$299.98$312.84-2.96%2
2021-12-152021-12-16$325.33$308.971.30%2
2021-12-072021-12-14$350.58$319.50-3.48%6
2021-11-232021-12-03$369.68$338.32-5.13%8
2021-11-082021-11-10$387.65$355.98-13.23%3
2021-11-042021-11-05$409.97$407.360.90%2
2021-11-022021-11-03$390.67$404.62-2.58%2
2021-10-292021-11-01$371.33$402.862.58%2
2021-10-272021-10-28$345.95$359.011.37%2
2021-10-252021-10-26$341.62$339.489.96%2
2021-10-202021-10-22$288.60$303.232.59%3
2021-06-232021-10-19$218.86$288.0930.64%83
2021-06-032021-06-04$190.95$199.68-4.42%2
2021-06-012021-06-02$207.97$201.71-0.33%2
2021-03-052021-03-08$199.32$187.67-3.18%2
2021-03-032021-03-04$217.73$207.15-4.03%2
2021-03-012021-03-02$239.48$228.814.92%2
2021-02-242021-02-25$247.34$227.414.78%2
2021-02-192021-02-23$260.43$232.95-7.56%3
2019-11-222019-12-17$22.20$25.275.89%17
2019-10-162019-10-25$17.32$21.8812.82%8
2019-09-122019-09-25$16.39$15.25-7.91%10
2019-07-232019-07-26$17.34$15.20-8.48%4
2018-11-272018-12-21$22.93$21.32-7.21%18
2018-03-132018-03-15$22.79$21.71-4.53%3
2018-01-222018-02-09$23.44$20.69-8.08%15
2017-10-272017-10-30$21.39$21.34-1.46%2
2017-10-252017-10-26$21.72$21.74-2.88%2
2017-10-102017-10-24$23.71$22.49-1.51%11
2017-09-292017-10-05$22.74$23.693.45%5
2017-03-242017-03-28$17.54$18.504.67%3
2017-03-202017-03-23$17.46$16.99-2.13%4
2017-03-102017-03-17$16.25$17.435.42%6
2017-01-312017-02-03$16.80$16.760.14%4
2016-12-282017-01-24$14.65$16.9710.44%18
2016-08-012016-08-31$15.33$14.13-8.20%23
2016-06-082016-06-13$15.70$14.52-4.82%4
2016-04-012016-05-05$15.84$14.10-2.56%25
2016-03-212016-03-24$15.89$15.18-3.63%4
2015-08-192015-08-21$17.02$15.38-5.86%3
2015-04-282015-08-07$15.37$16.175.13%72
2015-04-142015-04-21$13.83$13.96-1.88%6
2014-11-172014-12-02$16.93$15.43-8.56%11
2014-10-292014-10-30$15.87$15.91-1.70%2
2014-10-272014-10-28$14.78$16.18-4.77%2
2014-10-232014-10-24$15.69$15.681.29%2
2014-10-212014-10-22$15.69$15.411.53%2
2014-10-172014-10-20$15.17$15.360.24%2
2014-10-152014-10-16$15.31$15.090.77%2