Strategy Zoo / S0723

LongTermTrend_V0723

ARCHIVEDhybrid

llmAdded a volatility gate on entry (vol_pctile < 0.92) to avoid extreme-VOL entries; tightened exits to include a short-term stop (ret_5d < -6%) and a moving-average break (close < sma_50) in addition to macd_hist<0; introduced regime gates (only trade in UPTREND and non-HIGH_VOL regimes and avoid EXTREME bubble) to reduce overfitting and improve robustness; added volatility-based position scaling (reduce to 50% when vol_pctile>0.8, to 25% when >0.95) to limit drawdowns in turbulent periods.

Fitness
0.4108
Generation
33
Complexity
31
Created
2026-09-25

Lineage

Parents (1)
LongTermTrend_V0583S0583 · gen 26ARCHIVEDllm

changed rel_volume threshold 1.5045 -> 2.0784

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V0723  [hybrid]
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['NORMAL', 'EXPENSIVE']
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.92):
    position = 1.0
if long and (macd_hist < 0.0 or ret_5d < -0.06 or close < sma_50):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR3.8%40.5%-3.2%8.7%
Total Return35.2%177.3%-11.3%242.4%
Sharpe0.281.35-0.010.46
Sortino0.221.32-0.010.39
Calmar0.111.57-0.080.21
Volatility22.9%27.9%24.2%24.4%
Max DD-35.1%-25.8%-42.0%-42.0%
Win Rate39.2%58.5%32.8%41.9%
Avg Win5.6%6.1%6.4%6.2%
Avg Loss-3.1%-3.1%-3.1%-3.1%
Payoff1.822.012.052.00
Expectancy0.3%2.3%0.0%0.8%
Profit Factor1.172.831.001.44
Trades1205361234
Avg Holding Days5.24.94.95.1
Turnover30.235.333.231.9
Exposure25.6%27.6%25.9%26.1%

Growth of $100

LongTermTrend_V0723 vs TSLA Buy & Hold
LongTermTrend_V0723 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
201610.9%0.78-12.8%10
201711.2%0.61-14.6%25
2018-0.8%0.01-8.9%6
201911.9%0.52-22.7%9
202096.4%2.66-8.3%11
202117.3%0.66-25.7%28
202220.4%0.86-17.3%12

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-7.5%-0.5811%
hidden testEXPENSIVE838.0%0.2534%
hidden testEXTREME480.0%0.000%
hidden testHIGH VOLATILITY254-10.9%-0.632%
hidden testLOW VOLATILITY43139.0%1.5738%
hidden testMEDIUM VOLATILITY250-57.2%-2.0230%
hidden testNORMAL804-1.2%-0.0527%
hidden testSIDEWAYS293-20.5%-0.8336%
hidden testUPTREND37120.9%0.7129%
trainDOWNTREND518-6.8%-0.4313%
trainEXPENSIVE31138.0%1.4135%
trainEXTREME10011.6%1.551%
trainHIGH VOLATILITY6999.3%0.422%
trainLOW VOLATILITY74525.3%1.1245%
trainMEDIUM VOLATILITY568-22.0%-0.9129%
trainNORMAL1,601-0.1%-0.0025%
trainSIDEWAYS5926.1%0.2826%
trainUPTREND90214.1%0.5332%
validationDOWNTREND12531.3%1.449%
validationEXPENSIVE138119.0%3.2741%
validationEXTREME14447.1%2.613%
validationHIGH VOLATILITY258-14.9%-1.061%
validationLOW VOLATILITY18315.2%0.7246%
validationMEDIUM VOLATILITY31594.2%2.4939%
validationNORMAL47411.4%0.4231%
validationSIDEWAYS206-12.9%-0.5826%
validationUPTREND42564.4%2.0334%

Trades (full period)

