Strategy Zoo / S0592

LongTermTrend_V0592

ARCHIVEDhybrid

llm['Added a volatility filter (vol_pctile < 0.85) to the entry to reduce trades in extreme-volatility periods—improves robustness/generalization.', 'Replaced single exit with a combined exit (macd_hist < 0 OR 1-day crash ret_1d < -5% OR large drawdown < -25%) to add practical stop-loss protection.', 'Added regime gates: allow only UPTREND or SIDEWAYS, restrict to low/medium volatility and NORMAL bubble to reduce overfitting in hostile regimes.', 'Introduced position scaling rules: reduce position size when volatility is high (vol_pctile > 0.85) or price is very close to 52-week high (dist_52w_high > 0.95) to limit downside risk.']

Fitness
0.0900
Generation
27
Complexity
32
Created
2026-09-23

Lineage

Parents (1)
LongTermTrend_V0583S0583 · gen 26ARCHIVEDllm

changed rel_volume threshold 1.5045 -> 2.0784

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0592  [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_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 > 2.0784) or ((macd_hist > 0.0 and close > sma_50) and sma_50 > sma_200)))) and vol_pctile < 0.85):
    position = 1.0
if long and (macd_hist < 0.0 or ret_1d < -0.05 or drawdown < -0.25):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR-2.7%1.4%-8.4%-3.4%
Total Return-19.6%4.2%-27.7%-39.4%
Sharpe-0.080.17-0.37-0.10
Sortino-0.050.11-0.24-0.06
Calmar-0.060.05-0.26-0.06
Volatility16.5%20.5%18.9%18.0%
Max DD-46.7%-25.7%-32.8%-59.9%
Win Rate44.1%51.3%46.5%46.3%
Avg Win3.3%3.1%2.4%2.9%
Avg Loss-2.9%-2.7%-2.6%-2.7%
Payoff1.161.120.931.06
Expectancy-0.1%0.2%-0.3%-0.1%
Profit Factor0.921.180.810.91
Trades933999231
Avg Holding Days4.64.32.33.5
Turnover23.326.053.531.5
Exposure16.6%16.9%13.6%15.9%

Growth of $100

LongTermTrend_V0592 vs TSLA Buy & Hold
LongTermTrend_V0592 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-11.7%-0.82-18.2%11
201714.8%1.26-5.4%6
2018-9.3%-0.91-14.1%5
2019-4.2%-0.26-10.0%16
20200.0%0.000.0%0
20211.8%0.20-25.7%21
2022-9.8%-0.52-25.6%17

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-2.2%-1.060%
hidden testEXPENSIVE8342.2%2.442%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-18.4%-1.182%
hidden testLOW VOLATILITY4292.1%0.1221%
hidden testMEDIUM VOLATILITY250-10.9%-0.4813%
hidden testNORMAL802-12.5%-0.6416%
hidden testSIDEWAYS293-27.5%-1.3223%
hidden testUPTREND3715.8%0.2516%
trainDOWNTREND518-8.1%-1.211%
trainEXPENSIVE31112.9%1.832%
trainEXTREME1000.0%0.000%
trainHIGH VOLATILITY6993.1%0.261%
trainLOW VOLATILITY74510.7%0.6031%
trainMEDIUM VOLATILITY568-22.7%-1.1717%
trainNORMAL1,601-4.2%-0.2320%
trainSIDEWAYS5920.9%0.0522%
trainUPTREND9021.0%0.0522%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE1380.0%0.000%
validationEXTREME1440.0%0.000%
validationHIGH VOLATILITY2585.0%0.271%
validationLOW VOLATILITY18310.5%0.5839%
validationMEDIUM VOLATILITY315-1.9%-0.0817%
validationNORMAL4745.5%0.2127%
validationSIDEWAYS206-20.0%-1.0123%
validationUPTREND42515.8%0.6719%

Trades (full period)

