Strategy Zoo / S0575

LongTermTrend_V0575

ARCHIVEDhybrid

llm1) Added a strict regime gate: only allow entries in UPTREND to reduce drawdowns in bad market regimes. 2) Simplified and refocused entry logic into three clear branches: trend-follow (close>sma_200 + positive sma_200_slope + modest 20d return), volume-backed 50-day breakout, and MACD-confirmed pullup over sma_50. 3) Tightened sma_200_slope threshold to prefer stronger structural uptrends. 4) Improved exit logic: exit on negative MACD histogram OR large drawdown (>15%) OR sma_50 crossing below sma_200 for faster risk control. 5) Introduced multi-level volatility scaling (LOW=1.0, MEDIUM=0.6, HIGH=0.3) and reduced base_position to 0.7 to limit position size and turnover during turbulent periods.

Fitness
0.3549
Generation
26
Complexity
20
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0472S0472 · gen 22ARCHIVEDllm

logic of LongTermTrend_V0452 with risk overlay of Breakout20_V0374

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0575  [hybrid]
if flat and ((close > sma_200 and sma_200_slope > -0.001 and ret_20d > 0.03 and cumret_252d > -0.2) or (breakout_50 == 1 and rel_volume > 1.3 and close > sma_50) or (macd_hist > 0.0 and close > sma_50)):
    position = 0.7
if long and (macd_hist < 0.0 or drawdown < -0.15 or sma_50 < sma_200):
    position = 0.0  # exit to cash
if regime.volatility == "HIGH_VOLATILITY": position *= 0.3
if regime.volatility == "MEDIUM_VOLATILITY": position *= 0.6
if regime.volatility == "LOW_VOLATILITY": position *= 1.0

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR2.4%27.4%-1.0%6.3%
Total Return21.2%106.7%-3.7%146.2%
Sharpe0.251.46-0.010.49
Sortino0.241.93-0.010.52
Calmar0.071.59-0.050.18
Volatility13.5%17.7%13.7%14.5%
Max DD-36.0%-17.3%-22.5%-36.0%
Win Rate46.0%52.6%47.4%47.8%
Avg Win1.4%2.2%1.3%1.6%
Avg Loss-1.1%-1.2%-1.1%-1.1%
Payoff1.291.901.101.43
Expectancy0.1%0.6%-0.0%0.2%
Profit Factor1.102.110.991.31
Trades326133194653
Avg Holding Days3.03.22.22.9
Turnover41.339.950.043.1
Exposure15.7%16.7%12.5%15.1%

Growth of $100

LongTermTrend_V0575 vs TSLA Buy & Hold
LongTermTrend_V0575 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
20163.1%0.48-5.9%38
2017-2.7%-0.17-10.6%41
2018-8.2%-0.83-12.0%49
201910.0%0.86-8.2%32
202086.4%2.96-8.4%47
20215.9%0.41-15.1%57
2022-1.1%-0.05-9.8%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 testDOWNTREND2690.7%0.105%
hidden testEXPENSIVE8331.4%1.4822%
hidden testEXTREME4826.9%1.3314%
hidden testHIGH VOLATILITY2543.4%0.386%
hidden testLOW VOLATILITY42912.6%0.9017%
hidden testMEDIUM VOLATILITY250-25.4%-1.5311%
hidden testNORMAL802-5.0%-0.4111%
hidden testSIDEWAYS293-12.6%-1.0814%
hidden testUPTREND3719.2%0.5117%
trainDOWNTREND518-6.3%-0.774%
trainEXPENSIVE31118.1%1.0725%
trainEXTREME10085.1%4.3926%
trainHIGH VOLATILITY6997.5%0.598%
trainLOW VOLATILITY7455.4%0.3726%
trainMEDIUM VOLATILITY568-4.6%-0.3513%
trainNORMAL1,601-4.7%-0.3813%
trainSIDEWAYS5921.4%0.1312%
trainUPTREND90210.1%0.5925%
validationDOWNTREND12517.9%1.542%
validationEXPENSIVE13827.9%1.3322%
validationEXTREME14491.7%3.9921%
validationHIGH VOLATILITY25815.3%0.948%
validationLOW VOLATILITY18312.3%0.7827%
validationMEDIUM VOLATILITY31542.1%2.1418%
validationNORMAL4745.1%0.3514%
validationSIDEWAYS206-9.7%-1.2010%
validationUPTREND42545.2%2.0624%

Trades (full period)

