无法调用填充'有争议

发布于 2025-02-04 06:38:07 字数 560 浏览 4 评论 0原文

我不能在EMA和CMF之间填充!感谢您的帮助! /////@version = 5 //指示器(title =“ chaikin货币流”,shorttitle =“ cmf”,format = format.price,price,precision = 2, // timeFrame =“”,timeFrame_gaps = tri) // var cumvol = 0。 // cumvol += nz(音量) //如果barstate.islast和cumvol == 0 // runtime.error(“数据供应商不提供卷。”) //长度= input.int.int(14,minval = 1) // ad = close ==高和关闭==低还是高==低? 0:((2*近距离高)/(高低))*音量 // mf = Math.sum(AD,长度) /MATH.SUM(卷,长度) //绘图(MF,color =#43A047,title =“ MF”) // hline(0,color =#787b86,title =“零”,linestyle = hline.style_dashed) // emaf = ta.ema(MF,14) //情节(EMAF) //填充(MF,EMAF)

I can`t fill between ema and cmf! Thank you for your help!
////@version=5
//indicator(title="Chaikin Money Flow", shorttitle="CMF", format=format.price, precision=2,
//timeframe="", timeframe_gaps=true)
//var cumVol = 0.
//cumVol += nz(volume)
//if barstate.islast and cumVol == 0
// runtime.error("No volume is provided by the data vendor.")
//length = input.int(14, minval=1)
//ad = close==high and close==low or high==low ? 0 : ((2*close-low-high)/(high-low))*volume
//mf = math.sum(ad, length) / math.sum(volume, length)
//plot(mf, color=#43A047, title="MF")
//hline(0, color=#787B86, title="Zero", linestyle=hline.style_dashed)
//emaf = ta.ema(mf, 14)
//plot(emaf)
//fill(mf, emaf)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂牵梦绕锁你心扉 2025-02-11 06:38:07

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

The fill() function receives plot objects specifically. So if you plot x and y and you want a fill between these plots, here's how it would work:

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文