Versions 3 to 6Older scripts run too. v3 and v4 names like sma() and security() map to their v5 homes.
Indicators, strategies, librariesIncluding library() with export and import, nested up to four deep.
request.securityRead other symbols and timeframes from the chart's own data.
DrawingsLabels, lines, boxes, tables, linefills and polylines.
Arrays, maps and matricesThe collections real scripts lean on.
Script alertsalertcondition() conditions become alerts, with {{ticker}}, {{close}} and other placeholders filled in.
Strategy TesterPerformance summary, every trade, equity curve with drawdown, buy and hold, Sharpe and Sortino.
Script logslog.info, log.warning and log.error, newest first, with the bar each was written on.
Tables on a phoneA table too big for a small screen folds into a tab that opens it full size.
Not every part of the language is supported yet. When a script uses something we don't run, it stops with a sentence saying what, or runs and tells you what it skipped. Data the chart has no source for reads as na.