Strategy Zoo / S1348

LongTermTrend_V1348

ARCHIVEDhybrid

llm1) Added regime gates: allow entries only in UPTREND or SIDEWAYS, avoid HIGH_VOLATILITY and EXTREME bubble states to reduce overfitting in adverse regimes. 2) Simplified entry logic into three robust pathways (long-term trend above SMA200 with non-negative slope; momentum via MACD+SMA50; breakout with elevated relative volume) plus requirement close > SMA20 to avoid weak setups. 3) Reworked exit to be more robust: MACD flip OR price below SMA50 OR a hard drawdown stop (12%). 4) Introduced volatility-aware position sizing rules (reduce size when vol_pctile>0.75, full size when vol_pctile<=0.25) and a cap near 52-week highs. 5) Reduced base_position from 1.0 to 0.8 to temper leverage and turnover.

Fitness
0.3211
Generation
62
Complexity
19
Created
2026-10-09

Lineage

Parents (1)
LongTermTrend_V1083S1083 · gen 49ELITEllm

swapped indicator ret_20d -> cumret_252d; removed entry condition: rsi_14 > 34.4934

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1348  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
if flat and (((close > sma_200 and sma_200_slope > -0.001) or (macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and rel_volume > 1.3)) and sma_20 < close):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.2%30.3%-6.7%3.8%
Total Return-1.3%121.0%-22.8%72.4%
Sharpe0.071.34-0.270.29
Sortino0.061.28-0.210.24
Calmar-0.001.54-0.180.09
Volatility17.1%21.3%19.1%18.6%
Max DD-41.4%-19.6%-38.0%-41.4%
Win Rate36.2%52.9%28.3%37.7%
Avg Win3.5%5.4%5.4%4.6%
Avg Loss-2.0%-2.2%-2.5%-2.2%
Payoff1.742.432.162.10
Expectancy-0.0%1.8%-0.3%0.4%
Profit Factor0.992.730.851.27
Trades1415160252
Avg Holding Days4.35.04.74.6
Turnover28.427.225.827.4
Exposure18.9%21.4%19.0%19.5%

Growth of $100

LongTermTrend_V1348 vs TSLA Buy & Hold
LongTermTrend_V1348 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-6.7%-0.62-11.8%13
20178.6%0.58-10.3%25
2018-11.7%-1.08-15.5%8
2019-2.6%-0.00-19.6%7
202073.8%2.67-8.4%11
202126.3%1.05-17.6%30
20220.6%0.12-16.6%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 testDOWNTREND278-2.9%-1.411%
hidden testEXPENSIVE83-4.0%-0.1532%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-8.6%-0.632%
hidden testLOW VOLATILITY44115.2%0.8027%
hidden testMEDIUM VOLATILITY250-37.2%-1.6023%
hidden testNORMAL814-5.5%-0.2919%
hidden testSIDEWAYS296-26.9%-1.3229%
hidden testUPTREND37110.7%0.4425%
trainDOWNTREND518-6.5%-1.211%
trainEXPENSIVE31133.5%1.5728%
trainEXTREME1009.3%1.551%
trainHIGH VOLATILITY6997.3%0.451%
trainLOW VOLATILITY74512.1%0.7333%
trainMEDIUM VOLATILITY568-20.4%-1.1022%
trainNORMAL1,601-5.5%-0.3318%
trainSIDEWAYS592-14.0%-0.8121%
trainUPTREND90215.8%0.7528%
validationDOWNTREND125-0.3%-2.020%
validationEXPENSIVE13896.2%3.3334%
validationEXTREME14442.5%2.863%
validationHIGH VOLATILITY258-6.6%-0.661%
validationLOW VOLATILITY1835.3%0.3137%
validationMEDIUM VOLATILITY31571.2%2.4729%
validationNORMAL4744.8%0.2423%
validationSIDEWAYS206-7.8%-0.4123%
validationUPTREND42554.9%2.1927%

Trades (full period)

