无法调用填充'有争议
我不能在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
fill()
函数专门接收绘图对象。因此,如果您绘制X和Y,并且想要在这些图之间进行填充,则可以使用以下方式: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: