String 如何在绘图函数中使用交替文本字符串

String 如何在绘图函数中使用交替文本字符串,string,plot,text,pine-script,String,Plot,Text,Pine Script,尝试在我的绘图功能中使用此“text=”时: plotshape(someLow,title="low", style=shape.diamond, location=location.belowbar, offset=0, text=(lowerLow ? "LL" : "HL"), color=color.green, transp=0) 。。。我得到一个错误: 第77行:无法使用参数(…,text=series[string],…)调用“plotshape” 。。。因为文本必须是“con

尝试在我的绘图功能中使用此“text=”时:

plotshape(someLow,title="low", style=shape.diamond, location=location.belowbar, offset=0, text=(lowerLow ? "LL" : "HL"), color=color.green, transp=0)
。。。我得到一个错误:

第77行:无法使用参数(…,text=series[string],…)调用“plotshape”

。。。因为文本必须是“const string”而不是“series[string]”


那么如何绘制交替文本(不重复整个绘图功能行)

您可以使用标签。新建 在地图上寻找它

试试这个:

l = label.new(bar_index, close,
     text= someLow ? "LL" : "HL")
label.delete(not lowerLow ? l: na)