Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS3006

error website must be the https:// address of a public website: a domain name (no IP address, localhost, user name, password or port), at most max characters, using only basic Latin letters, digits and symbols with no spaces (write an international domain in its xn-- form).

#What it means

website on indicator or library names your website: a link with its domain shows beside the script's name in its settings and in the Community. To keep that link safe for everyone who clicks it, only the plain https:// address of a public website is accepted.

#Typical cause

  • An address that does not start with https://, such as http://, www.example.com without the scheme, javascript: or data:.
  • An IP address (https://203.0.113.7), localhost or a local name such as https://nas.local.
  • A user name or password (https://me:[email protected]) or a port (https://example.com:8443).
  • Spaces, quotes, accented or other non-Latin letters. An international domain must be written in its xn-- form.
  • More than 200 characters.

#How to fix it

Write the full https:// address of your site, for example website: "https://example.com/my-indicator", or leave website out. For a domain with accented or non-Latin letters, use its xn-- form (your domain registrar shows it). See Your website link.

#Example

ChartScriptError: CS3006
//@chartscript 1
indicator("Range ratio", { website: "http://example.com" })
plot((high - low) / ta.sma(high - low, 14))

Fixed

ChartScriptOpen in editor
//@chartscript 1
indicator("Range ratio", { website: "https://example.com/range-ratio" })
plot((high - low) / ta.sma(high - low, 14))
  • CS2008 — Expected expected but got got.

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