Strategy Zoo / S0662

LongTermTrend_V0662

ARCHIVEDhybrid

llm['Added conservative regime gating: allow only UPTREND and exclude extreme bubble (bubble = NORMAL) and high volatility (only LOW/MEDIUM). This reduces exposure in unfavorable regimes.', 'Tightened entry macd_hist filter from > -2.6055 to > -0.5 to avoid very weak MACD environments.', 'Replaced single-signal exit with a clearer multi-condition exit: exit when MACD turns negative OR price drops below sma_50 OR drawdown exceeds 15% — to cut large losses and improve walk-forward robustness.', 'Reduced base position from 1.0 to 0.7 to lower leverage/exposure and dampen max drawdowns.']

Fitness
0.0643
Generation
30
Complexity
33
Created
2026-09-24

Lineage

Parents (1)
LongTermTrend_V0531S0531 · gen 24ARCHIVEDllm

added entry filter: sma_20 < close; added entry filter: macd_hist > -2.6055

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0662  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
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) or ((macd_hist > 0.0 and close > sma_50) or ((breakout_50 == 1 and rel_volume > 1.5045) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and sma_20 < close and macd_hist > -0.5):
    position = 0.7
if long and (macd_hist < 0.0 or close < sma_50 or drawdown < -0.15):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.5%-0.8%-1.0%-1.8%
Total Return-18.5%-2.4%-3.8%-23.4%
Sharpe-0.25-0.02-0.06-0.15
Sortino-0.12-0.01-0.02-0.07
Calmar-0.10-0.03-0.07-0.06
Volatility8.7%10.6%9.7%9.4%
Max DD-26.5%-26.1%-15.0%-31.9%
Win Rate38.6%43.5%42.9%40.6%
Avg Win1.9%2.7%2.6%2.3%
Avg Loss-1.6%-2.1%-2.1%-1.8%
Payoff1.191.301.261.25
Expectancy-0.3%-0.0%-0.1%-0.2%
Profit Factor0.751.000.940.85
Trades702335128
Avg Holding Days3.43.72.53.2
Turnover12.310.713.212.2
Exposure5.8%5.6%3.9%5.3%

Growth of $100

LongTermTrend_V0662 vs TSLA Buy & Hold
LongTermTrend_V0662 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
2016-2.8%-0.45-7.5%12
20174.5%0.80-3.8%11
2018-6.4%-1.34-6.4%4
2019-1.3%-0.18-5.5%3
20200.0%0.000.0%0
202113.5%0.86-14.1%13
2022-14.0%-1.78-16.2%9

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 testDOWNTREND2700.0%0.000%
hidden testEXPENSIVE8329.5%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-17.3%-1.761%
hidden testLOW VOLATILITY4300.3%0.035%
hidden testMEDIUM VOLATILITY25015.0%1.395%
hidden testNORMAL803-3.7%-0.384%
hidden testSIDEWAYS293-8.8%-1.471%
hidden testUPTREND3715.5%0.389%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3118.2%1.691%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6990.6%0.080%
trainLOW VOLATILITY745-0.6%-0.0612%
trainMEDIUM VOLATILITY568-7.7%-0.994%
trainNORMAL1,601-4.3%-0.467%
trainSIDEWAYS592-2.0%-0.840%
trainUPTREND902-3.5%-0.2813%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-5.8%-0.661%
validationLOW VOLATILITY1833.7%0.4215%
validationMEDIUM VOLATILITY3152.0%0.165%
validationNORMAL474-0.4%-0.039%
validationSIDEWAYS206-9.6%-1.571%
validationUPTREND4254.2%0.3110%

Trades (full period)

latest 100 of 128
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-4.63%3
2026-05-292026-06-01$435.79$415.88-1.14%2
2025-12-042025-12-30$454.53$454.431.98%18
2025-09-122025-09-15$395.94$410.045.01%2
2025-07-292025-07-30$321.20$319.04-1.08%2
2025-07-232025-07-24$332.56$305.30-0.05%2
2025-07-212025-07-22$328.49$332.11-0.39%2
2025-06-022025-06-03$342.69$344.27-0.90%2
2025-05-272025-05-28$362.89$356.904.71%2
2025-05-222025-05-23$341.04$339.341.20%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-252024-09-26$257.02$254.220.62%2
2024-09-232024-09-24$250.00$254.273.31%2
2024-09-182024-09-19$227.20$243.92-0.35%2
2024-09-162024-09-17$226.78$227.87-1.21%2
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
2023-09-012023-09-05$245.01$256.49-3.68%2
2023-08-302023-08-31$256.90$258.08-0.22%2
2023-07-192023-07-20$291.26$262.90-0.64%2
2023-07-102023-07-11$269.61$269.79-1.37%2
2023-07-062023-07-07$276.54$274.43-1.61%2
2023-06-232023-06-26$256.60$241.05-2.26%2
2023-06-212023-06-22$259.46$264.61-3.96%2
2023-06-162023-06-20$260.54$274.451.13%2
2023-06-142023-06-15$256.79$255.90-0.66%2
2023-06-122023-06-13$249.83$258.711.41%2
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
2022-09-212022-09-22$300.80$288.59-1.94%2
2022-09-192022-09-20$309.07$308.731.18%2
2022-09-152022-09-16$303.75$303.350.12%2
2022-09-132022-09-14$292.13$302.61-2.96%2
2022-08-182022-08-19$302.87$296.67-0.40%2
2022-08-162022-08-17$306.56$304.00-0.76%2
2022-08-052022-08-08$288.17$290.42-4.78%2
2022-04-052022-04-11$363.75$325.31-7.53%5
2022-01-122022-01-13$368.74$343.852.61%2
2021-12-282022-01-03$362.82$399.93-2.52%5
2021-10-122021-11-10$268.57$355.9820.11%22
2021-10-082021-10-11$261.83$263.98-0.86%2
2021-09-272021-10-07$263.79$264.540.62%9
2021-09-162021-09-21$252.33$246.46-2.51%4
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-072021-09-13$250.97$247.670.13%5
2021-09-022021-09-03$244.13$244.52-0.30%2
2021-08-312021-09-01$245.24$244.700.32%2
2021-08-262021-08-27$233.72$237.31-1.13%2
2021-08-132021-08-16$239.06$228.72-0.63%2
2021-08-112021-08-12$235.94$240.75-0.35%2
2021-08-092021-08-10$237.92$236.661.33%2
2021-08-052021-08-06$238.21$233.030.23%2
2019-12-162019-12-17$25.43$25.274.37%2
2019-11-222019-11-25$22.20$22.42-4.44%2
2019-10-212019-10-22$16.90$17.04-1.08%2
2018-12-112018-12-18$24.45$22.47-3.32%6
2018-12-062018-12-07$24.20$23.860.51%2
2018-11-292018-11-30$22.74$23.37-1.49%2
2018-02-012018-02-05$23.28$22.21-2.23%3
2017-10-182017-10-20$23.98$23.01-0.91%3
2017-10-132017-10-17$23.70$23.72-1.14%3
2017-03-242017-03-28$17.54$18.504.08%3
2017-03-202017-03-22$17.46$17.00-3.03%3
2017-01-312017-02-02$16.80$16.77-0.53%3
2017-01-202017-01-25$16.32$16.962.96%4
2017-01-182017-01-19$15.89$16.250.69%2
2017-01-132017-01-17$15.85$15.712.35%2
2017-01-112017-01-12$15.32$15.31-0.18%2
2017-01-092017-01-10$15.42$15.320.55%2
2017-01-052017-01-06$15.12$15.27-0.21%2
2016-08-052016-08-08$15.34$15.08-0.32%2
2016-08-032016-08-04$15.05$15.37-0.57%2
2016-08-012016-08-02$15.33$15.15-1.56%2
2016-07-282016-07-29$15.37$15.650.51%2
2016-07-262016-07-27$15.30$15.23-0.29%2
2016-06-082016-06-09$15.70$15.290.82%2
2016-04-272016-04-28$16.76$16.51-0.77%2
2016-04-252016-04-26$16.79$16.92-0.67%2
2016-04-212016-04-22$16.55$16.92-0.61%2
2016-04-192016-04-20$16.49$16.66-1.93%2
2016-04-152016-04-18$16.97$16.930.60%2
2016-04-052016-04-14$17.03$16.792.04%8
2015-08-062015-08-07$16.41$16.17-6.35%2
2015-07-212015-07-22$17.78$17.86-3.98%2
2015-07-152015-07-16$17.54$17.78-0.80%2
2015-06-222015-07-09$17.32$17.19-2.08%13
2015-06-182015-06-19$17.46$17.500.26%2
2015-06-092015-06-10$17.07$16.71-0.22%2
2015-06-052015-06-08$16.61$17.090.78%2
2015-06-032015-06-04$16.60$16.390.04%2
2015-06-012015-06-02$16.63$16.56-0.52%2
2015-05-282015-05-29$16.76$16.721.00%2
2015-05-262015-05-27$16.50$16.50-0.22%2
2015-05-132015-05-22$16.21$16.520.12%8