Strategy Zoo / S0572

LongTermTrend_V0572

ARCHIVEDhybrid

llmAdded regime gates to avoid downtrends, high volatility, and bubble states; replaced single ret_20d gate with two entry branches (trend-follow using sma_50 + macd_hist and a breakout branch) and kept a cumulative return safety check; improved exits with short-term stop (ret_5d), drawdown limit, sma_50 breach and a tighter ret_20d exit; introduced volatility-based position scaling and reduced base position to 0.8 to lower risk and overfitting.

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

Lineage

Parents (1)
LongTermTrend_V0454S0454 · gen 21ARCHIVEDllm

entry = LongTermTrend_V0323 OR PriceMomentum_V0160

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0572  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL']
if flat and (((close > sma_50 and sma_50_slope > 0.0 and macd_hist > 0.0 and ret_20d > 0.03) or (breakout_20 > 0.0 and ret_20d > 0.02)) and cumret_252d > -0.2 and vol_pctile < 0.8):
    position = 0.8
if long and (ret_5d < -0.05 or drawdown < -0.08 or close < sma_50 or ret_20d < 0.02):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-0.4%5.8%-1.4%0.6%
Total Return-3.4%18.4%-4.9%8.8%
Sharpe0.010.56-0.070.11
Sortino0.000.26-0.030.05
Calmar-0.020.37-0.070.02
Volatility10.1%11.3%11.3%10.6%
Max DD-27.1%-15.8%-19.1%-27.1%
Win Rate44.2%51.4%52.1%47.8%
Avg Win1.7%2.0%2.1%1.9%
Avg Loss-1.4%-1.0%-2.4%-1.6%
Payoff1.252.020.871.21
Expectancy-0.0%0.5%-0.1%0.1%
Profit Factor0.992.140.951.10
Trades953548178
Avg Holding Days2.92.52.22.6
Turnover19.018.720.719.4
Exposure7.2%5.5%5.1%6.3%

Growth of $100

LongTermTrend_V0572 vs TSLA Buy & Hold
LongTermTrend_V0572 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.52-4.4%15
20179.4%1.58-1.8%11
2018-8.6%-1.25-8.8%7
201910.0%1.43-2.1%11
20200.0%0.000.0%0
202117.5%0.95-13.6%22
20220.8%0.18-4.0%13

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 testDOWNTREND269-1.7%-1.010%
hidden testEXPENSIVE8333.8%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-8.5%-0.781%
hidden testLOW VOLATILITY429-2.8%-0.248%
hidden testMEDIUM VOLATILITY25010.7%0.945%
hidden testNORMAL802-4.3%-0.396%
hidden testSIDEWAYS293-8.6%-0.906%
hidden testUPTREND3716.1%0.398%
trainDOWNTREND518-0.4%-0.850%
trainEXPENSIVE3116.6%1.301%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.1%0.390%
trainLOW VOLATILITY7452.2%0.2015%
trainMEDIUM VOLATILITY568-6.5%-0.605%
trainNORMAL1,601-1.2%-0.119%
trainSIDEWAYS592-5.8%-0.617%
trainUPTREND9024.2%0.3211%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY258-9.4%-1.000%
validationLOW VOLATILITY18312.8%1.5212%
validationMEDIUM VOLATILITY31515.4%1.116%
validationNORMAL47410.0%0.709%
validationSIDEWAYS2064.5%0.724%
validationUPTREND4259.0%0.628%

Trades (full period)