latest 100 of 253
EntryExitEntry PxExit PxReturnDays
2026-10-07—$377.81—-1.27%2OPEN
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-05-272026-06-02$440.36$423.74-3.41%5
2026-05-222026-05-26$426.01$433.591.40%2
2026-05-082026-05-21$428.35$417.850.97%10
2026-04-202026-04-21$392.50$386.42-1.78%2
2026-03-122026-03-13$395.01$391.20-2.67%2
2026-02-262026-02-27$408.58$402.51-1.85%2
2026-02-122026-02-13$417.07$417.44-2.25%2
2026-01-232026-01-26$449.06$435.20-0.21%2
2025-12-032025-12-30$446.74$454.435.56%19
2025-12-012025-12-02$430.14$429.24-0.17%2
2025-11-062025-11-07$445.91$429.52-2.96%2
2025-11-032025-11-05$468.37$462.07-2.29%3
2025-10-302025-10-31$440.10$456.56-3.87%2
2025-10-282025-10-29$460.55$461.511.28%2
2025-10-242025-10-27$433.72$452.42-2.88%2
2025-10-222025-10-23$438.97$448.98-0.82%2
2025-10-202025-10-21$447.43$442.601.32%2
2025-10-162025-10-17$428.75$439.31-1.34%2
2025-10-142025-10-15$429.24$435.15-1.38%2
2025-10-092025-10-10$435.54$413.49-0.73%2
2025-10-072025-10-08$433.09$438.69-3.72%2
2025-09-052025-10-06$350.84$453.2521.08%22
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-112025-08-21$339.03$320.11-1.54%9
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-212025-07-25$328.49$316.06-6.05%5
2025-07-172025-07-18$319.41$329.65-0.72%2
2025-06-042025-06-05$332.05$284.70-3.00%2
2025-05-192025-06-03$342.09$344.27-1.77%11
2025-05-122025-05-13$318.38$334.075.23%2
2024-10-092024-10-10$241.05$238.77-1.29%2
2024-10-072024-10-08$240.83$244.50-3.12%2
2024-09-232024-10-04$250.00$250.080.70%10
2024-09-162024-09-20$226.78$238.254.58%5
2024-09-052024-09-09$230.17$216.27-3.25%3
2024-09-032024-09-04$210.60$219.41-1.47%2
2024-06-172024-07-12$187.44$248.2327.57%18
2024-01-032024-01-04$238.45$237.93-3.37%2
2023-12-152024-01-02$253.50$248.42-0.94%11
2023-11-292023-12-14$244.14$251.05-2.56%12
2023-11-272023-11-28$236.08$246.720.05%2
2023-11-222023-11-24$234.21$235.45-2.48%2
2023-11-202023-11-21$235.60$241.200.28%2
2023-11-162023-11-17$233.59$234.30-3.20%2
2023-11-142023-11-15$237.41$242.844.74%2
2023-10-182023-10-19$242.68$220.11-3.98%2
2023-10-052023-10-17$260.05$254.85-2.37%9
2023-09-122023-09-22$267.48$244.88-5.39%9
2023-09-082023-09-11$248.50$273.58-1.11%2
2023-09-062023-09-07$251.92$251.49-1.58%2
2023-08-302023-09-05$256.90$256.49-3.94%4
2023-07-202023-07-21$262.90$260.02-7.94%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-142023-07-17$281.38$290.380.84%2
2023-07-122023-07-13$271.99$277.900.49%2
2023-07-102023-07-11$269.61$269.79-1.56%2
2023-07-052023-07-07$282.48$274.43-1.09%3
2023-05-312023-06-27$203.93$250.2115.56%19
2023-03-242023-04-06$190.41$185.06-2.88%10
2022-09-132022-09-23$292.13$275.33-4.29%9
2022-08-162022-08-19$306.56$296.67-1.83%4
2022-08-022022-08-12$300.59$300.03-2.97%9
2022-03-182022-04-11$301.80$325.3113.91%17
2022-03-102022-03-11$279.43$265.12-2.08%2
2022-03-032022-03-04$279.76$279.43-3.85%2
2022-02-162022-02-17$307.80$292.12-0.08%2
2022-01-122022-01-13$368.74$343.852.98%2
2021-12-272022-01-03$364.65$399.93-0.92%6
2021-11-302021-12-01$381.59$365.000.39%2
2021-11-232021-11-24$369.68$372.00-3.47%2
2021-10-122021-11-10$268.57$355.9823.06%22
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-09-282021-10-07$259.19$264.54-1.03%8
2021-09-242021-09-27$258.13$263.792.04%2
2021-09-222021-09-23$250.65$251.211.20%2
2021-08-302021-09-21$243.64$246.461.92%16
2021-08-262021-08-27$233.72$237.31-1.29%2
2021-08-242021-08-25$236.16$237.070.09%2
2021-08-192021-08-20$224.49$226.75-1.96%2
2021-07-302021-08-17$229.07$221.900.92%13
2021-07-132021-07-15$222.85$216.87-3.94%3
2021-06-242021-07-12$226.61$228.57-0.08%12
2021-06-222021-06-23$207.90$218.860.21%2
2021-06-182021-06-21$207.77$206.940.71%2
2021-06-152021-06-16$199.79$201.62-2.53%2
2021-06-112021-06-14$203.30$205.90-0.19%2
2021-06-022021-06-03$201.71$190.95-2.57%2
2021-05-282021-06-01$208.41$207.97-0.87%2
2021-04-142021-04-29$244.08$225.67-7.29%12
2021-04-122021-04-13$233.99$254.112.79%2
2021-04-082021-04-09$227.93$225.671.37%2
2021-02-082021-02-09$287.81$283.150.89%2
2021-02-042021-02-05$283.33$284.08-0.60%2
2021-02-022021-02-03$290.93$284.902.98%2
2021-01-282021-01-29$278.48$264.51-2.82%2
2021-01-262021-01-27$294.36$288.050.05%2
2021-01-122021-01-25$283.15$293.603.35%9
2021-01-052021-01-11$245.04$270.4016.09%5