tradingview with pine 如何处理交易量为 0 的烛台,或者当烛台没有出现间隔来计算指标时?

How tradingview with pine handles candlesticks with volume 0 or when candlestick didn't come for interval to calculate indicators?

请帮忙,谁能解释一下tradingview with pine 是如何计算RSI 和Divergence 的。我使用此处的指标 https://www.tradingview.com/script/wd38TSOH-RSI-Divergence/. But when i try to calculate manually by this formula https://www.macroption.com/rsi-calculation/ 值不同于 AACBTC 对和间隔 5 分钟的指标。我认为这是因为烛台为空(交易量 = 0,不存在区间交易)。但是当我想知道 ETHBTC 的 Divergence 和 RSI 值时,一切都很好。该货币对因交易而活跃 所以问题是:tradingview with pine 如何处理交易量为 0 的烛台或烛台没有出现的时间间隔?

pine-script 是否包含任何交易(因此交易量)没有任何区别。如果有一个柱,那么就会对该柱进行计算。如果脚本使用 volumevolume 将用作 0

我不知道你是否想知道 RSI 的确切算法,所以我只是说,你可以在 tradingview 的 pine-reference 中找到 RSI 脚本,而 Divergence 在 New 按钮的示例中在 pine 编辑器中