latest 100 of 654
EntryExitEntry PxExit PxReturnDays
2026-09-22———-0.04%1OPEN
2026-09-182026-09-21$364.27$375.30-0.31%2
2026-09-152026-09-16$356.58$358.08-0.36%2
2026-09-112026-09-14$365.44$358.970.13%2
2026-09-092026-09-10$367.81$363.56-0.12%2
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-072026-07-08$402.90$394.06-0.89%2
2026-07-012026-07-02$425.30$393.450.39%2
2026-06-042026-06-05$418.45$391.00-1.01%2
2026-06-022026-06-03$423.74$423.701.18%2
2026-05-292026-06-01$435.79$415.88-1.14%2
2026-05-272026-05-28$440.36$442.100.95%2
2026-05-222026-05-26$426.01$433.591.23%2
2026-05-202026-05-21$417.26$417.852.14%2
2026-05-182026-05-19$409.99$404.11-2.17%2
2026-05-142026-05-15$443.30$422.24-0.45%2
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-062026-05-07$398.73$411.791.54%2
2026-05-042026-05-05$392.51$389.370.16%2
2026-04-202026-04-21$392.50$386.42-0.93%2
2026-04-162026-04-17$388.90$400.62-0.41%2
2025-12-312026-01-02$449.72$438.07-0.86%2
2025-12-042025-12-30$454.53$454.431.49%18
2025-11-102025-11-11$445.23$439.621.45%2
2025-11-062025-11-07$445.91$429.52-1.55%2
2025-11-032025-11-05$468.37$462.07-2.69%3
2025-10-292025-10-30$461.51$440.100.00%2
2025-10-242025-10-27$433.72$452.42-1.51%2
2025-10-222025-10-23$438.97$448.98-0.43%2
2025-10-202025-10-21$447.43$442.600.69%2
2025-10-132025-10-14$435.90$429.242.19%2
2025-10-092025-10-10$435.54$413.49-0.39%2
2025-10-072025-10-08$433.09$438.69-1.95%2
2025-09-162025-10-06$421.62$453.252.38%15
2025-09-122025-09-15$395.94$410.045.01%2
2025-09-102025-09-11$347.79$368.810.03%2
2025-09-082025-09-09$346.40$346.97-1.03%2
2025-09-042025-09-05$338.53$350.840.79%2
2025-08-292025-09-02$333.87$329.36-2.59%2
2025-08-272025-08-28$349.60$345.98-0.55%2
2025-08-252025-08-26$346.60$351.671.22%2
2025-08-202025-08-21$323.90$320.11-1.29%2
2025-08-182025-08-19$335.16$329.310.83%2
2025-08-142025-08-15$335.58$330.56-0.92%2
2025-08-122025-08-13$340.84$339.380.23%2
2025-08-082025-08-11$329.65$339.031.46%2
2025-07-292025-07-30$321.20$319.04-0.65%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.23%2
2025-06-252025-06-26$327.55$325.78-0.84%2
2025-06-102025-06-11$326.09$326.431.15%2
2025-06-042025-06-05$332.05$284.70-1.57%2
2025-06-022025-06-03$342.69$344.27-0.54%2
2025-05-292025-05-30$358.43$346.460.10%2
2025-05-272025-05-28$362.89$356.904.71%2
2025-05-222025-05-23$341.04$339.340.72%2
2025-05-202025-05-21$343.82$334.620.13%2
2025-05-162025-05-19$349.98$342.090.40%2
2025-05-142025-05-15$347.68$342.820.81%2
2025-05-122025-05-13$318.38$334.072.75%2
2025-05-082025-05-09$284.82$298.260.61%2
2025-05-062025-05-07$275.35$276.22-0.41%2
2025-05-022025-05-05$287.21$280.260.46%2
2025-04-302025-05-01$282.16$280.52-0.75%2
2025-04-282025-04-29$285.88$292.030.03%2
2025-01-062025-01-07$411.05$394.36-0.01%2
2025-01-022025-01-03$379.28$410.44-1.32%2
2024-12-302024-12-31$417.41$403.84-0.74%2
2024-12-262024-12-27$454.13$431.66-0.41%2
2024-12-062024-12-24$389.22$462.284.70%13
2024-12-042024-12-05$357.93$369.490.35%2
2024-12-022024-12-03$357.09$351.420.68%2
2024-11-272024-11-29$332.89$345.16-0.37%2
2024-11-222024-11-26$352.56$338.23-0.08%3
2024-11-202024-11-21$342.03$339.64-0.28%2
2024-11-182024-11-19$338.74$346.001.14%2
2024-11-142024-11-15$311.18$320.72-1.25%2
2024-11-122024-11-13$328.49$330.24-1.33%2
2024-11-082024-11-11$321.22$350.001.68%2
2024-11-062024-11-07$288.53$296.913.06%2
2024-11-042024-11-05$242.84$251.44-0.56%2
2024-10-312024-11-01$249.85$248.98-0.67%2
2024-10-292024-10-30$259.52$257.55-0.28%2
2024-10-252024-10-28$269.19$262.510.66%2
2024-10-112024-10-14$217.80$219.16-6.28%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-1.49%2
2024-10-012024-10-02$258.02$249.02-0.66%2
2024-09-272024-09-30$260.46$261.630.95%2
2024-09-252024-09-26$257.02$254.220.37%2
2024-09-232024-09-24$250.00$254.271.99%2
2024-09-192024-09-20$243.92$238.253.01%2
2024-09-172024-09-18$227.87$227.200.12%2
2024-09-132024-09-16$230.29$226.780.00%2
2024-09-112024-09-12$228.13$229.810.14%2
2024-09-092024-09-10$216.27$226.170.51%2
2024-09-052024-09-06$230.17$210.731.97%2