Pine script 如何突破这个限制?

Pine script 如何突破这个限制?,pine-script,Pine Script,这是使用label.new时出现的错误。 那么有没有办法打破这个限制呢? 我只是实现了以下目标。 以下代码可以实现目标,但有限制 label.new(bar_index, high, '1', textcolor=color.red, style=label.style_none) label.new(bar_index, high, '2\n', textcolor=color.green, style=label.style_none) label.new(bar_index, high,

这是使用label.new时出现的错误。 那么有没有办法打破这个限制呢? 我只是实现了以下目标。

以下代码可以实现目标,但有限制

label.new(bar_index, high, '1', textcolor=color.red, style=label.style_none)
label.new(bar_index, high, '2\n', textcolor=color.green, style=label.style_none)
label.new(bar_index, high, '3\n\n', textcolor=color.blue, style=label.style_none)

没有办法突破限制。您确定需要50多个标签吗?谢谢!我不确定是否需要。我只是想用不同的颜色在条顶上打印多行文字。您还有其他建议吗?以下代码可以实现目标,但有限制。label.new(bar\u index,high,'1',textcolor=color.red,style=label.style\u none)label.new(bar\u index,high,'2\n',textcolor=color.green,style=label.style\u none)label.new(bar\u index,high,'3\n\n',textcolor=color.blue,style=label.style\u none)处理当前条时您知道这些值吗?也许你可以用背景色来做这种颜色?例如,创建几个绘图
绘图(高+N点)
,然后通过填充更改背景?而文本只通过一个标签:“1\n2\n3”。我看不出更好的方法,但这不是最好的方法。