Strategy Zoo / S0636

LongTermTrend_V0636

ARCHIVEDhybrid

llm- Added a strict uptrend regime gate and disallowed high-volatility/bubble environments to reduce false entries in poor regimes. - Strengthened long-term branch by requiring sma_50 > sma_200 and capping RSI (<75) to avoid overbought entries. - Made breakout branch more accessible by lowering rel_volume threshold (1.5) to increase valid breakout captures while keeping MACD confirmation. - Improved exit logic: exit on MACD flip OR volatility spike (true_range crossing above atr_14) OR large drawdown (>15%) to limit big losses. - Reduced base_position from 1.0 to 0.7 to lower overall risk and drawdown.

Fitness
0.3706
Generation
29
Complexity
29
Created
2026-09-24

Lineage

Parents (1)
LongTermTrend_V0583S0583 · gen 26ARCHIVEDllm

changed rel_volume threshold 1.5045 -> 2.0784

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0636  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
if flat and ((((close > sma_200 and sma_200_slope > -0.0024) or ret_20d > 0.085) and ret_20d > 0.05 and cumret_252d > -0.1997 and dist_sma_50 > -0.0774 and sma_50 > sma_200 and rsi_14 < 75.0) or ((macd_hist > 0.0 and close > sma_50) or (breakout_50 == 1 and rel_volume > 1.5) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200))):
    position = 0.7
