Dunghm: Trend line implement