Strategy Zoo / S1307

LongTermTrend_V1307

ARCHIVEDhybrid

llmAdded regime gates to require UPTREND, LOW_VOLATILITY and NORMAL bubble to reduce overtrading; simplified and pruned entry signals (kept strong trend/breakout/macd/ret_20d triggers) and tightened macd_hist threshold to -1.5 to avoid weak momentum entries; improved exit to include macd_hist<0 OR price falling below sma_20 OR large drawdown to cut losses earlier; added volatility- and trend-slope-based position sizing (reduce size when vol_pctile>0.8 or sma_50_slope<0); lowered base_position from 1.0 to 0.8 to reduce risk and overfitting.

Fitness
0.4625
Generation
60
Complexity
18
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V1201S1201 · gen 55ARCHIVEDllm

changed macd_hist threshold 0.0 -> 1.0705; changed dist_sma_50 threshold -0.0774 -> -0.1429

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1307  [hybrid]
if flat and (((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.04 or (macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and rel_volume > 1.3)) and sma_20 < close and macd_hist > -1.5):
    position = 0.8
if long and (macd_hist < 0.0 or sma_20 > close or drawdown < -0.25):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR6.5%62.2%7.5%16.5%
Total Return65.6%326.5%31.2%848.3%
Sharpe0.371.500.430.68
Sortino0.391.770.460.74
Calmar0.122.010.240.31
Volatility26.5%36.8%22.4%28.0%
Max DD-53.3%-31.0%-31.8%-53.3%
Win Rate42.7%50.6%49.1%46.5%
Avg Win4.1%6.3%2.5%4.0%
Avg Loss-2.3%-2.4%-2.0%-2.2%
Payoff1.762.601.251.81
Expectancy0.4%2.0%0.2%0.7%
Profit Factor1.312.661.211.57
Trades22089173482
Avg Holding Days5.04.72.64.1
Turnover44.247.574.152.4
Exposure35.1%34.4%23.1%31.9%

Growth of $100

LongTermTrend_V1307 vs TSLA Buy & Hold
LongTermTrend_V1307 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
20169.0%0.68-11.1%18
20179.2%0.56-14.6%27
2018-22.9%-0.98-29.8%20
2019-11.8%-0.40-29.9%35
2020248.4%2.68-31.0%33
202122.9%0.88-19.0%27
2022-10.6%-0.41-24.6%28

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-0.8%-0.0417%
hidden testEXPENSIVE8372.5%1.9837%
hidden testEXTREME48136.2%3.7035%
hidden testHIGH VOLATILITY25425.7%0.9221%
hidden testLOW VOLATILITY44025.9%1.3425%
hidden testMEDIUM VOLATILITY250-35.1%-1.6822%
hidden testNORMAL813-4.2%-0.2221%
hidden testSIDEWAYS295-31.8%-1.6424%
hidden testUPTREND37150.6%1.9127%
trainDOWNTREND518-29.8%-1.6215%
trainEXPENSIVE31132.4%1.1249%
trainEXTREME100281.4%4.9267%
trainHIGH VOLATILITY69916.3%0.4635%
trainLOW VOLATILITY74519.0%1.0338%
trainMEDIUM VOLATILITY568-10.1%-0.4431%
trainNORMAL1,601-11.5%-0.5230%
trainSIDEWAYS5923.6%0.1536%
trainUPTREND90236.7%1.1547%
validationDOWNTREND12530.0%1.736%
validationEXPENSIVE13829.9%0.8239%
validationEXTREME144221.2%3.6559%
validationHIGH VOLATILITY25846.7%0.9730%
validationLOW VOLATILITY18325.3%1.3538%
validationMEDIUM VOLATILITY31579.2%2.3436%
validationNORMAL47411.9%0.4826%
validationSIDEWAYS206-7.5%-0.2928%
validationUPTREND42592.7%2.0946%

Trades (full period)

latest 100 of 483
EntryExitEntry PxExit PxReturnDays
2026-10-06—$380.68—-0.27%2OPEN
2026-09-212026-09-29$375.30$352.84-1.63%7
2026-09-172026-09-18$366.20$364.271.65%2
2026-09-142026-09-15$358.97$356.58-1.58%2
2026-09-092026-09-11$367.81$365.44-1.16%3
2026-09-032026-09-08$376.37$368.16-0.76%3
2026-08-312026-09-02$367.95$357.011.55%3
2026-08-272026-08-28$354.81$348.751.92%2
2026-08-252026-08-26$350.25$345.820.14%2
2026-08-212026-08-24$362.86$348.953.95%2
2026-07-132026-07-14$394.76$396.18-2.71%2
2026-07-072026-07-09$402.90$406.55-5.07%3
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-04-162026-05-21$388.90$417.855.09%26
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-012025-12-30$430.14$454.435.37%21
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-072025-10-08$433.09$438.69-3.72%2
2025-09-112025-10-06$368.81$453.2518.48%18
2025-09-092025-09-10$346.97$347.79-0.03%2
2025-09-052025-09-08$350.84$346.402.75%2
2025-08-292025-09-02$333.87$329.36-2.96%2
2025-08-272025-08-28$349.60$345.98-0.63%2
2025-08-252025-08-26$346.60$351.671.39%2
2025-08-212025-08-22$320.11$340.01-1.10%2
2025-08-192025-08-20$329.31$323.90-1.56%2
2025-08-152025-08-18$330.56$335.16-1.36%2
2025-08-132025-08-14$339.38$335.58-0.50%2
2025-08-112025-08-12$339.03$340.842.11%2
2025-08-072025-08-08$322.27$329.650.43%2
2025-07-312025-08-01$308.27$302.63-2.86%2
2025-07-292025-07-30$321.20$319.04-1.24%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.44%2
2025-07-172025-07-18$319.41$329.65-0.72%2
2025-06-242025-06-25$340.47$327.55-2.04%2
2025-06-032025-06-04$344.27$332.050.21%2
2025-05-302025-06-02$346.46$342.69-2.83%2
2025-05-272025-05-29$362.89$358.434.00%3
2025-05-222025-05-23$341.04$339.341.37%2
2025-05-202025-05-21$343.82$334.620.24%2
2025-05-162025-05-19$349.98$342.091.51%2
2025-05-142025-05-15$347.68$342.823.10%2
2025-05-122025-05-13$318.38$334.075.23%2
2025-05-082025-05-09$284.82$298.262.33%2
2025-05-062025-05-07$275.35$276.22-1.56%2
2025-05-022025-05-05$287.21$280.261.75%2
2025-04-302025-05-01$282.16$280.52-2.86%2
2025-04-282025-04-29$285.88$292.030.10%2
2025-04-102025-04-11$252.40$252.31-5.97%2
2025-03-262025-03-27$272.06$273.13-4.62%2
2024-12-262024-12-27$454.13$431.66-1.57%2
2024-12-062024-12-24$389.22$462.2813.06%13
2024-12-042024-12-05$357.93$369.491.32%2
2024-12-022024-12-03$357.09$351.422.60%2
2024-11-082024-11-29$321.22$345.169.66%15
2024-11-062024-11-07$288.53$296.9111.63%2
2024-11-042024-11-05$242.84$251.44-2.13%2
2024-10-312024-11-01$249.85$248.98-2.55%2
2024-10-292024-10-30$259.52$257.55-1.07%2
2024-10-252024-10-28$269.19$262.512.51%2
2024-10-042024-10-07$250.08$240.832.97%2
2024-10-022024-10-03$249.02$240.66-2.95%2
2024-09-302024-10-01$261.63$258.020.20%2
2024-09-262024-09-27$254.22$260.46-1.03%2
2024-09-242024-09-25$254.27$257.021.21%2
2024-09-202024-09-23$238.25$250.00-2.02%2
2024-09-182024-09-19$227.20$243.92-0.40%2
2024-09-162024-09-17$226.78$227.87-1.38%2
2024-09-122024-09-13$229.81$230.290.43%2
2024-09-102024-09-11$226.17$228.133.50%2
2024-09-052024-09-06$230.17$210.733.76%2
2024-09-032024-09-04$210.60$219.41-1.47%2
2024-08-262024-08-27$213.21$209.21-2.74%2
2024-08-212024-08-22$223.27$210.660.62%2
2024-08-192024-08-20$222.72$221.102.28%2
2024-07-222024-07-23$251.51$246.383.95%2
2024-07-182024-07-19$249.23$239.200.07%2
2024-07-162024-07-17$256.56$248.501.08%2
2024-07-122024-07-15$248.23$252.642.23%2
2024-07-102024-07-11$263.26$241.030.12%2
2024-07-082024-07-09$252.94$262.330.29%2
2024-07-032024-07-05$246.39$251.525.07%2
2024-07-012024-07-02$209.86$231.264.68%2
2024-06-272024-06-28$197.42$197.880.27%2
2024-06-252024-06-26$187.35$196.371.93%2
2024-06-212024-06-24$183.01$182.580.47%2
2024-06-182024-06-20$184.86$181.57-1.26%2
2024-06-142024-06-17$178.01$187.44-2.11%2
2024-05-282024-05-29$176.75$176.19-1.27%2
2024-05-222024-05-23$180.11$173.74-2.94%2
2024-05-202024-05-21$174.95$186.60-1.29%2