Scripting on GoCharting
Lipi is GoCharting’s own scripting language. You use it to put your own calculations on a chart.
What a script can and cannot produce
Lipi produces chart indicators. It has no order-placement surface, no strategy construct, and no way to request another symbol’s data. A script reads the chart it is running on and draws on that chart.
That is the whole scope. If you need one of those three things, Lipi is not where you will find it.
The vocabulary is small
Six names recur throughout the published community scripts: indicator, color, plot,
input, close and true. A reader who knows those six can read most of the library.
Two of them are enough for a complete script. A script declares itself with indicator() and puts a
value on the chart with plot(). Those two calls are the smallest complete script you can write:
indicator("Closing price")
plot(close)Where to start
- Why Lipi exists — where the language comes from and how it is defined.
- Write your first script — a working indicator in two lines.
- The Lipi editor — how a script is checked before it runs.
- Reading someone else’s script — working through the published library.
- What Lipi does not do — names that do not resolve, and what to write instead.