trendline break,using icustom;

 
Please can anyone help with this idea.I will like to get a particular value(price) at a particular bar say bar[1],such that the price at which if price hit will result in treand line break occur can be returned using iCustom(...........).your suggestion will highly be valued thanks
 

Take a look at ObjectGetValueByShift if you already know the bar.
Alternatively, you can form the line equation and find out price break based on time value. Line slope can be found by (y2-y1)/(x2-x1) where y1 and y2 are prices and x1 and x2 are times.

Good luck

Reason: