Trend Line By Angle.
Both angle and the second anchor point's coordinates can be used to set the slope of the line.
The following script creates and moves the trend line on the chart. Special functions have been developed to create and change graphical object's properties. You can use these functions "as is" in your own applications.