CS2720
error The id id is used twice (what).
#What it means
Ids of tabs, sections, rows, named styles and variants must be unique within their kind. This id is used twice; the message says for what.
#Typical cause
- A section or tab copied and pasted without changing its id.
#How to fix it
Give each one its own id.
#Example
//@chartscript 1
indicator("Sections")
settings.section("main", "Main")
const len = input.int(14, "Length")
settings.section("main", "Colours")
const col = input.color(color.blue, "Line")
plot(ta.sma(close, len), { color: col })Fixed
//@chartscript 1
indicator("Sections")
settings.section("main", "Main")
const len = input.int(14, "Length")
settings.section("colours", "Colours")
const col = input.color(color.blue, "Line")
plot(ta.sma(close, len), { color: col })