WealthScript is the language you write your own indicators and strategies in. You write it in the Code Editor, which lives in the main menu under Research and Analysis Tools. The editor compiles as you go, flags an error on the line that caused it, and applies the result to your charts straight away.
A script runs once per bar. It reads that bar, decides something, and draws or trades. A useful script can be four lines:
[PlotStyle(1, Dots, 5)]
let buyDot = close > close[1] and close[1] > close[2]
if buyDot then
plot1(low, "Buy Signal", Green)
endThe attribute on the first line says how plot slot 1 is drawn: dots, size 5. The word let names a value for the current bar. Brackets read earlier bars, so close[1] is the previous bar's close. And plot1 draws into slot 1, where the name in quotes is what the chart legend shows.
Two things are worth knowing before you write more. The language is case insensitive, so Close and close are the same word. And every word the language knows, every error the compiler can raise and the full syntax live in the reference, which is generated from the language release, so it never drifts from what the compiler accepts.
Open it here: WealthScript Reference
When the editor shows an error it carries a code. View details next to the message opens that code in the reference, with what it means and what to write instead.