swetswet

Time_Exchanges [SwetSwet]

The exchanges in different countries of the world

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?
study(title="Time_Exchanges [SwetSwet]", shorttitle="TimeE_SS")
tt1=hour 
mm=minute
mmxx=60
myy=mm / mmxx
tt=tt1+myy
muu= mm / 4
//plot (muu, color = orange, style=area, linewidth=3)
tim=time
xx1 = input(7, "Russia begin")
yy1 = input(20.8, "Russia close")
dd1=40
tmf= iff((tt>=xx1 and tt<yy1),dd1,0)
plot(tmf, color=aqua, style=area, linewidth=2, title="Rus_AC")
// russia2 7-16
xx6 = input(7, "RussiaFORTS begin")
yy6 = input(15.75, "RussiaFORTS close")
dd6=33
tmf6= iff((tt>=xx6 and tt<yy6),dd6,0)
plot(tmf6, color=blue, style=area, linewidth=1, title="RUS_FORTS")

// london
xx2 = input(9, "UK_Germ_Franc begin")
yy2 = input(17.50, "UK_Germ_Franc close")

//minxx == mm / 60
// wr== tt+minut
dd2=24
tmf2= iff((tt>=xx2 and tt<yy2),dd2,0)
plot(tmf2, color=lime, style=area, linewidth=1 , title="UK_Germ_Franc")
// China
xx3 = input(3, "China begin")
yy3 = input(9, "China close")
dd3=17
tmf3= iff((tt>=xx3 and tt<yy3),dd3,0)
plot(tmf3, color=yellow, style=area, linewidth=2, title="China")
// Japan
xx4 = input(0, "Japan begin")
yy4 = input(7, "Japan close")
dd4=10
tmf4= iff((tt>=xx4 and tt<yy4),dd4,0)
plot(tmf4, color=red, style=area, linewidth=1, title="Japan")
// USA
xx5 = input(15.5, "USA begin")
yy5 = input(22, "USA close")
dd5=50
tmf5= iff((tt>=xx5 and tt<yy5),dd5,0)
plot(tmf5, color=gray, style=line, linewidth=2, title="USA")