title: How to plot long and short positions like the ones using the drawing tool, from pinescript?
body: <p>I'm trying to draw long and short positions like the ones on the image automatically using pinescript.
  <a href="https://i.stack.imgur.com/nf20a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nf20a.png" alt="enter image description here" /></a></p>