alert added.
only the last "lenght" value of the drawing is repaint. There is no repaint on buy-sell signals. Single candle errors may occur if you only select "close" or a different variable as the source. To prevent this, you can make "open" the source part. in this case you will never get a false signal.