I dont actually know how to draw the lines in support and resitance level , but if you have that bit sorted , it only needs to redraw itself constantly if it changes , like on every tick select line and change it to the correct level , so it allways follows 🙂