SMA 均线交叉策略最优化研究 (2026-03-22)

4634 字
23 分钟
SMA 均线交叉策略最优化研究 (2026-03-22)

SMA 均线交叉策略最优化研究#

通过大规模参数搜索与回测,寻找 SMA 均线交叉策略在 A 股市场的最优参数组合,

并对比最优与最差策略的差异,揭示影响策略表现的关键因子。

发布于 2026-03-22 13:20 · 自动生成报告


研究概述#

研究标的#

代码名称类型
159915创业板ETFETF
510300沪深300ETFETF
510500中证500ETFETF

回测参数#

参数设定值
初始资金¥200,000
回测区间2013-01-01 ~ 2026-03-19
因子组合数全量笛卡尔积 (去重后)
评价主指标年化收益率
交易模式纯多头 (Long Only)

因子空间设计#

因子说明候选值
sma_short短期均线周期[10, 15, 20]
sma_long长期均线周期[30, 50, 60, 120]
rv_window相对波动率窗口[10, 20, 30]
rv_thresholdRV 过滤阈值[1.0, 1.5, 2.0, 2.5]
bias_enabled是否启用乖离率[True, False]
bias_window乖离率周期[5, 10, 20]
bias_upper乖离率上阈值 (%)[3.0, 5.0, 8.0]
bias_lower乖离率下阈值 (%)[-3.0, -5.0, -8.0]
enable_atr是否启用ATR止损[True, False]
atr_stop_multiplierATR 止损倍数[1.5, 2.0, 2.5, 3.0]
enable_adx是否启用ADX过滤[True, False]
adx_thresholdADX 阈值[20, 25, 30]
position_mode仓位管理模式['fixed', 'atr', 'volatility']
position_base基础仓位比例[0.6, 0.8, 1.0]

创业板ETF (159915) 策略分析#

全局统计#

指标数值
有效组合数725760
正收益组合201909 (27.8%)
年化收益率范围-6.80% ~ 17.50%
年化收益率中位数-0.27%
年化收益率均值-0.04%

▲ 收益分布

Top 5 最优策略#

表现最好的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
117.50%+4.52%12.98%40.98%0.65252.5%4.8
217.26%+4.27%12.98%42.51%0.64951.7%4.7
317.22%+4.23%12.98%45.14%0.64849.2%4.8
416.98%+3.99%12.98%46.56%0.64448.3%4.7
516.85%+3.87%12.98%42.99%0.62252.5%4.8

▲ 最优策略权益曲线

▲ 最优策略雷达图

Top 5 参数详情#

  • #1 — 年化 17.50% · 夏普 0.652 · 回撤 40.98%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 2.0
}

短期均线(20日)×月线级别(30日);严格波动率过滤;BIAS关;ATR止损×2.0;ADX关;固定仓位(100%)

  • #2 — 年化 17.26% · 夏普 0.649 · 回撤 42.51%
{
"sma_long": 30,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 2.0
}

短期均线(20日)×月线级别(30日);较高波动率过滤;BIAS关;ATR止损×2.0;ADX关;固定仓位(100%)

  • #3 — 年化 17.22% · 夏普 0.648 · 回撤 45.14%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×月线级别(30日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #4 — 年化 16.98% · 夏普 0.644 · 回撤 46.56%
{
"sma_long": 30,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×月线级别(30日);较高波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #5 — 年化 16.85% · 夏普 0.622 · 回撤 42.99%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 2.5
}

短期均线(20日)×月线级别(30日);严格波动率过滤;BIAS关;ATR止损×2.5;ADX关;固定仓位(100%)

Bottom 5 最差策略#

表现最差的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
1-6.80%-19.78%12.98%59.10%-0.77416.7%0.9
2-6.80%-19.78%12.98%59.10%-0.77416.7%0.9
3-6.80%-19.78%12.98%59.10%-0.77416.7%0.9
4-6.80%-19.78%12.98%59.10%-0.77416.7%0.9
5-6.62%-19.60%12.98%59.60%-0.85311.1%0.7

▲ 最差策略权益曲线

Bottom 5 参数详情#

  • #1 — 年化 -6.80% · 夏普 -0.774 · 回撤 59.10%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×半年线(120日);严格波动率过滤;BIAS关;ATR止损关;ADX>20;固定仓位(100%)

  • #2 — 年化 -6.80% · 夏普 -0.774 · 回撤 59.10%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -8.0,
