FX:EURUSD   يورو / دولار أمريكى
//@version=4
study(title="Stochastic RSIx2 + Stochastic", shorttitle="1Musd", format=format.price, precision=2)

//////////////////////////////////////////Estocastico RSI 1///////////////////////////////////////////////////

smoothK = input(3, minval=1)
smoothD = input(3, minval=1)
lengthRSI = input(14, minval=1)
lengthStoch = input(14, minval=1)
src = input(close, title="RSI Source")

rsi1 = rsi(src, lengthRSI)
k = sma(stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = sma(k, smoothD)

plot(k, color=color.blue)
plot(d, color=color.red)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=color.purple, transp=95)

/////////////////////////////////////////Estocastico RSI 2///////////////////////////////////////////////////

smoothK2 = input(3, minval=1)
smoothD2 = input(3, minval=1)
lengthRSI2 = input(6, minval=1)
lengthStoch2 = input(6, minval=1)
src2 = input(close, title="RSI Source")

rsi2 = rsi(src2, lengthRSI2)
k2 = 100+sma(stoch(rsi2, rsi2, rsi2, lengthStoch2), smoothK2)
d2 = sma(k2, smoothD2)

plot(k2, color=color.blue)
plot(d2, color=color.red)
h02 = hline(180)
h12 = hline(120)
fill(h02, h12, color=color.purple, transp=95)

/////////////////////////////////////////Estocastico//////////////////////////////////////////////////////////

periodK = input(14, title="K", minval=1)
periodD = input(3, title="D", minval=1)
smoothK3 = input(3, title="Smooth", minval=1)
k3 = 200+sma(stoch(close, high, low, periodK), smoothK3)
d3 = sma(k3, periodD)
plot(k3, title="%K", color=color.blue)
plot(d3, title="%D", color=color.red)
h03 = hline(280)
h13 = hline(220)
fill(h03, h13, color=color.purple, transp=95)

//////////////////////////////////////////Regalo///////////////////////////////////////////////////////////////

crossS = k3>280 and k2>180 and k>80
crossB = k3<220 and k2<120 and k<20

bcol = crossB ? color.rgb(11, 226, 18, 74) : crossS ? color.rgb(142, 67, 167, 32) : na
bgcolor(bcol, transp=20)
إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.