A stop is invalid when it's at the wrong side of the price. I think this can happen in your script due to the "Stop = Low[1] - (2*PIP)".