"bias_upper": 8.0,
"enable_adx": true,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×半年线(120日);严格波动率过滤;BIAS[-8.0%,8.0%];ATR止损关;ADX>20;固定仓位(100%)

  • #3 — 年化 -6.80% · 夏普 -0.774 · 回撤 59.10%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -5.0,
"bias_upper": 8.0,
"enable_adx": true,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×半年线(120日);严格波动率过滤;BIAS[-5.0%,8.0%];ATR止损关;ADX>20;固定仓位(100%)

  • #4 — 年化 -6.80% · 夏普 -0.774 · 回撤 59.10%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 8.0,
"enable_adx": true,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×半年线(120日);严格波动率过滤;BIAS[-3.0%,8.0%];ATR止损关;ADX>20;固定仓位(100%)

  • #5 — 年化 -6.62% · 夏普 -0.853 · 回撤 59.60%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 25,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×半年线(120日);严格波动率过滤;BIAS关;ATR止损关;ADX>25;固定仓位(100%)

Best vs Worst 对比分析#

▲ 收益-回撤散点图

指标Best 5 均值Worst 5 均值差异
年化收益率17.16%-6.76%+23.92%
夏普比率0.643-0.790+1.433
最大回撤43.64%59.20%-15.57%
胜率50.8%15.6%+35.3%

因子敏感度分析#

▲ 因子敏感度 最优与最差策略的因子差异:

  • atr_stop_multiplier: 最优策略偏好 2.0,最差策略偏好 1.5
  • bias_enabled: 最优策略偏好 False,最差策略偏好 True
  • bias_upper: 最优策略偏好 3.0,最差策略偏好 8.0
  • enable_adx: 最优策略偏好 False,最差策略偏好 True
  • enable_atr: 最优策略偏好 True,最差策略偏好 False
  • sma_long: 最优策略偏好 30,最差策略偏好 120
  • sma_short: 最优策略偏好 20,最差策略偏好 10

最优策略交易信号#

▲ 交易信号K线图

乖离率 vs 无乖离率 对比分析#

▲ 乖离率对比

指标有乖离率无乖离率差异
组合数69984025920
平均年化收益-0.08%0.94%-1.01%
中位数年化收益-0.28%0.00%-0.28%
最高年化收益15.17%17.50%-2.33%
平均夏普比率-0.803-0.405-0.398
平均最大回撤17.69%24.29%-6.59%
平均胜率32.1%27.4%+4.7%
正收益占比27.4%40.0%-12.7%
平均交易次数12.415.0-2.6

分析结论:

  • 无乖离率组平均年化收益高出 1.01%,说明乖离率过滤可能过于保守,错失部分行情
  • 有乖离率组平均回撤低 6.59%,乖离率在风控方面发挥了积极作用
  • 无乖离率组风险调整后收益更优,夏普比率高出 0.398

模块消融分析 (ATR止损 × ADX过滤)#

▲ 模块消融对比

模块组合组合数平均年化平均Alpha平均夏普平均回撤正收益占比
基础策略362881.23%-11.75%-0.30635.04%55.9%
+ATR止损1451521.77%-11.21%-0.25828.75%65.3%
+ADX过滤108864-0.79%-13.78%-0.85017.10%17.5%
+ATR+ADX435456-0.56%-13.55%-0.99113.10%15.6%

沪深300ETF (510300) 策略分析#

全局统计#

指标数值
有效组合数725760
正收益组合517908 (71.4%)
年化收益率范围-3.56% ~ 9.54%
年化收益率中位数0.55%
年化收益率均值0.92%

▲ 收益分布

Top 5 最优策略#

表现最好的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
19.54%+2.75%6.79%34.73%0.47737.5%1.3
29.54%+2.75%6.79%34.73%0.47737.5%1.3
39.54%+2.75%6.79%26.66%0.51537.5%1.3
49.52%+2.73%6.79%34.73%0.48037.5%1.3
59.52%+2.73%6.79%34.73%0.48037.5%1.3

▲ 最优策略权益曲线

▲ 最优策略雷达图

