跳至內容
AlertaChartAlertaScript / docs
AlertaScript / 快速入門
本頁內容運作方式實際應用程式範例

AlertaScript / 文件

快速入門

五行程式繪製可調整的 EMA。

運作方式

indicator 設定標題與位置;input.int 提供週期輸入;alerta.ta.ema 計算 close 的平均。

實際應用

執行後把週期由 20 改成 50。檢查商品、時間週期,以及最初幾根 K 棒的歷史不足。

程式範例

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))
AlertaScript

找不到結果。

依名稱、別名或關鍵字搜尋。