Блог им. analizator
//@version=4 study("Color Month Week Day", overlay=true) resolution = timeframe.isweekly ? "M" : timeframe.isdwm ? "W" : "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)