Strategy Zoo / S1264

LongTermTrend_V1264

ARCHIVEDhybrid

llmAdded regime gates to trade only in UPTREND / LOW_VOLATILITY / NORMAL bubble to reduce overfitting and avoid high-volatility periods. Simplified entry by removing a redundant short-term ret_20d threshold while keeping the strong trend and breakout signals. Strengthened exit to include closing below sma_50 in addition to MACD histogram negative to cut losses faster. Introduced volatility-based position sizing (reduce size when vol_pctile > 0.75, increase when vol_pctile < 0.40) and lowered base_position to 0.8 to reduce overall risk.

Fitness
0.3107
Generation
58
Complexity
21
Created
2026-10-07

Lineage

Parents (1)
LongTermTrend_V1038S1038 · gen 47ARCHIVEDllm

swapped indicator rel_volume -> vol_chg

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1264  [hybrid]
if flat and ((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and cumret_252d > 0.0541) or ((macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and vol_chg > 0.0238) or (macd_hist > 0.0 and sma_50 > sma_200))):
    position = 0.8
if long and (macd_hist < 0.0 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR5.7%45.2%-1.2%11.0%
Total Return56.0%206.0%-4.3%367.6%
Sharpe0.341.070.110.48
Sortino0.401.370.120.58
Calmar0.100.97-0.020.20
Volatility28.6%44.1%29.2%32.5%
Max DD-56.0%-46.4%-46.6%-56.0%
Win Rate42.7%48.3%37.0%42.9%
Avg Win3.4%5.0%4.5%4.2%
Avg Loss-2.1%-3.0%-2.5%-2.4%
Payoff1.641.681.811.75
Expectancy0.3%0.9%0.1%0.4%
Profit Factor1.221.571.071.31
Trades356178154688
Avg Holding Days3.83.53.93.7
Turnover71.494.965.874.8
Exposure40.3%46.3%37.2%40.8%

Growth of $100

LongTermTrend_V1264 vs TSLA Buy & Hold
LongTermTrend_V1264 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
201617.0%1.17-13.1%26
2017-8.2%-0.25-28.6%71
2018-16.9%-0.70-21.7%17
201919.5%0.78-22.5%14
2020280.7%2.49-40.1%62
2021-11.1%-0.17-44.6%78
2022-10.0%-0.23-29.9%36

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-16.4%-0.7122%
hidden testEXPENSIVE8358.8%1.3759%
hidden testEXTREME48146.3%3.4553%
hidden testHIGH VOLATILITY25422.0%0.5840%
hidden testLOW VOLATILITY43920.4%0.9436%
hidden testMEDIUM VOLATILITY250-46.6%-1.5537%
hidden testNORMAL812-11.1%-0.4234%
hidden testSIDEWAYS294-28.8%-1.1241%
hidden testUPTREND37143.0%1.2246%
trainDOWNTREND518-13.4%-0.9015%
trainEXPENSIVE31132.3%0.9158%
trainEXTREME100286.2%5.0068%
trainHIGH VOLATILITY69914.2%0.3837%
trainLOW VOLATILITY74519.1%0.9745%
trainMEDIUM VOLATILITY568-8.4%-0.3338%
trainNORMAL1,601-12.1%-0.5135%
trainSIDEWAYS592-7.4%-0.2842%
trainUPTREND90233.9%0.9754%
validationDOWNTREND1254.0%0.2011%
validationEXPENSIVE13851.0%1.0054%
validationEXTREME144249.2%3.8765%
validationHIGH VOLATILITY25850.0%0.8541%
validationLOW VOLATILITY18319.8%0.8951%
validationMEDIUM VOLATILITY31560.3%1.5448%
validationNORMAL474-15.6%-0.4938%
validationSIDEWAYS206-34.6%-0.9243%
validationUPTREND42599.2%1.9359%

Trades (full period)

latest 100 of 688
EntryExitEntry PxExit PxReturnDays
2026-09-182026-09-29$364.27$352.84-2.05%8
2026-09-092026-09-17$367.81$366.20-2.35%7
2026-09-032026-09-08$376.37$368.16-0.76%3
2026-09-012026-09-02$356.09$357.01-2.74%2
2026-08-242026-08-25$348.95$350.25-3.22%2
2026-07-072026-07-08$402.90$394.06-3.37%2
2026-07-012026-07-06$425.30$419.77-5.30%3
2026-06-052026-06-08$391.00$408.95-5.40%2
2026-06-032026-06-04$423.70$418.45-0.17%2
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-042026-05-21$392.51$417.855.30%14
2026-04-202026-04-22$392.50$387.51-3.00%3
2026-04-162026-04-17$388.90$400.62-0.78%2
2026-03-192026-03-20$380.30$367.96-2.70%2
2026-03-172026-03-18$399.27$392.780.59%2
2026-03-122026-03-13$395.01$391.20-2.67%2
2026-03-102026-03-11$399.24$407.82-0.05%2
2026-03-062026-03-09$396.73$398.68-1.90%2
2026-03-042026-03-05$405.94$405.552.59%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.85%2
2026-02-242026-02-25$409.38$417.401.75%2
2026-02-202026-02-23$411.82$399.83-0.14%2
2026-02-182026-02-19$411.32$411.71-0.03%2
2026-02-132026-02-17$417.44$410.63-0.09%2
2026-02-112026-02-12$428.27$417.070.42%2
2026-02-092026-02-10$417.32$425.211.05%2
2026-02-052026-02-06$397.21$411.11-1.89%2
2026-02-022026-02-03$421.81$421.96-1.76%2
2026-01-292026-01-30$416.56$430.41-2.92%2
2026-01-272026-01-28$430.90$431.46-0.95%2
2026-01-232026-01-26$449.06$435.20-0.21%2
2026-01-152026-01-16$438.57$437.50-0.27%2
2026-01-132026-01-14$447.20$439.20-0.47%2
2026-01-092026-01-12$445.01$448.961.53%2
2026-01-062026-01-07$432.96$431.41-3.47%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-262025-11-28$426.58$430.171.21%2
2025-11-242025-11-25$417.78$419.405.30%2
2025-11-202025-11-21$395.23$391.09-1.89%2
2025-11-182025-11-19$401.25$403.99-1.66%2
2025-11-142025-11-17$404.35$408.920.31%2
2025-11-122025-11-13$430.60$401.99-1.80%2
2025-11-102025-11-11$445.23$439.622.76%2
2025-11-062025-11-07$445.91$429.52-2.96%2
2025-11-042025-11-05$444.26$462.07-4.27%2
2025-10-312025-11-03$456.56$468.372.83%2
2025-10-292025-10-30$461.51$440.100.01%2
2025-10-272025-10-28$452.42$460.553.29%2
2025-10-232025-10-24$448.98$433.721.66%2
2025-10-212025-10-22$442.60$438.97-1.02%2
2025-10-172025-10-20$439.31$447.431.81%2
2025-10-152025-10-16$435.15$428.750.94%2
2025-10-132025-10-14$435.90$429.244.17%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-082025-10-06$346.40$453.2517.65%21
2025-09-042025-09-05$338.53$350.840.90%2
2025-08-252025-09-03$346.60$334.09-2.65%7
2025-08-082025-08-22$329.65$340.01-0.67%11
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-282025-07-30$325.59$319.041.15%3
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-07-152025-07-16$310.78$321.67-1.70%2
2025-07-032025-07-07$315.35$293.94-0.24%2
2025-07-012025-07-02$300.71$315.65-4.43%2
2025-06-272025-06-30$323.63$317.66-0.69%2
2025-06-252025-06-26$327.55$325.78-3.19%2
2025-06-232025-06-24$348.68$340.476.42%2
2025-06-182025-06-20$322.05$322.161.28%2
2025-06-162025-06-17$329.13$316.350.78%2
2025-06-122025-06-13$319.11$325.31-1.95%2
2025-06-102025-06-11$326.09$326.434.38%2
2025-06-042025-06-05$332.05$284.70-3.00%2
2025-04-282025-06-03$285.88$344.2715.93%26
2025-04-162025-04-17$241.55$241.37-4.11%2
2025-04-142025-04-15$252.35$254.11-0.15%2
2025-04-102025-04-11$252.40$252.31-5.97%2
2025-04-082025-04-09$221.86$272.20-4.08%2
2025-04-042025-04-07$239.43$233.29-8.49%2
2025-04-022025-04-03$282.76$267.284.10%2
2025-03-312025-04-01$259.16$268.46-1.49%2
2025-03-272025-03-28$273.13$263.550.15%2
2025-03-252025-03-26$288.14$272.062.64%2
2025-03-212025-03-24$248.71$278.394.05%2
2025-03-042025-03-05$272.04$279.10-3.70%2
2025-02-282025-03-03$292.98$284.652.97%2
2025-02-262025-02-27$290.80$281.95-3.33%2
2025-02-242025-02-25$330.53$302.80-1.88%2
2025-02-202025-02-21$354.40$337.80-1.53%2
2025-02-182025-02-19$354.11$360.56-0.55%2
2025-02-132025-02-14$355.94$355.844.46%2
2025-02-112025-02-12$328.50$336.51-5.23%2
2025-02-072025-02-10$361.62$350.73-2.87%2
2025-02-052025-02-06$378.17$374.32-3.02%2
2025-02-032025-02-04$383.68$392.21-4.29%2
2025-01-302025-01-31$400.28$404.602.14%2