Top 5 参数详情#

  • #1 — 年化 9.54% · 夏普 0.477 · 回撤 34.73%
{
"sma_long": 120,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×半年线(120日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #2 — 年化 9.54% · 夏普 0.477 · 回撤 34.73%
{
"sma_long": 120,
"rv_window": 30,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×半年线(120日);较高波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #3 — 年化 9.54% · 夏普 0.515 · 回撤 26.66%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×半年线(120日);较高波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #4 — 年化 9.52% · 夏普 0.480 · 回撤 34.73%
{
"sma_long": 120,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×半年线(120日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #5 — 年化 9.52% · 夏普 0.480 · 回撤 34.73%
{
"sma_long": 120,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(20日)×半年线(120日);较高波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

Bottom 5 最差策略#

表现最差的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
1-3.56%-10.34%6.79%44.05%-0.58921.9%2.5
2-3.56%-10.34%6.79%44.05%-0.58921.9%2.5
3-3.56%-10.34%6.79%44.05%-0.58921.9%2.5
4-3.56%-10.34%6.79%44.05%-0.58921.9%2.5
5-2.85%-9.63%6.79%38.59%-0.53622.6%2.4

▲ 最差策略权益曲线

Bottom 5 参数详情#

  • #1 — 年化 -3.56% · 夏普 -0.589 · 回撤 44.05%
{
"sma_long": 60,
"rv_window": 30,
"sma_short": 15,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

中短期均线(15日)×季线级别(60日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #2 — 年化 -3.56% · 夏普 -0.589 · 回撤 44.05%
{
"sma_long": 60,
"rv_window": 30,
"sma_short": 15,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

中短期均线(15日)×季线级别(60日);较高波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #3 — 年化 -3.56% · 夏普 -0.589 · 回撤 44.05%
{
"sma_long": 60,
"rv_window": 20,
"sma_short": 15,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

中短期均线(15日)×季线级别(60日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #4 — 年化 -3.56% · 夏普 -0.589 · 回撤 44.05%
{
"sma_long": 60,
"rv_window": 10,
"sma_short": 15,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

中短期均线(15日)×季线级别(60日);严格波动率过滤;BIAS关;ATR止损×1.5;ADX关;固定仓位(100%)

  • #5 — 年化 -2.85% · 夏普 -0.536 · 回撤 38.59%
{
"sma_long": 60,
"rv_window": 30,
"sma_short": 15,
"bias_lower": -8.0,
"bias_upper": 8.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

中短期均线(15日)×季线级别(60日);严格波动率过滤;BIAS[-8.0%,8.0%];ATR止损×1.5;ADX关;固定仓位(100%)

Best vs Worst 对比分析#

▲ 收益-回撤散点图

指标Best 5 均值Worst 5 均值差异
年化收益率9.53%-3.42%+12.95%
夏普比率0.486-0.579+1.064
最大回撤33.12%42.96%-9.84%
胜率37.5%22.0%+15.5%

因子敏感度分析#

▲ 因子敏感度 最优与最差策略的因子差异:

  • rv_threshold: 最优策略偏好 2.0,最差策略偏好 2.5
  • rv_window: 最优策略偏好 20,最差策略偏好 30
  • sma_long: 最优策略偏好 120,最差策略偏好 60
  • sma_short: 最优策略偏好 20,最差策略偏好 15

最优策略交易信号#

▲ 交易信号K线图

乖离率 vs 无乖离率 对比分析#

▲ 乖离率对比

指标有乖离率无乖离率差异
组合数69984025920
平均年化收益0.91%1.30%-0.39%
中位数年化收益0.54%0.74%-0.20%
最高年化收益8.97%9.54%-0.57%
平均夏普比率-1.152-0.654-0.498
平均最大回撤10.69%14.51%-3.82%
平均胜率45.5%42.0%+3.5%
正收益占比71.4%71.6%-0.2%
平均交易次数12.613.8-1.2

分析结论:

  • 两组平均年化收益差异不大,乖离率对收益的影响有限
  • 有乖离率组平均回撤低 3.82%,乖离率在风控方面发挥了积极作用
  • 无乖离率组风险调整后收益更优,夏普比率高出 0.498

模块消融分析 (ATR止损 × ADX过滤)#

▲ 模块消融对比

模块组合组合数平均年化平均Alpha平均夏普平均回撤正收益占比
基础策略362882.22%-4.56%-0.07921.97%94.3%
+ATR止损1451522.12%-4.66%-0.10021.06%90.8%
+ADX过滤1088640.52%-6.27%-1.3158.13%65.9%
+ATR+ADX4354560.52%-6.27%-1.5227.17%64.4%

中证500ETF (510500) 策略分析#

全局统计#

指标数值
有效组合数725760
正收益组合252867 (34.8%)
年化收益率范围-5.50% ~ 12.56%
年化收益率中位数0.00%
年化收益率均值0.37%

▲ 收益分布

Top 5 最优策略#

表现最好的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
112.56%+5.42%7.13%36.17%0.58445.1%4.1
212.29%+5.15%7.13%36.17%0.57546.2%4.1
312.29%+5.15%7.13%36.17%0.57546.2%4.1
412.29%+5.15%7.13%36.17%0.57546.2%4.1
512.29%+5.15%7.13%36.17%0.57546.2%4.1

▲ 最优策略权益曲线

▲ 最优策略雷达图

Top 5 参数详情#

  • #1 — 年化 12.56% · 夏普 0.584 · 回撤 36.17%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 1.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×月线级别(30日);中等波动率过滤;BIAS关;ATR止损关;ADX关;固定仓位(100%)

  • #2 — 年化 12.29% · 夏普 0.575 · 回撤 36.17%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 8.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×月线级别(30日);较高波动率过滤;BIAS[-3.0%,8.0%];ATR止损关;ADX关;固定仓位(100%)

  • #3 — 年化 12.29% · 夏普 0.575 · 回撤 36.17%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -5.0,
"bias_upper": 8.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×月线级别(30日);较高波动率过滤;BIAS[-5.0%,8.0%];ATR止损关;ADX关;固定仓位(100%)

  • #4 — 年化 12.29% · 夏普 0.575 · 回撤 36.17%
{
"sma_long": 30,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -8.0,
"bias_upper": 8.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×月线级别(30日);较高波动率过滤;BIAS[-8.0%,8.0%];ATR止损关;ADX关;固定仓位(100%)

  • #5 — 年化 12.29% · 夏普 0.575 · 回撤 36.17%
{
"sma_long": 30,
"rv_window": 20,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 8.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": true,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}

短期均线(10日)×月线级别(30日);较高波动率过滤;BIAS[-3.0%,8.0%];ATR止损关;ADX关;固定仓位(100%)

Bottom 5 最差策略#

表现最差的 5 组参数组合:

排名年化收益Alpha基准年化最大回撤夏普比率胜率年均交易ATRADXBIAS
1-5.50%-12.63%7.13%51.41%-0.8470.0%1.0
2-5.50%-12.63%7.13%51.41%-0.8470.0%1.0
3-5.50%-12.63%7.13%51.41%-0.8470.0%1.0
4-5.50%-12.63%7.13%51.41%-0.8470.0%1.0
5-5.50%-12.63%7.13%51.41%-0.8470.0%1.0

▲ 最差策略权益曲线

Bottom 5 参数详情#

  • #1 — 年化 -5.50% · 夏普 -0.847 · 回撤 51.41%
{
"sma_long": 50,
"rv_window": 30,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 3.0
}

短期均线(20日)×中期均线(50日);严格波动率过滤;BIAS关;ATR止损×3.0;ADX>20;固定仓位(100%)

  • #2 — 年化 -5.50% · 夏普 -0.847 · 回撤 51.41%
{
"sma_long": 50,
"rv_window": 30,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 3.0
}

短期均线(20日)×中期均线(50日);较高波动率过滤;BIAS关;ATR止损×3.0;ADX>20;固定仓位(100%)

  • #3 — 年化 -5.50% · 夏普 -0.847 · 回撤 51.41%
{
"sma_long": 50,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 3.0
}

短期均线(20日)×中期均线(50日);严格波动率过滤;BIAS关;ATR止损×3.0;ADX>20;固定仓位(100%)

  • #4 — 年化 -5.50% · 夏普 -0.847 · 回撤 51.41%
{
"sma_long": 50,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.0,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 3.0
}

短期均线(20日)×中期均线(50日);较高波动率过滤;BIAS关;ATR止损×3.0;ADX>20;固定仓位(100%)

  • #5 — 年化 -5.50% · 夏普 -0.847 · 回撤 51.41%
{
"sma_long": 50,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": true,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 3.0
}

短期均线(20日)×中期均线(50日);严格波动率过滤;BIAS关;ATR止损×3.0;ADX>20;固定仓位(100%)

Best vs Worst 对比分析#

▲ 收益-回撤散点图

指标Best 5 均值Worst 5 均值差异
年化收益率12.34%-5.50%+17.84%
夏普比率0.577-0.847+1.424
最大回撤36.17%51.41%-15.24%
胜率45.9%0.0%+45.9%

因子敏感度分析#

▲ 因子敏感度 最优与最差策略的因子差异:

  • atr_stop_multiplier: 最优策略偏好 1.5,最差策略偏好 3.0
  • bias_enabled: 最优策略偏好 True,最差策略偏好 False
  • bias_upper: 最优策略偏好 8.0,最差策略偏好 3.0
  • enable_adx: 最优策略偏好 False,最差策略偏好 True
  • enable_atr: 最优策略偏好 False,最差策略偏好 True
  • rv_threshold: 最优策略偏好 2.0,最差策略偏好 2.5
  • rv_window: 最优策略偏好 10,最差策略偏好 30
  • sma_long: 最优策略偏好 30,最差策略偏好 50
  • sma_short: 最优策略偏好 10,最差策略偏好 20

最优策略交易信号#

▲ 交易信号K线图

乖离率 vs 无乖离率 对比分析#

▲ 乖离率对比

指标有乖离率无乖离率差异
组合数69984025920
平均年化收益0.36%0.53%-0.17%
中位数年化收益0.00%-0.14%+0.14%
最高年化收益12.29%12.56%-0.27%
平均夏普比率-0.981-0.747-0.234
平均最大回撤14.95%20.07%-5.12%
平均胜率26.0%21.3%+4.7%
正收益占比34.8%37.0%-2.2%
平均交易次数12.414.1-1.7

分析结论:

  • 两组平均年化收益差异不大,乖离率对收益的影响有限
  • 有乖离率组平均回撤低 5.12%,乖离率在风控方面发挥了积极作用
  • 无乖离率组风险调整后收益更优,夏普比率高出 0.234

模块消融分析 (ATR止损 × ADX过滤)#

▲ 模块消融对比

模块组合组合数平均年化平均Alpha平均夏普平均回撤正收益占比
基础策略362883.02%-4.12%-0.01024.17%88.4%
+ATR止损1451522.44%-4.69%-0.09024.54%79.6%
+ADX过滤108864-0.47%-7.61%-1.09014.33%19.8%
+ATR+ADX435456-0.33%-7.47%-1.31711.45%19.2%

结论与建议#

创业板ETF (159915) 推荐配置#

{
"sma_long": 30,
"rv_window": 10,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 2.0
}
指标数值
年化收益17.50%
Alpha+4.52%
基准年化12.98%
最大回撤40.98%
夏普比率0.652
胜率52.5%

沪深300ETF (510300) 推荐配置#

{
"sma_long": 120,
"rv_window": 20,
"sma_short": 20,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": true,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 2.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}
指标数值
年化收益9.54%
Alpha+2.75%
基准年化6.79%
最大回撤34.73%
夏普比率0.477
胜率37.5%

中证500ETF (510500) 推荐配置#

{
"sma_long": 30,
"rv_window": 10,
"sma_short": 10,
"bias_lower": -3.0,
"bias_upper": 3.0,
"enable_adx": false,
"enable_atr": false,
"start_year": 2013,
"bias_window": 5,
"bias_enabled": false,
"rv_threshold": 1.5,
"adx_threshold": 20,
"position_base": 1.0,
"position_mode": "fixed",
"atr_stop_multiplier": 1.5
}
指标数值
年化收益12.56%
Alpha+5.42%
基准年化7.13%
最大回撤36.17%
夏普比率0.584
胜率45.1%

风险提示#

  1. 历史回测不代表未来表现,策略的有效性可能随市场结构变化而失效
  2. 回测未考虑滑点、涨跌停限制等实际交易摩擦
  3. 建议使用多标的、多时间段交叉验证后再投入实盘
  4. 实盘建议从小仓位开始,逐步验证策略有效性

API 调用示例#

from api.strategy_api import get_best_strategy, run_strategy_signal
# 获取最优策略
best = get_best_strategy("159915")
print(best)
# 实盘信号生成
signal = run_strategy_signal(
ticker="159915",
factor_config=best['factor_config'],
latest_data=latest_df,
)
print(signal)

本报告由 stickman.life 策略研究系统自动生成

文章分享

如果这篇文章对你有帮助,欢迎分享给更多人!

SMA 均线交叉策略最优化研究 (2026-03-22)
https://blog.stickman.life/posts/sma-strategy-optimization-report-2026_0322/
作者
火柴人 (Stickman)
发布于
2026-03-22
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
火柴人 (Stickman)
想的多,动得少,拥有超强的质疑精神。
公告
欢迎来到火柴人的Blog!记录技术、动漫、游戏以及各种乱七八糟的想法。
分类
标签
站点统计
文章
6
分类
3
标签
9
总字数
7,674
运行时长
0
最后活动
0 天前

文章目录