【发布时间】:2021-02-23 11:05:30
【问题描述】:
我在 tradingview 平台上使用的是第 2 版脚本。我有一个代码显示像这样的买入卖出信号
plotshape(long_final, style=shape.labelup,
location=location.belowbar, color=green,size=size.tiny,title="buy label",text="Buy",textcolor=white)
plotshape(short_final, style=shape.labeldown,
location=location.abovebar, color=red,size=size.tiny,title="sell label",text="Sell",textcolor=white)
我需要如何在其中添加 Candle open 值。如果我像下面这样更改,我会收到错误,请您帮忙
plotshape(long_final, style=shape.labelup, location=location.belowbar, color=green,size=size.tiny,title="buy label",text="Buy"+tostring(open),textcolor=white)
【问题讨论】:
标签: pine-script