Pine script 无法在价格图中显示形状

Pine script 无法在价格图中显示形状,pine-script,Pine Script,各位, 为什么这个指标没有在价格表中显示箭头 它显示香蕉指示器中的箭头,但不显示在价格表中 你知道为什么吗 多谢各位 //@version=4 study(title="rsi", shorttitle="rsi", format=format.price, precision=2, resolution="") len = input(2, minval=1, title="Length") src = i

各位,

为什么这个指标没有在价格表中显示箭头

它显示香蕉指示器中的箭头,但不显示在价格表中

你知道为什么吗

多谢各位

    //@version=4
study(title="rsi", shorttitle="rsi", format=format.price, precision=2, resolution="")
len = input(2, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))

plotshape(series= rsi >= 70 and rsi >= rsi[1], style=shape.triangledown, location=location.abovebar, color=#4CAF50, size=size.small, text="70")
plotshape(series=rsi <= 30 and rsi <= rsi[1], style=shape.triangleup, location=location.belowbar, color=#BD494C, size=size.small, text="30") 
/@version=4
研究(title=“rsi”,shorttitle=“rsi”,format=format.price,精度=2,分辨率=”)
len=输入(2,最小值=1,title=“长度”)
src=input(关闭“Source”,type=input.Source)
up=rma(最大值(变化(src),0),len)
向下=rma(-min(变化(src),0),len)
rsi=下降==0?100:up==0?0:100-(100/(1+上/下))
plotshape(series=rsi>=70和rsi>=rsi[1],style=shape.triangledown,location=location.overbar,color=#4CAF50,size=size.small,text=“70”)

plotshape(series=rsi如果要在价格图表中显示指标,则应将
study()
overlay
参数设置为
true

study(title="rsaaai", shorttitle="rsi", format=format.price, precision=2, resolution="", overlay=true)

如果要在价格表中显示指标,则应将
study()
overlay
参数设置为
true

study(title="rsaaai", shorttitle="rsi", format=format.price, precision=2, resolution="", overlay=true)
非常感谢你。。。 您认为可以将上述代码与此代码结合起来吗

    //@version=4
study(title="Relative Strength Index", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=#8E1599)
band1 = hline(70, "Upper Band", color=#C0C0C0)
band0 = hline(30, "Lower Band", color=#C0C0C0)
fill(band1, band0, color=#9915FF, transp=90, title="Background")
非常感谢你。。。 您认为可以将上述代码与此代码结合起来吗

    //@version=4
study(title="Relative Strength Index", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=#8E1599)
band1 = hline(70, "Upper Band", color=#C0C0C0)
band0 = hline(30, "Lower Band", color=#C0C0C0)
fill(band1, band0, color=#9915FF, transp=90, title="Background")

你不应该将答案作为评论发布。此外,你应该在每篇文章中提出一个问题。作为一个快速回答,是的,这是可能的。如果你无法管理它,请尝试并提出一个新问题。你不应该将答案作为评论发布。此外,你应该在每篇文章中提出一个问题。作为一个快速回答,是的,这是可能的。只要尝试并提出一个新问题即可如果你不能让它工作。