Recycling objects

 

I was wondering would I need a buffer if I was creating trend lines and deleting them when price touches for example I have 4 lines for 2 high points and 2 low points between 30 candles. if all lines were created and price touches line 3 and it deletes how can I make line 3 create a again but on the next high/low point and not on the point that it was originally created on. 

I'm new to programming and Mql4-5 language.

 
porkcushion:

I was wondering would I need a buffer if I was creating trend lines and deleting them when price touches for example I have 4 lines for 2 high points and 2 low points between 30 candles. if all lines were created and price touches line 3 and it deletes how can I make line 3 create a again but on the next high/low point and not on the point that it was originally created on. 

I'm new to programming and Mql4-5 language.

I don't know if it's me only, but I don't understand anything to your request, sorry.