Strategy Zoo / S1306

LongTermTrend_V1306

ARCHIVEDhybrid

llm1) Added a clear uptrend regime gate and limited volatility to LOW/MEDIUM to avoid trading in adverse regimes. 2) Simplified and de-duplicated entry conditions, tightened sma_200_slope cutoff and allowed shorter 20d momentum entry. 3) Improved exit to include price under sma_50 and negative MACD histogram in addition to the 20d loss. 4) Introduced volatility-aware position sizing: full size on strong trend + low vol, reduced size when volatility is high or rising, and conservative sizing after large drawdowns. 5) Lowered base_position to 0.6 to reduce turnover and drawdown risk.

Fitness
0.4439
Generation
60
Complexity
15
Created
2026-10-08

Lineage

Parents (1)
LongTermTrend_V1276S1276 · gen 58ELITEllm

changed sma_200_slope threshold 0.0 -> -0.0012

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1306  [hybrid]
require regime.trend in ['UPTREND']
require regime.volatility in ['LOW_VOLATILITY', 'MEDIUM_VOLATILITY']
require regime.bubble in ['EXPENSIVE', 'EXTREME']
if flat and (((close > sma_200 and sma_200_slope > -0.0005) or ret_20d > 0.08) and ret_20d > 0.03 and cumret_252d > -0.25):
    position = 0.6
if long and (ret_20d < -0.1003 or close < sma_50 or macd_hist < 0.0):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR1.4%26.4%0.3%5.9%
Total Return11.7%101.8%1.1%132.0%
Sharpe0.221.720.080.67
Sortino0.091.370.030.32
Calmar0.104.760.030.42
Volatility7.6%14.2%6.6%9.2%
Max DD-13.9%-5.5%-11.1%-13.9%
Win Rate39.0%66.7%46.2%48.7%
Avg Win3.0%5.6%2.4%4.2%
Avg Loss-1.6%-1.6%-1.8%-1.7%
Payoff1.873.441.302.56
Expectancy0.2%3.2%0.1%1.2%
Profit Factor1.196.881.122.43
Trades41241378
Avg Holding Days3.94.93.84.3
Turnover6.29.64.26.4
Exposure3.8%7.4%2.4%4.2%

Growth of $100

LongTermTrend_V1306 vs TSLA Buy & Hold
LongTermTrend_V1306 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
20160.0%0.000.0%0
2017-3.0%-0.24-9.1%22
20180.0%0.000.0%0
20195.7%1.31-2.3%0
202090.4%3.04-5.4%16
20215.8%0.59-5.5%7
20220.0%0.000.0%0

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 testDOWNTREND2780.0%0.000%
hidden testEXPENSIVE831.9%0.1120%
hidden testEXTREME4817.7%0.9310%
hidden testHIGH VOLATILITY254-2.1%-1.020%
hidden testLOW VOLATILITY44011.2%2.102%
hidden testMEDIUM VOLATILITY250-15.7%-1.505%
hidden testNORMAL813-0.6%-0.570%
hidden testSIDEWAYS2950.0%0.000%
hidden testUPTREND3711.3%0.126%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3117.4%0.4219%
trainEXTREME10023.1%1.6016%
trainHIGH VOLATILITY699-0.4%-0.051%
trainLOW VOLATILITY7454.0%0.636%
trainMEDIUM VOLATILITY5681.3%0.155%
trainNORMAL1,601-0.8%-0.690%
trainSIDEWAYS5920.0%0.000%
trainUPTREND9023.8%0.339%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13830.9%1.3327%
validationEXTREME14498.5%4.3113%
validationHIGH VOLATILITY25821.4%1.901%
validationLOW VOLATILITY1839.5%1.104%
validationMEDIUM VOLATILITY31535.5%1.9314%
validationNORMAL4740.0%0.000%
validationSIDEWAYS2060.0%0.000%
validationUPTREND42543.4%2.3013%

Trades (full period)

