What scripts can use
Paste a TradingView Pine script (version 3, 4 or 5). Most simple indicators run as they are.
Works: indicator() / study(), input(), input.int/float/bool/source/string, plot (line, step, histogram, columns, area, circles), hline, plotshape, plotchar, bgcolor, alertcondition, if / else, switch, for, var, :=, history like close[1], ? :, and / or / not, your own functions f(x) => ….
Functions: ta.sma ema rma wma rsi stdev highest lowest change mom crossover crossunder cross atr tr macd bb cum barssince valuewhen, math.*, color.*, color.new, nz, na.
Extras here: daily_sma(len), weekly_sma(len) and weekly_rsi(len) give the daily or weekly average, or the weekly RSI, on any timeframe (TradingView needs request.security for that).
Labels (label.new) show as small tags on the chart. Skipped: drawn lines, boxes, tables, fill() and strategy orders (the rest of the script still runs). Not supported: request.security, arrays, maps.
Alerts from alertcondition pop up on this page when a bar closes with the condition true, only while the page is open.