无法使用参数调用 'fill'

Cannot call 'fill' with argument

我无法在 ema 和 cmf 之间填充!谢谢您的帮助! ////@版本=5 //指标(title="Chaikin Money Flow", shorttitle="CMF", format=format.price, precision=2, //timeframe="", timeframe_gaps=true) //变量累积量 = 0。 //cumVol += nz(体积) //如果 barstate.islast 和 cumVol == 0 // runtime.error(“数据供应商未提供任何数量。”) //length = input.int(14, minval=1) //ad = close==high and close==low or high==low ? 0 : ((2*close-low-high)/(high-low))*音量 //mf = math.sum(ad, length) / math.sum(volume, length) //情节(mf,颜色=#43A047,标题=“MF”) //hline(0, color=#787B86, title="零", linestyle=hline.style_dashed) //emaf = ta.ema(mf, 14) //情节(emaf) //填充(mf,emaf)

fill()函数专门接收绘图对象。因此,如果您绘制 x 和 y 并且想要在这些图之间进行填充,那么它的工作方式如下:

x = ta.sma(close, 10)
y = ta.sma(close, 20)
plot_x = plot(x)
plot_y = plot(y)
fill(x, y) // INCORRECT
fill(plot_x, plot_y) // CORRECT