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 ish.levels.<id>, an event set ish.events.<id>. - The version the path names does not share that id.
- With
input.script: the id is not listed inneeds, or the default script does not share whatneedsasks, 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
//@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
//@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")