latest 100 of 178
EntryExitEntry PxExit PxReturnDays
2026-06-012026-06-02$415.88$423.74-3.81%2
2026-05-282026-05-29$442.10$435.790.16%2
2026-05-202026-05-21$417.26$417.852.44%2
2026-05-182026-05-19$409.99$404.11-2.48%2
2026-05-142026-05-15$443.30$422.24-0.51%2
2026-05-122026-05-13$433.45$445.27-2.23%2
2026-05-082026-05-11$428.35$445.003.05%2
2026-04-202026-04-21$392.50$386.42-1.78%2
2025-12-122025-12-31$458.96$449.721.25%13
2025-12-082025-12-09$439.58$445.17-2.87%2
2025-09-122025-09-15$395.94$410.045.72%2
2025-09-082025-09-09$346.40$346.97-1.17%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-122025-08-13$340.84$339.380.27%2
2025-06-022025-06-03$342.69$344.27-1.03%2
2025-05-272025-05-28$362.89$356.905.39%2
2025-05-222025-05-23$341.04$339.341.37%2
2025-05-122025-05-13$318.38$334.075.23%2
2024-10-032024-10-04$240.66$250.08-2.84%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-162024-09-17$226.78$227.87-1.38%2
2024-09-062024-09-09$210.73$216.27-6.91%2
2024-07-112024-07-12$241.03$248.23-6.91%2
2024-07-092024-07-10$262.33$263.262.81%2
2024-07-052024-07-08$251.52$252.941.50%2
2024-07-022024-07-03$231.26$246.397.99%2
2024-06-272024-06-28$197.42$197.880.27%2
2023-12-282023-12-29$253.18$248.48-2.69%2
2023-12-202023-12-21$247.14$254.50-3.29%2
2023-12-152023-12-18$253.50$252.080.62%2
2023-11-292023-11-30$244.14$240.08-1.00%2
2023-09-152023-09-18$274.39$265.28-0.64%2
2023-09-122023-09-13$267.48$271.30-1.94%2
2023-07-182023-07-19$293.34$291.260.65%2
2023-07-052023-07-06$282.48$276.540.60%2
2023-06-232023-06-26$256.60$241.05-2.58%2
2023-06-212023-06-22$259.46$264.61-4.53%2
2023-06-162023-06-20$260.54$274.451.29%2
2023-06-142023-06-15$256.79$255.90-0.75%2
2023-06-122023-06-13$249.83$258.711.62%2
2023-06-082023-06-09$234.86$244.403.50%2
2023-06-062023-06-07$221.31$224.571.20%2
2023-06-022023-06-05$213.97$217.612.32%2
2023-05-312023-06-01$203.93$207.520.94%2
2022-09-202022-09-21$308.73$300.80-0.25%2
2022-08-182022-08-19$302.87$296.67-0.46%2
2022-08-162022-08-17$306.56$304.00-0.87%2
2022-08-102022-08-11$294.36$286.632.95%2
2022-08-082022-08-09$290.42$283.330.47%2
2022-08-042022-08-05$308.63$288.170.16%2
2022-08-022022-08-03$300.59$307.400.73%2
2022-04-072022-04-08$352.42$341.830.72%2
2022-04-052022-04-06$363.75$348.59-3.94%2
2022-03-292022-03-30$366.52$364.660.41%2
2022-03-252022-03-28$336.88$363.95-0.42%2
2022-03-232022-03-24$333.04$337.970.25%2
2022-03-212022-03-22$307.05$331.331.23%2
2021-10-152021-11-10$281.01$355.9819.87%19
2021-10-132021-10-14$270.36$272.770.37%2
2021-10-082021-10-11$261.83$263.98-0.98%2
2021-10-052021-10-06$260.20$260.92-0.26%2
2021-10-012021-10-04$258.41$260.51-0.19%2
2021-09-292021-09-30$260.44$258.490.23%2
2021-09-272021-09-28$263.79$259.191.59%2
2021-09-202021-09-21$243.39$246.46-3.25%2
2021-09-162021-09-17$252.33$253.16-0.04%2
2021-09-142021-09-15$248.16$251.940.00%2
2021-09-092021-09-10$251.62$245.42-0.06%2
2021-09-072021-09-08$250.97$251.291.95%2
2021-09-022021-09-03$244.13$244.52-0.35%2
2021-08-312021-09-01$245.24$244.700.37%2
2021-08-132021-08-16$239.06$228.72-0.72%2
2021-08-112021-08-12$235.94$240.75-0.40%2
2021-08-092021-08-10$237.92$236.661.52%2
2021-08-052021-08-06$238.21$233.030.26%2
2021-08-032021-08-04$236.58$236.97-0.15%2
2021-06-292021-06-30$226.92$226.57-1.08%2
2021-06-242021-06-25$226.61$223.962.67%2
2021-04-142021-04-15$244.08$246.28-3.32%2
2019-12-132019-12-17$23.89$25.274.69%3
2019-10-232019-10-24$16.98$19.98-0.44%2
2019-10-212019-10-22$16.90$17.04-1.23%2
2019-10-172019-10-18$17.46$17.130.52%2
2019-10-152019-10-16$17.19$17.320.13%2
2019-09-232019-09-24$16.08$14.880.04%2
2019-09-192019-09-20$16.44$16.040.86%2
2019-09-172019-09-18$16.32$16.230.49%2
2019-09-132019-09-16$16.35$16.19-0.38%2
2019-09-112019-09-12$16.47$16.393.76%2
2019-07-242019-07-25$17.66$15.251.29%2
2018-12-042018-12-18$23.98$22.47-2.37%10
2018-03-142018-03-15$21.78$21.71-3.72%2
2018-02-012018-02-02$23.28$22.92-1.30%2
2018-01-302018-01-31$23.05$23.62-1.01%2
2018-01-262018-01-29$22.86$23.301.07%2
2018-01-242018-01-25$23.06$22.51-1.72%2