Alerta Icon

AlertaScript

Independent chart scripting language for AlertaChart

Back To App

Language Overview

AlertaScript Reference Manual

AlertaScript is our own scripting language layer for chart analysis and strategy development in AlertaChart. It is built and maintained by our team, runs on our runtime, and is documented as a first-class product surface. This page describes what AlertaScript is, how it executes, how compatibility is handled, and what reference support currently exists in the platform.

What Is AlertaScript

AlertaScript is an independent chart scripting environment designed for technical analysis, visual overlays, and strategy-oriented workflows. Users can write script logic that operates on chart data, produce visual outputs, and define rules that can be analyzed in a consistent runtime context.

From a product perspective, AlertaScript is not a thin wrapper around an external execution backend. The parser, runtime behavior, state handling, and chart command generation are controlled within the AlertaChart codebase.

Design Principles

The language is built around four principles: readability for script authors, stable runtime semantics, transparent documentation, and compatibility-aware growth.

Another key principle is operational safety. We prioritize bounded execution and robust runtime checks so scripts remain usable at scale.

Execution Model

AlertaScript executes in a chart-centric runtime that focuses on deterministic bar processing, reliable series behavior, and clear state transitions.

The language supports indicator-style analysis, visual output instructions, and strategy-related behaviors through documented built-ins and typed argument expectations.

Pine Compatibility

AlertaScript includes Pine-compatible surface areas where applicable, with explicit mapping and parity classification.

In short: we support compatibility as a product goal, while preserving an independent language/runtime identity. Pine compatibility is provided on a versioned basis for supported syntax and callable surfaces; it does not imply one-to-one equivalence for all functions/behaviors.

AlertaScript is an independent language and runtime. The term Pine compatibility is provided as a reference layer to help users transition with familiar function names, syntax patterns, and AI-assisted indicator workflows. It does not mean one-to-one Pine equivalence in every scenario. Because AlertaScript is a new and actively evolving system, final validation for advanced or edge cases should always rely on the latest AlertaScript reference documentation.

Reference Support

Our reference catalog is versioned and structured so script authors can quickly discover what is currently supported.

Total Entries

436

Functions

341

Variable/Decl

23

Custom + Alias

72

Category Coverage

Core12
Math25
Trend23
Momentum19
Volatility7
Volume6
Structure2
Drawing84
Strategy52
Alerts2
Request2
Table14
Array49
Map1
Matrix41
Utility53
Meta44

In-editor reference lookup remains available for exact signatures and examples. This manual page complements that by explaining the language surface in long-form narrative format.

Scope & Safety

This manual intentionally describes capabilities, behavior principles, and support scope at a high signal-to-noise level. We do not expose implementation internals that are unrelated to script authoring outcomes.

As AlertaScript evolves, this page will continue to describe the language direction and support envelope, while detailed callable references remain tied to the versioned docs inventory.

Quick Links

On the chart screen, open the top-bar ƒχ menu, then use Docs (Cmd+K) inside Script Editor for quick access to this reference surface.

Open Chart Screen (ƒχ)