Strategy Zoo / S1539

LongTermTrend_V1539

ARCHIVEDhybrid

llm1) Added trend and volatility regime gates to avoid DOWNTREND/HIGH_VOLATILITY and bubble states. 2) Strengthened entry: require either price above SMA200 with non-negative long-term slope or 20d momentum>6%, plus price>50SMA with positive 50SMA slope. 3) Added volatility and proximity-to-20SMA checks to reduce entries in extreme conditions. 4) Improved exits: multi-condition exit (short-term loss, break below SMA50, or drawdown limit) for better risk control. 5) Position scaling by vol_pctile: full size in low vol, reduced size in high vol, and lowered base position to 0.8 to temper turnover.

Fitness
0.4102
Generation
71
Complexity
18
Created
2026-10-14

Lineage

Parents (1)
LongTermTrend_V1319S1319 · gen 60ELITEllm

added entry filter: dist_sma_20 > -0.0187

Children (0)
None

Strategy Logic (pseudocode)

# LongTermTrend_V1539  [hybrid]
require regime.trend in ['UPTREND', 'SIDEWAYS']
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.06) and (close > sma_50 and sma_50_slope > 0.0) and dist_sma_20 > -0.05 and vol_pctile < 0.7):
    position = 0.8
if long and (ret_20d < -0.08 or close < sma_50 or drawdown > 0.12):
    position = 0.0  # exit to cash

Backtest Metrics

MetricTrainValidationHidden TestFull
CAGR0.7%40.1%-0.1%7.6%
Total Return5.4%174.7%-0.3%195.5%
Sharpe0.121.760.050.59
Sortino0.051.580.020.29
Calmar0.033.01-0.000.30
Volatility12.5%20.3%10.6%14.1%
Max DD-25.4%-13.3%-19.4%-25.4%
Win Rate33.3%55.6%40.0%40.0%
Avg Win6.7%27.4%5.6%14.9%
Avg Loss-3.2%-3.8%-3.6%-3.4%
Payoff2.097.241.534.42
Expectancy0.1%13.5%0.0%3.9%
Profit Factor1.049.051.022.95
Trades219535
Avg Holding Days8.715.012.811.2
Turnover4.34.82.13.8
Exposure6.8%13.3%5.0%7.7%

Growth of $100

LongTermTrend_V1539 vs TSLA Buy & Hold
LongTermTrend_V1539 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-9.2%-0.44-21.5%11
20180.0%0.000.0%0
20197.6%1.31-3.0%0
2020150.2%3.11-13.3%8
20216.4%0.48-8.7%1
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 testDOWNTREND2790.0%0.000%
hidden testEXPENSIVE8322.5%0.7844%
hidden testEXTREME485.6%0.2117%
hidden testHIGH VOLATILITY254-2.8%-1.020%
hidden testLOW VOLATILITY44314.9%2.093%
hidden testMEDIUM VOLATILITY251-21.6%-1.1913%
hidden testNORMAL817-2.1%-0.980%
hidden testSIDEWAYS298-1.3%-0.711%
hidden testUPTREND3712.2%0.1312%
trainDOWNTREND5180.0%0.000%
trainEXPENSIVE3110.7%0.0234%
trainEXTREME10055.3%2.3425%
trainHIGH VOLATILITY699-6.2%-0.451%
trainLOW VOLATILITY7458.3%0.939%
trainMEDIUM VOLATILITY5681.8%0.1211%
trainNORMAL1,601-1.8%-0.860%
trainSIDEWAYS5920.0%0.000%
trainUPTREND9023.2%0.1715%
validationDOWNTREND1250.0%0.000%
validationEXPENSIVE13844.1%1.2952%
validationEXTREME144147.3%4.7020%
validationHIGH VOLATILITY25828.5%1.901%
validationLOW VOLATILITY183-3.3%-0.2611%
validationMEDIUM VOLATILITY31564.3%2.4324%
validationNORMAL474-0.6%-0.780%
validationSIDEWAYS2060.0%0.000%
validationUPTREND42563.5%2.3624%

Trades (full period)

35 trades
EntryExitEntry PxExit PxReturnDays
2025-09-152025-11-13$410.04$401.997.14%44
2025-05-282025-06-02$356.90$342.69-3.78%4
2025-05-192025-05-22$342.09$341.04-3.67%4
2025-01-312025-02-04$404.60$392.21-3.46%3
2024-12-112024-12-23$424.77$430.603.98%9
2020-11-192021-02-19$166.42$260.4347.69%62
2020-11-062020-11-10$143.32$136.79-3.24%3
2020-11-042020-11-05$140.33$146.03-0.71%2
2020-10-132020-10-29$148.88$136.94-6.73%13
2020-08-312020-09-01$166.11$158.359.89%2
2020-08-262020-08-27$143.54$149.254.97%2
2020-08-102020-08-12$94.57$103.65-4.48%3
2020-05-272020-07-06$54.68$91.4436.82%28
2019-12-172020-01-31$25.27$43.3751.65%31
2017-10-052017-10-10$23.69$23.71-2.87%4
2017-09-182017-09-26$25.67$23.02-7.53%7
2017-08-152017-08-18$24.16$23.16-2.77%4
2017-08-042017-08-07$23.79$23.682.10%2
2017-06-052017-07-06$23.15$20.59-3.05%23
2017-05-122017-05-19$21.65$20.72-2.63%6
2017-04-242017-05-10$20.54$21.683.99%13
2017-04-202017-04-21$20.17$20.37-0.95%2
2017-03-282017-04-04$18.50$20.258.17%6
2017-02-032017-02-28$16.76$16.67-1.76%17
2017-01-252017-01-31$16.96$16.80-1.41%5
2014-04-032014-04-04$15.03$14.15-1.86%2
2014-03-202014-03-26$15.66$14.20-5.39%5
2014-02-132014-02-26$13.31$16.8721.13%9
2013-11-052013-11-07$11.79$9.32-11.10%3
2013-10-252013-10-28$11.31$10.86-1.77%2
2013-09-092013-10-24$10.71$11.54-1.12%34
2013-06-262013-07-17$7.05$8.025.33%15
2013-04-302013-05-08$3.60$3.720.77%7
2013-02-142013-02-15$2.55$2.47-0.53%2
2013-01-242013-02-12$2.47$2.535.21%14