AlertaScript / 文件
Pine 相容與遷移
保留熟悉的語法。
運作方式
AlertaScript 支援廣泛 Pine 相容功能。ta.ema 與 alerta.ta.ema 計算相同,受支援寫法不產生命名警告。
實際應用
先執行原始程式,再查看實際診斷。資料供應、即時 K 棒及模擬假設需分別驗證。
程式範例
AlertaScript
indicator("EMA spellings", overlay=true)original = ta.ema(close, 20)prefixed = alerta.ta.ema(close, 20)plot(original, "TradingView-compatible")plot(prefixed, "AlertaScript", color=color.blue)