Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4104

error script does not share what called 'id'. It shares list.hint

#What it means

The script reads a share the linked script does not have. The message lists what it does share, by kind, and suggests the closest name. For a handle made with input.script the list is what you wrote in needs: such a handle offers exactly those reads. For a link.script handle the list is what the version named in the path shares.

#Typical cause

  • A typo in the share id.
  • The right id read as the wrong kind: a series is h.<id>, a level set is h.levels.<id>, an event set is h.events.<id>.
  • The version the path names does not share that id.
  • With input.script: the id is not listed in needs, or the default script does not share what needs asks, or shares it as another type.

#How to fix it

Use one of the ids in the message, read it in the form for its kind, or add the id to needs. See Linking scripts.

#Example

ChartScriptError: CS4104
//@chartscript 1
indicator("Trend of a picked script")
const src = input.script("Trend source", { defval: "@user/Pivot Levels@1", needs: { series: ["trend"] } })
plot(src.trnd, "Trend")

Fixed

ChartScriptOpen in editor
//@chartscript 1
indicator("Trend of a picked script")
const src = input.script("Trend source", { defval: "@user/Pivot Levels@1", needs: { series: ["trend"] } })
plot(src.trend, "Trend")
  • CS4110 — Cannot link path: reason.
  • CS4116 — 'id' cannot be a share id: reason.
  • CS4111 — The share id 'id' is already used for kind; one id has one kind.

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