Indicators and alerts
Build your own calculations, draw them on the chart, and define conditions for alerts.
Read the guide ↗ALERTA SCRIPT
Build indicators, test strategies, and turn your ideas into chart signals with AlertaScript. Start with a few lines, then explore the language and its reference.
indicator("My first EMA", overlay=true)length = input.int(20, "Length", minval=1)average = alerta.ta.ema(close, length)plot(average, "EMA", color=color.blue, linewidth=2)plot(close, "Close", color=color.new(color.gray, 80))Build your own calculations, draw them on the chart, and define conditions for alerts.
Read the guide ↗Express entries and exits in code, then examine the strategy on historical bars.
Read the guide ↗Bring other symbols and timeframes into your analysis with supported data requests.
Read the guide ↗Work with available volume and order flow data, with each function’s data requirements explained in the reference.
Read the guide ↗AlertaScript brings code, chart visuals, and familiar technical analysis tools into one workspace. It is an independent language with supported Pine-style syntax and aliases. Consult each reference entry for its actual behavior and limitations.
Give your AI assistant the documentation links or the machine-readable reference. Ask it to use documented functions and signatures, then review the code and test the result in the editor.