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 ashttp://,www.example.comwithout the scheme,javascript:ordata:. - An IP address (
https://203.0.113.7),localhostor a local name such ashttps://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
//@chartscript 1
indicator("Range ratio", { website: "http://example.com" })
plot((high - low) / ta.sma(high - low, 14))Fixed
//@chartscript 1
indicator("Range ratio", { website: "https://example.com/range-ratio" })
plot((high - low) / ta.sma(high - low, 14))#Related
- CS2008 — Expected expected but got got.