本文へ移動
AlertaChartAlertaScript / docs
AlertaScript / 構文と型
このページの内容仕組み実践コード例

AlertaScript / ドキュメント

構文と型

宣言と引数を明確にする。

仕組み

= は宣言、:= は再代入です。int、float、bool、string、color は異なる型を表します。

実践

na で初期化する場合は型を明示します。シグネチャに合わせ、input.int など型付き入力を使います。

コード例

AlertaScript
indicator("Typed inputs", overlay=true)int length = input.int(20, "Length", minval=1)float source = closebool rising = close > openplot(ta.ema(source, length), "EMA", color=rising ? color.green : color.red)
AlertaScript

結果が見つかりません。

名前、別名、キーワードで検索できます。