Strategy Zoo / S1247

LongTermTrend_V1247

ARCHIVEDhybrid

llmSimplified and diversified entry: add a clear SMA50>SMA200 regime plus relaxed MACD filter and a separate breakout arm with lower vol spike threshold. Added multi-criteria exit: MACD fade OR per-trade drawdown OR short-term loss to protect capital. Introduced regime gates to avoid extreme bubbles/high-volatility periods and position sizing rules using vol_pctile and sma_200_slope to reduce exposure in turbulent or down-slope regimes.

Fitness
0.0702
Generation
57
Complexity
15
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V1146S1146 · gen 52ARCHIVEDllm

changed vol_chg threshold 0.0238 -> 0.2681

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1247  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and ((sma_50 > sma_200 and sma_200_slope > -0.001 and macd_hist > -0.005) or (breakout_50 == 1 and vol_chg > 0.12)):
    position = 1.0
if long and (macd_hist < 0.0 or drawdown < -0.08 or ret_5d < -0.06):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-10.3%6.9%1.3%-4.1%
Total Return-58.0%22.2%4.9%-46.2%
Sharpe-0.570.460.16-0.18
Sortino-0.270.300.11-0.10
Calmar-0.170.370.05-0.07
Volatility16.6%17.7%13.0%16.0%
Max DD-60.5%-18.8%-24.1%-62.5%
Win Rate45.3%48.3%48.6%46.9%
Avg Win2.0%2.6%2.2%2.2%
Avg Loss-2.7%-1.6%-1.9%-2.3%
Payoff0.761.631.160.98
Expectancy-0.5%0.4%0.1%-0.2%
Profit Factor0.631.521.100.86
Trades1395874271
Avg Holding Days2.52.32.22.4
Turnover34.838.739.636.8
Exposure10.3%10.1%9.4%10.1%

Growth of $100

LongTermTrend_V1247 vs TSLA Buy & Hold
LongTermTrend_V1247 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-4.4%-0.40-12.5%26
20175.0%0.76-5.2%13
2018-5.5%-0.84-7.6%4
2019-8.4%-0.49-14.1%5
20200.0%0.000.0%0
202110.5%0.52-18.8%41
2022-2.5%-0.18-8.8%16

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.1%-1.040%
hidden testEXPENSIVE8321.7%1.721%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY2546.2%0.940%
hidden testLOW VOLATILITY4393.7%0.2713%
hidden testMEDIUM VOLATILITY250-4.8%-0.3012%
hidden testNORMAL8120.2%0.0211%
hidden testSIDEWAYS294-12.3%-0.7616%
hidden testUPTREND37115.9%1.0611%
trainDOWNTREND518-12.5%-0.911%
trainEXPENSIVE31111.2%1.642%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY699-8.1%-0.451%
trainLOW VOLATILITY745-4.1%-0.3119%
trainMEDIUM VOLATILITY568-18.0%-0.9811%
trainNORMAL1,601-14.0%-0.7613%
trainSIDEWAYS592-13.5%-0.7113%
trainUPTREND902-5.0%-0.3114%
validationDOWNTREND125-2.9%-2.152%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2581.2%0.071%
validationLOW VOLATILITY1836.0%0.4420%
validationMEDIUM VOLATILITY31515.2%0.7812%
validationNORMAL47413.1%0.5916%
validationSIDEWAYS206-14.3%-0.9217%
validationUPTREND42522.4%1.079%

Trades (full period)

