基于输入的标题

问题描述 投票:0回答:1

我试图根据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) 
pine-script trading tradingview-api
1个回答
1
投票

不幸的是,标题必须是常量。

© www.soinside.com 2019 - 2024. All rights reserved.