Automated trendline drawing indicator

 

In the compilatopn of my system I need a good trendline drawing indicator - does such exisT - if so can someone direct me please.

thank you