rsi
相対的強度指数。
xの上下のrmaの変化に基づいて計算されます。
rsi(x, y) → series[float]
例
plot(rsi(close, 7))
// same on pine, but less efficient
pine_rsi(x, y) =>
u = max(x - x[1], 0) // upward change
d = max(x[1] - x, 0) // downward change
rs = rma(u, y) / rma(d, y)
res = 100 - 100 / (1 + rs)
res
plot(pine_rsi(close, 7))
戻り
RSI(相対力指数)
引数
x (series)
y (integer, series)
備考
xが系列でyが整数の場合、xは元の系列でyは期間です。x及びyが級数である場合、x及びyは、上向きおよび下向きの変化について2つの計算されたMAとみなされる。