TatianaV

TV_RSI_EMA_Stochastic

363 views
63
363 1
Все в доном, Даёт хорошие сигналы при пересечении всех линий
Remove from Favorite Scripts Add to Favorite Scripts
study(title="TV_RSI_EMA_Stochastic", shorttitle="TV_RSI_EMA_StochasticH", overlay=false)
len = input(14, minval=1, title="RSI")
len2 = input(34, minval=1, title="EMA")
src = input(title="Источник", type=source, defval=close)
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))
emaRSI = ema(rsi,len2)

plot(rsi, title="RSI", style=line, linewidth=2, color=red, transp=0)
plot(emaRSI, title="EMA", style=line, linewidth=2, color=orange, transp=0)

////Stochastik
length1 = input(14, minval=1, title="Stochastic ")
smoothK1 = input(1, minval=1, title="K") 
smoothD1 = input(3, minval=1, title="D")

k1 = sma(stoch(close, high, low, length1), smoothK1)
d1 = sma(k1, smoothD1)

plot(k1, title="Stochastic ", style=line, linewidth=2, color=blue, transp=0)
plot(d1, color=change(d1)<=0? red:green, transp=80, title="Stochastic D", style=columns, linewidth=1)

band5=hline(100, title="Hundred", linestyle=dashed, linewidth=1, color=black)
band0=hline(80, title="Entry point", linestyle=dashed, linewidth=1, color=red)
band1=hline(70, title="Entry point", linestyle=dashed, linewidth=1, color=red)
band2=hline(50, title="Middle line", linestyle=dashed, linewidth=1, color=black)
band3=hline(30, title="Entry point", linestyle=dashed, linewidth=1, color=green)
band4=hline(20, title="Entry point", linestyle=dashed, linewidth=1, color=green)
band6=hline(0, title="Zero", linestyle=dashed, linewidth=1, color=black)
fill(band0, band1, color=purple, transp=90)
fill(band3, band4, color=purple, transp=90)


Any timeframe ?
Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Send feedback Ideas Published Followers Following Private Messages Chat Sign Out