To add a trendline, click in the line studies toolbox and click a bar or candle in the chart that will be the starting point of the trendline.
After that, you can click the trend line and you will see three small boxes that you can click and drag to make your trendline more accurate.