Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS2713

error name has no style property prop.

#What it means

A named style (style.plot, style.line, style.marker and the others) was given a property name it does not know.

#Typical cause

  • A typo, or the British spelling colour (style properties use color).
  • A property from another kind of style.

#How to fix it

Use one of the property names listed for that style in the reference.

#Example

ChartScriptError: CS2713
//@chartscript 1
indicator("Styled close", { overlay: true })
const main = style.plot("Main line", { colour: color.orange })
plot(close, { look: main })

Fixed

ChartScriptOpen in editor
//@chartscript 1
indicator("Styled close", { overlay: true })
const main = style.plot("Main line", { color: color.orange })
plot(close, { look: main })
  • CS2722 — The style property prop does not apply to kind.
  • CS2725 — look cannot be used on kind.

The ChartScript documentation is in English for now; translations will follow.