T011
duplicate display title
Severity Warning
Two declarations show the same title to the user. Plot, fill, pane, window and alert titles must be unique across the script, because they label the legend, the style dialog and alert notifications. Input titles only need to be unique within their tab, section or group.
Give each element a distinct title. The script still runs, but the two entries cannot be told apart in the UI.
Failing example
script "EMA ribbon"
data chart = subscribe(data.ohlcv)
plot fast = plot.line(title: "EMA", color: color.cyan)
plot slow = plot.line(title: "EMA", color: color.violet)
on chart.close {
fast.plot(ta.ema(chart.close, 21))
slow.plot(ta.ema(chart.close, 55))
}Fixed example
script "EMA ribbon"
data chart = subscribe(data.ohlcv)
plot fast = plot.line(title: "EMA 21", color: color.cyan)
plot slow = plot.line(title: "EMA 55", color: color.violet)
on chart.close {
fast.plot(ta.ema(chart.close, 21))
slow.plot(ta.ema(chart.close, 55))
}