ozgurhan

RSI 240 ve 50 değeri

BINANCE:ADAUSD   Cardano
Merhabalar aşağıdaki pine script kodu rsi indikaörü 240 değerine ayarlanarak 50 değerini yukarı geçmesi ve 50 değerini aşağı kesmesi durumlarında alarm verecek şekilde ekleme yapılarak yazılmıştır.
Özellikle 1 saatlik grafiklerde 50 değerini yukarı kesmesi ve 50 değerini aşağı kesmesi durumlarında alış ve satış gelmesi muhtemeldir.

//@version=4
study(title="RSI 240", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(240, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=#7E57C2)
band1 = hline(70, "Upper Band", color=#787B86)
bandm = hline(50, "Middle Band", color=color.new(#787B86, 50))
band0 = hline(30, "Lower Band", color=#787B86)
fill(band1, band0, color=color.rgb(126, 87, 194, 90), title="Background")

alertcondition(rsi>50, title="RSI 50 'den büyük", message="RSI 50 'den büyük")
alertcondition(rsi<50, title="RSI 50 'den küçük", message="RSI 50 'den küçük")
alertcondition(rsi==50, title="RSI 50'ye eşit", message="RSI 50'ye eşit")

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.