Pine Script Pinescript Short Position Not Closing Stack Overflow

Pine Script Pinescript Short Position Not Closing Stack Overflow