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.
tformarketin the options oflink.script.- A
share.*call in alibrary(...).
#How to fix it
- Check the path against the script's name and versions in My scripts, or on its Community page.
- Remove
tfandmarket: a link runs on the chart's market and timeframe. - Share from an indicator, not from a library.
See Who can link what.
#Example
//@chartscript 1
const piv = link.script("@user/Pivot Levels@1", { tf: "240" })
indicator("4-hour trend")
plot(piv.trend, "Trend")Fixed
//@chartscript 1
const piv = link.script("@user/Pivot Levels@1")
indicator("Trend")
plot(piv.trend, "Trend")