latest 100 of 235
EntryExitEntry PxExit PxReturnDays
2026-09-18—$364.27—3.70%5OPEN
2026-09-092026-09-17$367.81$366.20-2.93%7
2026-09-032026-09-08$376.37$368.16-1.01%3
2026-09-012026-09-02$356.09$357.01-3.42%2
2026-08-282026-08-31$348.75$367.95-1.91%2
2026-08-262026-08-27$345.82$354.81-1.46%2
2026-08-242026-08-25$348.95$350.25-4.03%2
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-202026-05-21$417.26$417.853.05%2
2026-05-042026-05-19$392.51$404.114.70%12
2026-04-202026-04-22$392.50$387.51-3.74%3
2026-04-162026-04-17$388.90$400.62-0.98%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-11-062025-11-07$445.91$429.52-3.69%2
2025-11-032025-11-05$468.37$462.07-2.89%3
2025-10-242025-10-27$433.72$452.42-3.60%2
2025-10-142025-10-15$429.24$435.15-1.73%2
2025-10-092025-10-10$435.54$413.49-0.92%2
2025-10-072025-10-08$433.09$438.69-4.64%2
2025-09-082025-10-06$346.40$453.2522.27%21
2025-09-042025-09-05$338.53$350.841.13%2
2025-08-252025-09-03$346.60$334.09-3.32%7
2025-08-082025-08-22$329.65$340.01-0.87%11
2025-07-292025-07-30$321.20$319.04-1.55%2
2025-07-212025-07-25$328.49$316.06-7.57%5
2025-06-042025-06-05$332.05$284.70-3.75%2
2025-05-192025-06-03$342.09$344.27-2.28%11
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-09-232024-10-04$250.00$250.080.81%10
2024-09-162024-09-20$226.78$238.255.71%5
2024-09-062024-09-09$210.73$216.27-8.64%2
2024-09-042024-09-05$219.41$230.173.98%2
2024-06-172024-07-12$187.44$248.2335.14%18
2024-05-292024-05-30$176.19$178.79-0.52%2
2023-12-152024-01-02$253.50$248.42-1.22%11
2023-11-292023-12-14$244.14$251.05-3.21%12
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-062023-10-17$260.53$254.85-2.55%8
2023-09-252023-09-26$246.99$244.120.66%2
2023-09-122023-09-22$267.48$244.88-6.72%9
2023-09-062023-09-07$251.92$251.49-1.98%2
2023-08-302023-09-05$256.90$256.49-4.92%4
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-052023-07-07$282.48$274.43-1.37%3
2023-06-302023-07-03$261.77$279.821.46%2
2023-06-282023-06-29$256.24$257.502.21%2
2023-05-222023-06-27$188.87$250.2133.55%25
2023-03-242023-04-06$190.41$185.06-3.68%10
2022-09-132022-09-23$292.13$275.33-5.39%9
2022-08-242022-08-25$297.10$296.070.02%2
2022-08-222022-08-23$289.91$296.45-2.47%2
2022-08-152022-08-19$309.32$296.670.75%5
2022-07-192022-08-12$245.53$300.0318.92%19
2022-07-142022-07-15$238.31$240.070.34%2
2022-07-112022-07-12$234.34$233.07-6.74%2
2022-04-192022-04-20$342.72$325.732.17%2
2022-04-142022-04-18$328.33$334.76-3.85%2
2022-04-122022-04-13$328.98$340.790.93%2
2022-03-212022-04-11$307.05$325.3113.04%16
2022-01-122022-01-13$368.74$343.853.73%2
2021-12-282022-01-03$362.82$399.93-3.59%5
2021-11-262021-11-29$360.64$379.00-3.25%2
2021-11-232021-11-24$369.68$372.00-4.33%2
2021-10-122021-11-10$268.57$355.9828.98%22
2021-10-082021-10-11$261.83$263.98-1.22%2
2021-09-272021-10-07$263.79$264.540.88%9
2021-09-232021-09-24$251.21$258.130.03%2
2021-08-312021-09-21$245.24$246.46-0.30%15
2021-08-252021-08-26$237.07$233.720.18%2
2021-08-232021-08-24$235.43$236.163.62%2
2021-08-192021-08-20$224.49$226.75-2.45%2
2021-08-022021-08-17$236.56$221.90-0.35%12
2021-07-212021-07-22$218.43$216.42-0.99%2
2021-07-162021-07-19$214.74$215.41-1.18%2
2021-07-132021-07-15$222.85$216.87-4.91%3
2021-06-242021-07-12$226.61$228.57-0.14%12
2021-06-222021-06-23$207.90$218.860.26%2
2021-06-182021-06-21$207.77$206.940.89%2
2021-06-142021-06-15$205.90$199.791.08%2
2021-05-032021-05-04$228.30$224.53-3.66%2
2021-04-142021-04-29$244.08$225.67-9.10%12
2021-02-052021-02-08$284.08$287.810.06%2
2021-02-032021-02-04$284.90$283.33-2.27%2
2021-02-012021-02-02$279.94$290.935.63%2
2021-01-282021-01-29$278.48$264.51-3.52%2
2021-01-262021-01-27$294.36$288.050.06%2