'text'=series[string] 到 const 字符串
'text'=series[string] to const string
我试图列出连续的看涨或看跌蜡烛的数量,为此我使用 plotshape 并保留一个计数器来计算它们,但是我在写入值时遇到了问题
c = 1
if bull and bull[1]
c := c + 1
plotshape(bull, style=shape.triangledown, location=location.abovebar, color=color.green, text = tostring(c))
如何将 'text'=series[string]
转换为常量字符串。
我找到了函数 label.new(...)
,但我正在寻找可以覆盖整个序列的东西,而标签只出现在蜡烛图的最后一部分
你可以用 label.new()
来做,试试这个方法:
if bull
label.new(bar_index, high, text=tostring(c), style=label.style_label_down)
我试图列出连续的看涨或看跌蜡烛的数量,为此我使用 plotshape 并保留一个计数器来计算它们,但是我在写入值时遇到了问题
c = 1
if bull and bull[1]
c := c + 1
plotshape(bull, style=shape.triangledown, location=location.abovebar, color=color.green, text = tostring(c))
如何将 'text'=series[string]
转换为常量字符串。
我找到了函数 label.new(...)
,但我正在寻找可以覆盖整个序列的东西,而标签只出现在蜡烛图的最后一部分
你可以用 label.new()
来做,试试这个方法:
if bull
label.new(bar_index, high, text=tostring(c), style=label.style_label_down)