add trend option

In my usecase, I wanted to detect downward trend only. So, I added `trend` option. 

> If "trend" option was specified, plugin only ouput when the input data tends to up (or down).