You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

quantstrat中EMA与RSI组合指标报错求助:策略可视化及性能分析受阻

在quantstrat中组合EMA与RSI时遇到指标报错问题

我最近在quantstrat框架里尝试把多个EMA(指数移动平均线)和RSI(相对强弱指标)结合起来搭建交易策略,原本想生成策略的可视化图表和性能报告,但在指标组合的环节直接卡壳了,一直收到报错提示:

Error in applying rules: Combined Technical indicator

下面是我写的相关代码片段:

### Add Indicators
nRSI <- 21
buyThresh <- 50
sellThresh <- 50

#Indicator for EMA long medium short
nEMAL<- 80
nEMAM<- 21
nEMAS<- 13
nEMAF<- 5

add.indicator(strategy.st, name="RSI", arguments...

内容的提问来源于stack exchange,提问作者Bryan Lwy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 07:03:08