latest 100 of 271
EntryExitEntry PxExit PxReturnDays
2026-05-142026-05-15$443.30$422.24-0.64%2
2026-05-122026-05-13$433.45$445.27-2.79%2
2026-03-172026-03-18$399.27$392.780.74%2
2026-03-132026-03-16$391.20$395.56-1.16%2
2026-03-112026-03-12$407.82$395.011.95%2
2026-03-062026-03-09$396.73$398.68-2.37%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-2.31%2
2026-02-232026-02-24$399.83$409.38-3.11%2
2026-02-192026-02-20$411.71$411.82-0.11%2
2026-02-172026-02-18$410.63$411.32-1.83%2
2026-02-122026-02-13$417.07$417.44-2.81%2
2025-12-102025-12-30$451.45$454.433.05%14
2025-12-032025-12-09$446.74$445.172.21%5
2025-12-012025-12-02$430.14$429.24-0.21%2
2025-09-122025-09-15$395.94$410.047.15%2
2025-07-312025-08-01$308.27$302.63-3.57%2
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-252025-07-28$316.06$325.593.32%2
2025-07-232025-07-24$332.56$305.30-0.06%2
2025-07-212025-07-22$328.49$332.11-0.55%2
2025-07-172025-07-18$319.41$329.65-0.90%2
2025-05-122025-05-13$318.38$334.076.54%2
2024-10-032024-10-04$240.66$250.08-3.55%2
2024-10-012024-10-02$258.02$249.02-1.58%2
2024-09-272024-09-30$260.46$261.632.25%2
2024-09-252024-09-26$257.02$254.220.88%2
2024-09-232024-09-24$250.00$254.274.73%2
2024-09-182024-09-19$227.20$243.92-0.49%2
2024-09-162024-09-17$226.78$227.87-1.72%2
2024-09-052024-09-06$230.17$210.734.70%2
2024-09-032024-09-04$210.60$219.41-1.84%2
2024-07-102024-07-11$263.26$241.030.15%2
2024-07-082024-07-09$252.94$262.330.36%2
2024-07-032024-07-05$246.39$251.526.34%2
2024-07-012024-07-02$209.86$231.265.85%2
2024-06-272024-06-28$197.42$197.880.33%2
2023-12-282023-12-29$253.18$248.48-3.36%2
2023-12-262023-12-27$256.61$261.441.41%2
2023-12-212023-12-22$254.50$252.542.78%2
2023-12-192023-12-20$257.22$247.141.84%2
2023-12-152023-12-18$253.50$252.080.78%2
2023-12-122023-12-13$237.01$239.29-1.34%2
2023-12-082023-12-11$243.84$239.740.29%2
2023-12-062023-12-07$239.37$242.640.07%2
2023-12-042023-12-05$235.58$238.72-1.56%2
2023-11-302023-12-01$240.08$238.83-1.86%2
2023-11-282023-11-29$246.72$244.144.30%2
2023-11-242023-11-27$235.45$236.080.33%2
2023-11-212023-11-22$241.20$234.212.17%2
2023-11-172023-11-20$234.30$235.600.10%2
2023-11-152023-11-16$242.84$233.592.08%2
2023-11-132023-11-14$223.71$237.414.02%2
2023-11-092023-11-10$209.98$214.65-5.66%2
2023-11-072023-11-08$222.18$222.111.13%2
2023-10-162023-10-17$253.92$254.850.91%2
2023-10-122023-10-13$258.87$251.12-1.76%2
2023-10-102023-10-11$263.62$262.991.32%2
2023-10-062023-10-09$260.53$259.67-0.02%2
2023-09-222023-09-25$244.88$246.99-4.43%2
2023-09-202023-09-21$262.59$255.70-1.67%2
2023-09-182023-09-19$265.28$266.50-3.52%2
2023-09-142023-09-15$276.04$274.391.55%2
2023-09-122023-09-13$267.48$271.30-2.43%2
2023-09-082023-09-11$248.50$273.58-1.39%2
2023-09-062023-09-07$251.92$251.49-1.98%2
2023-09-012023-09-05$245.01$256.49-5.26%2
2023-08-302023-08-31$256.90$258.08-0.31%2
2023-08-282023-08-29$238.82$257.18-0.10%2
2023-07-192023-07-20$291.26$262.90-0.91%2
2023-07-062023-07-07$276.54$274.43-2.30%2
2023-06-122023-06-13$249.83$258.712.02%2
2023-06-072023-06-08$224.57$234.861.27%2
2023-06-052023-06-06$217.61$221.311.50%2
2022-08-022022-08-03$300.59$307.400.91%2
2022-04-072022-04-08$352.42$341.830.90%2
2022-04-042022-04-06$381.82$348.590.42%3
2022-03-312022-04-01$359.20$361.53-1.70%2
2022-03-292022-03-30$366.52$364.660.51%2
2022-03-252022-03-28$336.88$363.95-0.52%2
2022-03-232022-03-24$333.04$337.970.32%2
2022-03-212022-03-22$307.05$331.331.54%2
2022-03-172022-03-18$290.53$301.803.53%2
2022-03-102022-03-11$279.43$265.12-2.60%2
2022-03-042022-03-07$279.43$268.19-0.32%2
2022-03-022022-03-03$293.30$279.761.59%2
2022-02-182022-02-22$285.66$273.84-2.41%2
2022-02-162022-02-17$307.80$292.12-0.10%2
2022-02-112022-02-14$286.67$291.92-5.12%2
2022-02-092022-02-10$310.67$301.520.88%2
2022-01-032022-01-04$399.93$383.2013.32%2
2021-12-302021-12-31$356.78$352.26-1.66%2
2021-12-282021-12-29$362.82$362.06-0.70%2
2021-10-152021-11-10$281.01$355.9824.83%19
2021-10-132021-10-14$270.36$272.770.46%2
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-10-062021-10-07$260.92$264.540.08%2
2021-10-042021-10-05$260.51$260.200.61%2
2021-09-302021-10-01$258.49$258.41-0.95%2
2021-09-282021-09-29$259.19$260.44-1.94%2