Strategy Zoo / S0719

LongTermTrend_V0719

ARCHIVEDhybrid

llmReduce position size and add simple volatility scaling; simplify and de-duplicate entry conditions; add momentum confirmation (macd_hist>0) and a short-term ret_5d momentum path; add regime gates to only trade in uptrends and low volatility; convert exit to a safer multi-condition rule (larger 20d stop, drawdown limit, or break below sma_50). Aimed to improve robustness and reduce overfitting.

Fitness
0.5226
Generation
33
Complexity
15
Created
2026-09-25

Lineage

Parents (1)
LongTermTrend_V0519S0519 · gen 24ARCHIVEDllm

entry from LongTermTrend_V0323, exit from PriceMomentum_V0449

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0719  [hybrid]
if flat and (((close > sma_200 and sma_200_slope > 0.0) or ret_20d > 0.05 or (ret_5d > 0.02 and macd_hist > 0.0)) and cumret_252d > -0.1997 and macd_hist > 0.0):
    position = 0.6
if long and (ret_20d < -0.03 or drawdown < -0.08 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.9%65.6%-8.6%9.0%
Total Return7.6%353.9%-28.4%255.7%
Sharpe0.142.13-0.490.54
Sortino0.152.55-0.470.58
Calmar0.023.38-0.220.18
Volatility18.0%25.2%15.9%19.3%
Max DD-50.1%-19.4%-39.4%-50.1%
Win Rate46.0%56.2%44.6%47.5%
Avg Win1.7%3.5%1.6%2.1%
Avg Loss-1.4%-1.2%-1.6%-1.4%
Payoff1.272.821.021.52
Expectancy0.1%1.4%-0.2%0.3%
Profit Factor1.083.620.821.38
Trades337121186644
Avg Holding Days2.93.12.22.8
Turnover50.748.460.252.6
Exposure19.7%20.6%13.9%18.5%

Growth of $100

LongTermTrend_V0719 vs TSLA Buy & Hold
LongTermTrend_V0719 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.8%1.10-5.3%49
2017-8.1%-0.50-18.3%36
2018-19.0%-1.17-20.6%47
20196.3%0.52-13.1%37
2020236.9%3.63-11.7%28
202114.9%0.84-11.6%52
20225.7%0.45-15.7%41

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 testDOWNTREND271-26.3%-1.8612%
hidden testEXPENSIVE8349.1%1.9019%
hidden testEXTREME4834.3%1.4816%
hidden testHIGH VOLATILITY254-12.3%-0.6212%
hidden testLOW VOLATILITY431-4.8%-0.3716%
hidden testMEDIUM VOLATILITY250-8.3%-0.5113%
hidden testNORMAL804-16.1%-1.1713%
hidden testSIDEWAYS293-11.2%-0.9514%
hidden testUPTREND3718.5%0.4415%
trainDOWNTREND518-13.3%-1.189%
trainEXPENSIVE31110.9%0.5134%
trainEXTREME100178.7%4.3543%
trainHIGH VOLATILITY6999.0%0.3820%
trainLOW VOLATILITY74510.0%0.7922%
trainMEDIUM VOLATILITY568-15.2%-0.9617%
trainNORMAL1,601-10.1%-0.7016%
trainSIDEWAYS592-6.5%-0.5017%
trainUPTREND90217.5%0.7528%
validationDOWNTREND12530.9%2.347%
validationEXPENSIVE13869.9%2.5930%
validationEXTREME144175.2%4.3033%
validationHIGH VOLATILITY25862.0%1.9217%
validationLOW VOLATILITY1839.3%0.7518%
validationMEDIUM VOLATILITY31572.4%3.0225%
validationNORMAL47411.9%0.7214%
validationSIDEWAYS20617.0%1.0615%
validationUPTREND42578.0%2.5327%

Trades (full period)

latest 100 of 644
EntryExitEntry PxExit PxReturnDays
2026-09-232026-09-24$380.12—0.07%2
2026-09-212026-09-22$375.30$378.901.70%2
2026-09-162026-09-17$358.08$366.200.13%2
2026-09-142026-09-15$358.97$356.58-1.18%2
2026-09-102026-09-11$363.56$365.44-0.81%2
2026-09-082026-09-09$368.16$367.812.26%2
2026-09-032026-09-04$376.37$354.083.13%2
2026-09-012026-09-02$356.09$357.01-2.05%2
2026-08-282026-08-31$348.75$367.95-1.14%2
2026-08-262026-08-27$345.82$354.81-0.88%2
2026-08-242026-08-25$348.95$350.25-2.42%2
2026-08-202026-08-21$345.13$362.86-1.14%2
2026-08-182026-08-19$336.87$351.12-0.55%2
2026-08-142026-08-17$342.27$339.300.29%2
2026-08-102026-08-11$330.88$332.810.30%2
2026-07-132026-07-14$394.76$396.18-2.03%2
2026-07-062026-07-07$419.77$402.903.89%2
2026-07-012026-07-02$425.30$393.450.55%2
2026-06-012026-06-02$415.88$423.74-2.86%2
2026-05-282026-05-29$442.10$435.790.12%2
2026-05-192026-05-20$404.11$417.26-0.98%2
2026-05-152026-05-18$422.24$409.99-2.97%2
2026-05-132026-05-14$445.27$443.301.52%2
2026-05-112026-05-12$445.00$433.452.21%2
2026-05-072026-05-08$411.79$428.351.84%2
2026-05-052026-05-06$389.37$398.73-0.60%2
2026-05-012026-05-04$390.82$392.511.32%2
2026-04-292026-04-30$372.80$381.63-0.63%2
2026-04-212026-04-22$386.42$387.51-1.05%2
2026-04-172026-04-20$400.62$392.501.69%2
2026-04-152026-04-16$391.95$388.904.45%2
2026-03-172026-03-18$399.27$392.780.44%2
2026-03-132026-03-16$391.20$395.56-0.70%2
2026-03-112026-03-12$407.82$395.011.17%2
2026-03-062026-03-09$396.73$398.68-1.42%2
2026-03-022026-03-03$403.32$392.430.00%2
2026-02-262026-02-27$408.58$402.51-1.39%2
2026-02-232026-02-24$399.83$409.38-1.87%2
2026-02-192026-02-20$411.71$411.82-0.06%2
2026-02-172026-02-18$410.63$411.32-1.10%2
2026-02-122026-02-13$417.07$417.44-1.69%2
2025-12-102026-01-02$451.45$438.070.60%16
2025-12-032025-12-09$446.74$445.171.36%5
2025-12-012025-12-02$430.14$429.24-0.12%2
2025-11-042025-11-10$444.26$445.23-5.10%5
2025-09-292025-10-03$443.21$429.83-0.67%5
2025-09-242025-09-26$442.79$440.40-0.42%3
2025-09-222025-09-23$434.21$425.851.03%2
2025-09-182025-09-19$416.85$426.07-1.39%2
2025-09-162025-09-17$421.62$425.861.57%2
2025-09-122025-09-15$395.94$410.044.29%2
2025-09-102025-09-11$347.79$368.810.02%2
2025-09-082025-09-09$346.40$346.97-0.88%2
2025-08-292025-09-02$333.87$329.36-2.22%2
2025-08-272025-08-28$349.60$345.98-0.47%2
2025-08-252025-08-26$346.60$351.671.04%2
2025-08-202025-08-21$323.90$320.11-1.11%2
2025-08-182025-08-19$335.16$329.310.71%2
2025-08-142025-08-15$335.58$330.56-0.79%2
2025-08-122025-08-13$340.84$339.380.20%2
2025-08-082025-08-11$329.65$339.031.25%2
2025-07-312025-08-01$308.27$302.63-2.14%2
2025-07-292025-07-30$321.20$319.04-0.93%2
2025-07-232025-07-24$332.56$305.30-0.04%2
2025-07-212025-07-22$328.49$332.11-0.33%2
2025-07-172025-07-18$319.41$329.65-0.54%2
2025-06-252025-06-26$327.55$325.78-2.40%2
2025-06-022025-06-03$342.69$344.27-0.77%2
2025-05-292025-05-30$358.43$346.460.14%2
2025-05-272025-05-28$362.89$356.904.04%2
2025-05-222025-05-23$341.04$339.341.03%2
2025-05-202025-05-21$343.82$334.620.18%2
2025-05-162025-05-19$349.98$342.091.13%2
2025-05-142025-05-15$347.68$342.822.32%2
2025-05-122025-05-13$318.38$334.073.93%2
2025-05-072025-05-08$276.22$284.820.07%2
2025-05-052025-05-06$280.26$275.35-1.57%2
2025-05-012025-05-02$280.52$287.21-0.47%2
2025-04-292025-04-30$292.03$282.161.17%2
2025-04-252025-04-28$284.95$285.885.76%2
2025-04-162025-04-17$241.55$241.37-3.08%2
2025-04-142025-04-15$252.35$254.11-0.11%2
2025-04-102025-04-11$252.40$252.31-4.48%2
2025-04-082025-04-09$221.86$272.20-3.06%2
2025-04-032025-04-04$267.28$239.43-3.40%2
2025-03-312025-04-01$259.16$268.46-1.12%2
2025-03-272025-03-28$273.13$263.550.12%2
2025-03-252025-03-26$288.14$272.061.98%2
2024-12-202024-12-23$421.06$430.60-2.20%2
2024-12-092024-12-19$389.79$436.177.76%9
2024-11-262024-11-27$338.23$332.89-0.18%2
2024-11-222024-11-25$352.56$338.592.16%2
2024-11-202024-11-21$342.03$339.64-0.81%2
2024-11-182024-11-19$338.74$346.003.25%2
2024-11-142024-11-15$311.18$320.72-3.58%2
2024-11-122024-11-13$328.49$330.24-3.81%2
2024-11-082024-11-11$321.22$350.004.79%2
2024-11-062024-11-07$288.53$296.918.73%2
2024-10-312024-11-01$249.85$248.98-1.91%2
2024-10-292024-10-30$259.52$257.55-0.80%2