The finest in trend trading

could you use some kind of linear curve fitting formula? Along with some method of determining slope to guage strength of trend?