AlertaScript / Documentation
Language guide
Understand the building blocks behind chart scripts.
How it works
AlertaScript combines familiar Pine-compatible expressions with chart series, collections and drawing objects. Learn how values evolve across bars before moving into reusable functions, arrays or multi-timeframe requests.
Put it into practice
Read syntax and series first. Then follow the sections for the data structures your script actually uses. A numeric series, an array and a drawing ID are different kinds of values, even when all three are stored in variables.