Auto trade on cross of trendline

Hello,
Is it possible to open a trade on the cross of a trendline ?
Thanks