我试图根据Sym1中收到的输入符号创建一个标题。
//@version=4
res2 = input(type=input.resolution, defval="5", title="2nd resolution")
SYM1 = input(type=input.symbol, defval="ESCORTS", title="SYMBOL 1")
symbch1 = security(SYM1, res2, high[1], barmerge.lookahead_on)
plot(symbch1, title={{SYM1}} & "Prev Day High", style=plot.style_line, color=color.black, linewidth=1, trackprice=true)
不幸的是,标题必须是常量。