title: Trading View Pine Script : How to Left Shift indicator, without using offset?
body: <p>Trading View Pine Script : How to Left Shift indicator, without using offset?</p>
  <p>Right Shift Works fine.</p>
  <p>There is an issue with Left Shift</p>
  <pre><code>
  
  //@version=5
  indicator(&quot;right_left_shift&quot;, overlay=true)
  
  shift = close
  
  plot(shift)
  
  plot(shift[25], color=color.green) //right shift correct
  
  
  plot(shift[-25], color=color.red) //how to do left shift, without using offset?
  
  </code></pre>
  <p>Error: <strong>Index cannot be a negative value</strong></p>