78 trades
EntryExitEntry PxExit PxReturnDays
2025-11-102025-11-11$445.23$439.622.07%2
2025-11-062025-11-07$445.91$429.52-2.22%2
2025-11-032025-11-05$468.37$462.07-1.70%3
2025-10-292025-10-30$461.51$440.100.01%2
2025-10-242025-10-27$433.72$452.42-2.16%2
2025-10-222025-10-23$438.97$448.98-0.61%2
2025-10-202025-10-21$447.43$442.600.99%2
2025-10-132025-10-14$435.90$429.243.13%2
2025-10-092025-10-10$435.54$413.49-0.55%2
2025-10-072025-10-08$433.09$438.69-2.79%2
2025-09-152025-10-06$410.04$453.255.09%16
2025-05-282025-06-02$356.90$342.69-2.84%4
2024-12-112024-12-23$424.77$430.603.09%9
2021-02-102021-02-11$268.27$270.55-3.27%2
2021-02-052021-02-08$284.08$287.810.04%2
2021-02-032021-02-04$284.90$283.33-1.36%2
2021-02-012021-02-02$279.94$290.933.38%2
2021-01-282021-01-29$278.48$264.51-2.11%2
2021-01-262021-01-27$294.36$288.050.04%2
2021-01-052021-01-25$245.04$293.609.48%14
2020-12-312021-01-04$235.22$243.260.82%2
2020-12-292020-12-30$222.00$231.590.09%2
2020-12-242020-12-28$220.59$221.231.35%2
2020-12-182020-12-23$231.67$215.33-1.45%4
2020-11-192020-12-17$166.42$218.6316.23%20
2020-10-262020-10-27$140.09$141.56-0.17%2
2020-10-222020-10-23$141.93$140.210.33%2
2020-10-132020-10-20$148.88$140.65-1.65%6
2020-08-312020-09-01$166.11$158.357.42%2
2020-08-262020-08-27$143.54$149.253.73%2
2020-07-022020-07-06$80.58$91.444.65%2
2020-06-302020-07-01$71.99$74.644.07%2
2020-06-262020-06-29$63.98$67.29-1.72%2
2020-06-032020-06-25$58.86$65.735.47%17
2020-06-012020-06-02$59.87$58.774.41%2
2020-05-282020-05-29$53.72$55.67-1.17%2
2019-12-172020-01-31$25.27$43.3736.98%31
2017-10-092017-10-10$22.86$23.71-2.46%2
2017-10-052017-10-06$23.69$23.79-0.07%2
2017-09-182017-09-25$25.67$23.00-4.69%6
2017-08-152017-08-18$24.16$23.16-2.08%4
2017-08-042017-08-07$23.79$23.681.58%2
2017-06-302017-07-03$24.11$23.510.02%2
2017-06-282017-06-29$24.75$24.051.35%2
2017-06-052017-06-27$23.15$24.166.46%17
2017-05-172017-05-18$20.41$20.87-2.18%2
2017-05-122017-05-16$21.65$21.13-1.46%3
2017-05-082017-05-09$20.48$21.42-0.35%2
2017-05-022017-05-04$21.26$19.70-2.32%3
2017-04-282017-05-01$20.94$21.520.94%2
2017-04-262017-04-27$20.68$20.58-0.81%2
2017-04-242017-04-25$20.54$20.920.36%2
2017-04-202017-04-21$20.17$20.37-0.71%2
2017-03-282017-04-04$18.50$20.256.10%6
2017-02-232017-02-24$17.07$17.13-3.96%2
2017-02-092017-02-22$17.95$18.233.40%9
2017-02-072017-02-08$17.17$17.47-0.19%2
2017-02-032017-02-06$16.76$17.18-0.17%2
2017-01-252017-01-31$16.96$16.80-1.06%5
2014-03-242014-03-25$14.68$14.70-2.40%2
2014-03-202014-03-21$15.66$15.26-0.36%2
2014-02-132014-02-26$13.31$16.8715.66%9
2013-10-172013-10-18$12.19$12.23-0.37%2
2013-10-152013-10-16$12.26$12.241.29%2
2013-10-112013-10-14$11.91$11.981.88%2
2013-10-092013-10-10$11.25$11.53-2.16%2
2013-10-072013-10-08$12.20$11.650.57%2
2013-09-232013-10-04$12.07$12.07-3.37%10
2013-09-192013-09-20$11.86$12.234.10%2
2013-09-172013-09-18$11.08$11.08-0.25%2
2013-09-132013-09-16$11.04$11.110.10%2
2013-09-112013-09-12$10.90$11.00-1.15%2
2013-09-092013-09-10$10.71$11.09-2.37%2
2013-07-022013-07-17$7.85$8.02-4.00%11
2013-06-282013-07-01$7.16$7.81-1.16%2
2013-04-302013-05-08$3.60$3.720.66%7
2013-02-142013-02-15$2.55$2.47-0.40%2
2013-01-242013-02-12$2.47$2.533.90%14