I wrote a pinescript about vertical line for each specific date using histogram.
PineScript
//@version=4
study("Plot vertical line with date", overlay=true)
plot((time == timestamp("GMT+0", 2021,11,11,0,0)) ? 100000 : na, color = color.rgb(255, 0, 0, 22), linewidth = 1, title = "Happy 11:11", style = plot.style_histogram)
plot((time == timestamp("GMT+0", 2022,1,1,0,0)) ? 100000 : na, color = color.rgb(255, 0, 0, 22), linewidth = 1, title = "Happy New Year 2022", style = plot.style_histogram)
Problem
When I set future date (1 January 2022) with plot function, the pinescript run successfully but doesn't show in the chart.
