AlertaScript / ドキュメント
最初の指標
入力と基準線を持つ RSI。
仕組み
overlay=false は RSI を別ペインに表示します。input.int が期間を指定し、hline が70と30の水準を描きます。
実践
同じ過去区間を二つの時間足で比較します。plot の明確な名前は値や通知の識別にも役立ちます。
コード例
AlertaScript
indicator("My RSI", overlay=false)length = input.int(14, "Length", minval=1)rsi = alerta.ta.rsi(close, length)plot(rsi, "RSI", color=color.blue)hline(70, "Upper")hline(30, "Lower")