if long and (macd_hist < 0.0 or true_range > atr_14 or drawdown > 0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.9%28.1%-2.0%5.3%
Total Return7.7%110.1%-7.3%114.0%
Sharpe0.141.33-0.060.40
Sortino0.101.62-0.050.34
Calmar0.032.25-0.070.18
Volatility14.8%20.2%15.2%16.1%
Max DD-29.5%-12.5%-27.1%-29.5%
Win Rate51.2%58.4%48.1%52.2%
Avg Win2.1%2.9%2.4%2.4%
Avg Loss-2.0%-2.2%-2.2%-2.1%
Payoff1.031.321.051.12
Expectancy0.1%0.8%-0.0%0.2%
Profit Factor1.081.850.971.22
Trades213101104418
Avg Holding Days2.92.82.82.8
Turnover37.347.139.539.9
Exposure14.1%16.4%14.2%14.6%

Growth of $100

LongTermTrend_V0636 vs TSLA Buy & Hold
LongTermTrend_V0636 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
201610.1%1.10-5.1%17
20177.4%0.61-9.4%44
2018-4.5%-0.66-7.5%11
201912.4%0.73-10.3%22
202065.2%2.27-7.8%36
20213.3%0.27-12.5%43
202212.4%0.79-10.3%20

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 testDOWNTREND270-4.5%-0.585%
hidden testEXPENSIVE8322.4%1.3916%
hidden testEXTREME4844.8%3.506%
hidden testHIGH VOLATILITY254-7.7%-0.641%
hidden testLOW VOLATILITY43019.0%1.3019%
hidden testMEDIUM VOLATILITY250-28.3%-1.5318%
hidden testNORMAL803-6.0%-0.4015%
hidden testSIDEWAYS293-21.6%-1.3421%
hidden testUPTREND37118.2%1.0015%
trainDOWNTREND518-7.9%-0.837%
trainEXPENSIVE3110.9%0.0519%
trainEXTREME10054.5%3.2614%
trainHIGH VOLATILITY6991.2%0.091%
trainLOW VOLATILITY74510.1%0.7024%
trainMEDIUM VOLATILITY568-7.7%-0.4717%
trainNORMAL1,601-1.0%-0.0713%
trainSIDEWAYS5926.3%0.4814%
trainUPTREND9024.9%0.2718%
validationDOWNTREND12517.5%1.164%
validationEXPENSIVE13815.8%0.6923%
validationEXTREME14492.4%3.8911%
validationHIGH VOLATILITY25825.0%1.622%
validationLOW VOLATILITY18311.9%0.8525%
validationMEDIUM VOLATILITY31536.8%1.4224%
validationNORMAL47410.0%0.5616%
validationSIDEWAYS206-0.8%-0.0513%
validationUPTREND42542.8%1.8321%

Trades (full period)

latest 100 of 419
EntryExitEntry PxExit PxReturnDays
2026-09-23———-0.07%1OPEN
2026-09-182026-09-22$364.27$378.901.60%3
2026-09-092026-09-17$367.81$366.20-2.06%7
2026-09-042026-09-08$354.08$368.16-4.28%2
2026-09-012026-09-02$356.09$357.01-2.39%2
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-05-282026-06-02$442.10$423.74-4.03%4
2026-05-192026-05-21$404.11$417.851.11%3
2026-05-142026-05-18$443.30$409.99-3.76%3
2026-05-122026-05-13$433.45$445.27-1.96%2
2026-05-082026-05-11$428.35$445.002.67%2
2026-05-042026-05-07$392.51$411.791.28%4
2026-04-212026-04-24$386.42$376.30-3.49%4
2026-04-162026-04-20$388.90$392.501.41%3
2025-12-312026-01-02$449.72$438.07-0.86%2
2025-12-222025-12-30$488.73$454.43-3.27%6
2025-12-182025-12-19$483.37$481.202.27%2
2025-12-162025-12-17$489.88$467.262.00%2
2025-12-102025-12-15$451.45$475.312.03%4
2025-12-042025-12-09$454.53$445.17-1.25%4
2025-11-062025-11-07$445.91$429.52-2.59%2
2025-11-032025-11-04$468.37$444.261.67%2
2025-10-242025-10-27$433.72$452.42-2.52%2
2025-10-142025-10-15$429.24$435.15-1.21%2
2025-10-092025-10-10$435.54$413.49-0.64%2
2025-10-072025-10-08$433.09$438.69-3.25%2
2025-10-032025-10-06$429.83$453.25-1.13%2
2025-09-302025-10-02$444.72$436.002.42%3
2025-09-262025-09-29$440.40$443.212.67%2
2025-09-242025-09-25$442.79$423.392.64%2
2025-09-192025-09-23$426.07$425.852.76%3
2025-09-172025-09-18$425.86$416.850.56%2
2025-09-152025-09-16$410.04$421.622.35%2
2025-09-102025-09-12$347.79$395.944.26%3
2025-09-082025-09-09$346.40$346.97-1.03%2
2025-09-022025-09-03$329.36$334.09-1.08%2
2025-08-272025-08-29$349.60$333.87-1.27%3
2025-08-252025-08-26$346.60$351.671.22%2
2025-08-212025-08-22$320.11$340.01-0.96%2
2025-08-122025-08-20$340.84$323.90-2.14%7
2025-08-082025-08-11$329.65$339.031.46%2
2025-07-292025-08-01$321.20$302.63-3.88%4
2025-07-242025-07-25$305.30$316.06-5.87%2
2025-07-212025-07-23$328.49$332.560.38%3
2025-05-292025-06-02$358.43$342.69-2.18%3
2025-05-192025-05-28$342.09$356.902.49%7
2025-05-122025-05-13$318.38$334.074.58%2
2024-12-192024-12-20$436.17$421.06-0.77%2
2024-12-172024-12-18$479.86$440.132.40%2
2024-12-132024-12-16$436.23$463.022.89%2
2024-12-112024-12-12$424.77$418.104.01%2
2024-10-092024-10-10$241.05$238.77-1.13%2
2024-10-072024-10-08$240.83$244.50-2.73%2
2024-10-032024-10-04$240.66$250.08-2.49%2
2024-09-302024-10-02$261.63$249.02-0.79%3
2024-09-252024-09-27$257.02$260.46-0.15%3
2024-09-232024-09-24$250.00$254.273.31%2
2024-09-162024-09-20$226.78$238.254.02%5
2024-09-062024-09-09$210.73$216.27-6.05%2
2024-09-042024-09-05$219.41$230.172.79%2
2024-07-112024-07-12$241.03$248.23-6.05%2
2024-07-092024-07-10$262.33$263.262.46%2
2024-07-052024-07-08$251.52$252.941.32%2
2024-07-022024-07-03$231.26$246.396.99%2
2024-06-282024-07-01$197.88$209.860.02%2
2024-06-202024-06-27$181.57$197.424.21%6
2024-06-172024-06-18$187.44$184.863.57%2
2024-05-292024-05-30$176.19$178.79-0.36%2
2023-12-222023-12-29$252.54$248.48-0.49%5
2023-12-152023-12-21$253.50$254.50-1.21%5
2023-12-072023-12-14$242.64$251.05-0.16%6
2023-11-302023-12-06$240.08$239.37-1.69%5
2023-11-272023-11-29$236.08$244.143.20%3
2023-11-202023-11-24$235.60$235.45-0.15%4
2023-11-162023-11-17$233.59$234.30-2.80%2
2023-10-122023-10-17$258.87$254.85-2.55%4
2023-10-102023-10-11$263.62$262.990.92%2
2023-10-062023-10-09$260.53$259.67-0.01%2
2023-09-222023-09-25$244.88$246.99-3.10%2
2023-09-122023-09-21$267.48$255.70-2.94%8
2023-09-062023-09-07$251.92$251.49-1.39%2
2023-08-302023-09-05$256.90$256.49-3.44%4
2023-07-262023-07-27$264.35$255.71-0.39%2
2023-07-202023-07-21$262.90$260.02-6.95%2
2023-07-182023-07-19$293.34$291.260.57%2
2023-07-142023-07-17$281.38$290.380.74%2
2023-07-122023-07-13$271.99$277.900.43%2
2023-07-102023-07-11$269.61$269.79-1.37%2
2023-07-052023-07-07$282.48$274.43-0.95%3
2023-06-302023-07-03$261.77$279.821.02%2
2023-06-282023-06-29$256.24$257.501.55%2
2023-06-262023-06-27$241.05$250.21-4.38%2
2023-06-222023-06-23$264.61$256.601.25%2
2023-06-202023-06-21$274.45$259.463.59%2
2023-06-152023-06-16$255.90$260.54-0.38%2
2023-06-122023-06-14$249.83$256.793.94%3
2023-06-082023-06-09$234.86$244.403.07%2
2023-06-062023-06-07$221.31$224.571.05%2
2023-06-022023-06-05$213.97$217.612.03%2
2023-05-312023-06-01$203.93$207.520.82%2