Share an indicator with every CAM trader: open source or protected, with pictures, updates and libraries.
There is no approval step: the script is in the community list as soon as you publish it.
Each protected copy is marked for the person who runs it, so a copy that is passed around can be traced. Nothing that runs on someone else's computer can be made perfectly secret: protection keeps your code out of sight and makes sharing risky, it is not a vault.
Saving does not change what people run. Press Publish… again to publish the newest version. The What is new text is sent as a notification to everyone who uses the script.
Unpublish removes the script from the community list. People who already use it keep it on their charts, and you can publish it again later. Deleting a script from My scripts removes it for you.
A library holds functions for other scripts to use. It starts with library("MathBox") and its functions are marked export. Libraries are always open source. Anyone can then write:
library("MathBox")
export
import yourname/MathBox/1 as mb plot(mb.twice(close))
yourname is your username, MathBox the library name and 1 the published version. A script that imports a library nobody published on CAM stops with Library not on CAM yet. A library can also export types, enums and methods. Reach them through the alias:
yourname
MathBox
1
import yourname/Shapes/1 as sh sh.Point p = sh.Point.new(3.0, 4.0) plot(p.len())
Mark them export like functions (export type Point, export enum Mode, export method len(Point this)). Types and enums that are not exported stay private to the library.
export type Point
export enum Mode
export method len(Point this)