cat /guide/scripts
CharmScript and the Indicator Library
CharmScript is Eclipse's own scripting language for writing indicators and strategies. Scripts can be published to the Indicator Library, where anyone can browse them and add them to a chart.
CharmScript
Every signed-in account, free ones included, can write its own indicators and strategies in CharmScript (Charm for short), in an editor beside the chart.
- A script draws on the candles or in a pane of its own: plots, fills, labels, lines, boxes and tables.
- A strategy script is backtested in the Backtests panel like Eclipse's own strategies.
- A script can raise alerts.
- A script written in Pine can be converted to CharmScript with the built-in Pine converter.
A script and its backtest run in the user's own browser, on the candles the chart holds. A script's alerts are checked on Eclipse's servers, so they fire with the browser closed. Each run has time and size limits, which the documentation gives.
The CharmScript documentation has a guide to the language, its limits, examples, and a library of classic scripts converted from Pine.
The Indicator Library
The Indicator Library is where accounts publish scripts for others. Anyone can browse and search it, sorted by New, Hot or Top. A signed-in account can add a script to its chart, like it and comment on it. Each script has a page with a chart of it, a description and, for a strategy, a backtest computed by Eclipse.
A script can be published open source, where anyone can read its code, or closed source, where only its author can. A closed-source script runs on Eclipse's servers and sends the chart its drawing, never its code. Any signed-in account can add either kind to its chart; publishing closed source needs a Pro or Premium plan.
Scripts in the library are written by their authors, not by Eclipse. Scripts are not bought or sold on Eclipse.