ScriptingWhy Lipi exists

Why Lipi exists

Lipi is GoCharting’s own scripting language. It exists so that you can put your own calculations on a GoCharting chart.

How the language is defined

Lipi is defined by an ANTLR grammar and implemented in Go, in GoCharting’s own codebase. The grammar decides what parses. The interpreter decides what runs. Both are maintained with the platform.

What the language is for

Lipi produces chart indicators. There is no strategy construct, no order-placement surface, and no way to request another symbol’s data from inside a script.

The smallest complete script declares itself and plots one value:

indicator("Closing price")
plot(close)

What this manual describes

This manual describes the language as the interpreter defines it. Every reference entry records the version in which its name first appeared, so you can tell a recent addition from a name that has been present since the first release.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade