Notification of the start of a trend.

Maybe someone knows an expert or a script that notifies about the beginning of a trend?
There is no trend until it is making one. You want code that knows the future.