![](/img/trans.png)
[英]Error in compiling plotshape function TradingView Pine Script
[英]Tradingview Pine Script, show Close Price in plotshape text
我在 ema 十字架上绘制了一个标签。 是否可以在标签文本中显示收盘价? 下面的代码不喜欢我尝试使用的内置“close”变量。
plotshape(crossover(ema1, ema2), title="Cross Over", style=shape.labelup, location=location.belowbar, color=green, size=size.normal, text=close, textcolor=white, transp=40)
// mrtuanvn
//@version=4
study("Label at crossed",overlay=true)
crossed =crossover(ema(close,10), ema(close,50))
if crossed
l = label.new(bar_index, na, tostring(close),
color=color.green,
textcolor=color.white,
style=label.style_labeldown, yloc=yloc.abovebar)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.