Блог им. analizator

COVID19 HISTOGRAM

На TradingView нужно открыть COVID19:CONFIRMED, скрыть текущий график и применить скрипт.

//@version=4
study("COVID19 HISTOGRAM", overlay=true)
confirmed_prev = security("COVID19:CONFIRMED", "D", close[1])
confirmed = security("COVID19:CONFIRMED", "D", close)
deaths_prev = security("COVID19:DEATHS", "D", close[1])
deaths = security("COVID19:DEATHS", "D", close)
recovered_prev = security("COVID19:RECOVERED", "D", close[1])
recovered = security("COVID19:RECOVERED", "D", close)
c = confirmed_prev ? confirmed - confirmed_prev : confirmed
r = recovered_prev ? recovered - recovered_prev : recovered
d = deaths_prev ? deaths - deaths_prev : deaths
plot(c, color=color.blue, style=plot.style_columns)
plot(r, color=color.green, style=plot.style_columns)
plot(d, color=color.red, style=plot.style_columns)
Синие — подтверждены.
Зелёные — вылечены.
Красные — умерли.
COVID19 HISTOGRAM


★4

теги блога Гусев Владимир Петрович

....все тэги



UPDONW
Новый дизайн