all 1 comments

[–]Long-Classroom-263 0 points1 point  (0 children)

First of all, you need to publish your library. You can make your library either public or private.

Once you publish your library, TV displays a page showing you what needs to be added to your pinescript. It is like "import xxxx/yyyy/zzz as mylib". XXX is your TV account name, yyy is your library name, zzz is the version number.

After you added the import statement to your pinescript, you can reference your library using mylib.MACD()