latest 100 of 231
EntryExitEntry PxExit PxReturnDays
2026-07-012026-07-06$425.30$419.77-6.64%3
2026-06-032026-06-04$423.70$418.45-0.21%2
2026-05-272026-06-02$440.36$423.74-4.27%5
2026-05-222026-05-26$426.01$433.591.75%2
2026-05-082026-05-21$428.35$417.851.13%10
2026-04-202026-04-21$392.50$386.42-2.22%2
2025-12-312026-01-02$449.72$438.07-1.24%2
2025-12-042025-12-30$454.53$454.432.68%18
2025-09-122025-09-15$395.94$410.047.15%2
2025-09-102025-09-11$347.79$368.810.04%2
2025-09-082025-09-09$346.40$346.97-1.46%2
2025-09-042025-09-05$338.53$350.841.13%2
2025-08-292025-09-02$333.87$329.36-3.70%2
2025-08-272025-08-28$349.60$345.98-0.79%2
2025-08-252025-08-26$346.60$351.671.74%2
2025-08-192025-08-20$329.31$323.90-1.94%2
2025-08-152025-08-18$330.56$335.16-1.69%2
2025-08-132025-08-14$339.38$335.58-0.63%2
2025-08-112025-08-12$339.03$340.842.64%2
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-232025-07-24$332.56$305.30-0.06%2
2025-07-212025-07-22$328.49$332.11-0.55%2
2025-06-042025-06-05$332.05$284.70-3.75%2
2025-06-022025-06-03$342.69$344.27-1.29%2
2025-05-272025-05-28$362.89$356.906.73%2
2025-05-222025-05-23$341.04$339.341.72%2
2025-05-122025-05-13$318.38$334.076.54%2
2024-10-092024-10-10$241.05$238.77-1.61%2
2024-10-072024-10-08$240.83$244.50-3.90%2
2024-10-032024-10-04$240.66$250.08-3.55%2
2024-10-012024-10-02$258.02$249.02-1.58%2
2024-09-272024-09-30$260.46$261.632.25%2
2024-09-252024-09-26$257.02$254.220.88%2
2024-09-232024-09-24$250.00$254.274.73%2
2024-09-182024-09-19$227.20$243.92-0.49%2
2024-09-162024-09-17$226.78$227.87-1.72%2
2024-09-062024-09-09$210.73$216.27-8.64%2
2024-09-042024-09-05$219.41$230.173.98%2
2024-07-112024-07-12$241.03$248.23-8.64%2
2024-07-092024-07-10$262.33$263.263.51%2
2024-07-052024-07-08$251.52$252.941.88%2
2024-07-022024-07-03$231.26$246.399.99%2
2024-06-282024-07-01$197.88$209.860.03%2
2024-06-262024-06-27$196.37$197.424.61%2
2024-06-242024-06-25$182.58$187.35-0.43%2
2024-06-202024-06-21$181.57$183.01-1.98%2
2024-06-172024-06-18$187.44$184.865.09%2
2024-05-292024-05-30$176.19$178.79-0.52%2
2023-12-282023-12-29$253.18$248.48-3.36%2
2023-12-262023-12-27$256.61$261.441.41%2
2023-12-212023-12-22$254.50$252.542.78%2
2023-12-192023-12-20$257.22$247.141.84%2
2023-12-152023-12-18$253.50$252.080.78%2
2023-12-132023-12-14$239.29$251.050.76%2
2023-12-112023-12-12$239.74$237.01-1.88%2
2023-12-072023-12-08$242.64$243.841.16%2
2023-12-052023-12-06$238.72$239.371.13%2
2023-12-012023-12-04$238.83$235.58-0.72%2
2023-11-292023-11-30$244.14$240.08-1.24%2
2023-11-272023-11-28$236.08$246.720.07%2
2023-11-222023-11-24$234.21$235.45-3.10%2
2023-11-202023-11-21$235.60$241.200.35%2
2023-11-162023-11-17$233.59$234.30-4.01%2
2023-10-162023-10-17$253.92$254.850.91%2
2023-10-122023-10-13$258.87$251.12-1.76%2
2023-10-102023-10-11$263.62$262.991.32%2
2023-10-062023-10-09$260.53$259.67-0.02%2
2023-09-222023-09-25$244.88$246.99-4.43%2
2023-09-202023-09-21$262.59$255.70-1.67%2
2023-09-182023-09-19$265.28$266.50-3.52%2
2023-09-142023-09-15$276.04$274.391.55%2
2023-09-122023-09-13$267.48$271.30-2.43%2
2023-09-062023-09-07$251.92$251.49-1.98%2
2023-09-012023-09-05$245.01$256.49-5.26%2
2023-08-302023-08-31$256.90$258.08-0.31%2
2023-07-262023-07-27$264.35$255.71-0.55%2
2023-07-202023-07-21$262.90$260.02-9.93%2
2023-07-182023-07-19$293.34$291.260.82%2
2023-07-142023-07-17$281.38$290.381.05%2
2023-07-122023-07-13$271.99$277.900.61%2
2023-07-102023-07-11$269.61$269.79-1.95%2
2023-07-062023-07-07$276.54$274.43-2.30%2
2023-07-032023-07-05$279.82$282.486.69%2
2023-06-292023-06-30$257.50$261.770.29%2
2023-06-272023-06-28$250.21$256.243.60%2
2023-06-232023-06-26$256.60$241.05-3.22%2
2023-06-212023-06-22$259.46$264.61-5.66%2
2023-06-162023-06-20$260.54$274.451.61%2
2023-06-142023-06-15$256.79$255.90-0.94%2
2023-06-122023-06-13$249.83$258.712.02%2
2023-06-082023-06-09$234.86$244.404.38%2
2023-06-062023-06-07$221.31$224.571.50%2
2023-06-022023-06-05$213.97$217.612.91%2
2023-05-312023-06-01$203.93$207.521.18%2
2023-04-052023-04-06$185.52$185.06-3.86%2
2023-04-032023-04-04$194.77$192.58-6.31%2
2023-03-302023-03-31$195.28$207.460.52%2
2023-03-282023-03-29$189.19$193.88-1.56%2
2023-03-242023-03-27$190.41$191.81-1.14%2
2022-09-192022-09-22$309.07$288.59-1.04%4