title: How to draw weekly-open line on a different resolution via line.new()
body: <p>The aim is to plot a horizontal (trend-line) at weekly open price, on 1H chart. The line's x1 coordinate should start from the 1H bar where current weekly candle opened. But not sure how to get the correct bar-shift on 1H chart.</p>
  <pre><code>//@version=4
  study(&quot;Test--vX02&quot;, overlay=true)
  wOpen= security(syminfo.tickerid,&quot;W&quot;,open)         
  line1 = line.new(x1=/*confused*/, y1= wOpen, x2=/*confused*/, y2=wOpen, style=line.style_solid, color=color.green)
  </code></pre>