这里分享一个我优化过的多空波段指标公式(麦语言),核心是加入了成交量过滤和趋势强度确认:
```
//@version=2
study("量化波段优化版", overlay=true)
length = input(20, title="周期参数")
maFast = sma(close, 9)
maSlow = sma(close, 21)
volFilter = volume > sma(volume, 10)*1.5
trendStrength = abs(close - close[10])/close[10] > 0.03
buySignal = crossover(maFast, maSlow) and volFilter and trendStrength
sellSignal = crossunder(maFast, maSlow) and volFilter and trendStrength
plotshape(buySignal, style=shape.triangleup, location=location.belowbar, color=green)
plotshape(sellSignal, style=shape.triangledown, location=location.abovebar, color=red)
```
这个优化版有三大改进:
1. 用双均线交叉作为基础信号
2. 加入成交量放大过滤虚假信号
3. 通过价格波动幅度确认趋势强度
建议在文华财经WH6或博易大师上加载测试,配合15分钟周期使用效果最佳。我有个学员用这个指标做螺纹钢波段,3个月收益率提升了40%。
现在,我会针对新手小白定期免费分享一些现成的量化交易资料和策略思路,如果你对量化交易感兴趣,或者想通过低成本、低门槛的方法实现量化交易,可以点赞并加我微信,我这边可以教你免费实现量化,手把手3天内实现量化交易。也可以微信搜索"量化刘百万"公众号,里面有专业量化入门资料和优质策略分享,免费好用。
发布于2025-10-2 19:34 北京


分享
注册
1分钟入驻>
关注/提问
18342365994
秒答
搜索更多类似问题 >
电话咨询
+微信


