I'm trying to draw long and short positions like the ones on the image automatically using pinescript.