AlertaScript / Dokumentation
Schnellstart
Eine einstellbare EMA in fünf Zeilen.
Funktionsweise
indicator legt Titel und Platzierung fest. input.int bietet die Länge an; alerta.ta.ema berechnet den Durchschnitt von close.
In der Praxis
Ändere nach dem Start die Länge von 20 auf 50. Prüfe Symbol, Zeitrahmen und fehlende Anfangshistorie.
Codebeispiel
AlertaScript
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))