Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4110

error Cannot link path: reason.

#What it means

The script named in a link cannot be linked. The end of the message says why: it was not found, or you cannot use it; other timeframes and markets for links are not available yet; or share.* is used in a library, which has no bars of its own and so cannot share values.

#Typical cause

  • A typo in the handle, the name or the version, or the script has not been saved yet.
  • The script is another member's and is private, protected, invite-only or paid. In this release a link reads your own scripts and open-source Community scripts only. The message is the same as for a script that does not exist.
  • A version of another member's script that its author has not published.
  • tf or market in the options of link.script.
  • A share.* call in a library(...).

#How to fix it

  • Check the path against the script's name and versions in My scripts, or on its Community page.
  • Remove tf and market: a link runs on the chart's market and timeframe.
  • Share from an indicator, not from a library.

See Who can link what.

#Example

ChartScriptError: CS4110
//@chartscript 1
const piv = link.script("@user/Pivot Levels@1", { tf: "240" })
indicator("4-hour trend")
plot(piv.trend, "Trend")

Fixed

ChartScriptOpen in editor
//@chartscript 1
const piv = link.script("@user/Pivot Levels@1")
indicator("Trend")
plot(piv.trend, "Trend")
  • CS4104 — script does not share what called 'id'. It shares list.hint
  • CS4101 — A link is declared once, at the top level, as a const: const h = link.script("@handle/Name@latest"). detail
  • CS4001 — The library path was not found.

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