【发布时间】:2021-05-28 08:55:54
【问题描述】:
我试图连续列出看涨或看跌蜡烛的数量,为此我使用 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] 转换为 const 字符串。
我找到了函数label.new(...),但我正在寻找整个序列中的一些东西,标签只出现在蜡烛的最后一部分
【问题讨论】:
标签: text pine-script