Путин проводит совещание по борьбе с распространением коронавируса
Авто-репост. Читать в блоге >>>
//@version=4 study("Color Resolution", overlay=true) resolution = input(title="Resolution", type=input.resolution, defval="D") resolution_open = security(syminfo.tickerid, resolution, open, barmerge.gaps_off, barmerge.lookahead_on) resolution_close = security(syminfo.tickerid, resolution, close, barmerge.gaps_off, barmerge.lookahead_on) p_open = plot(resolution_open, color=#00000080, display=display.all, style=plot.style_stepline) p_close = plot(resolution_close, color=#00000080, display=display.all, style=plot.style_stepline) fill(p_open, p_close, resolution_close >= resolution_open ? color.green : color.red, 75)
//@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)
На 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)Синие — подтверждены.
На 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)Синие — подтверждены.
//@version=4 study("Volume Base Unit", format=format.volume) plot(volume / ohlc4, color=(close >= open ? color.green : color.red), style=plot.style_columns)
Пацаны, чё то трейдингвью не пашет. У вас как?