Angle trendlines, how to draw + store values in array

 

Has anyone have code for drawing angle trend lines from point to point based on figures I pull of an array?

I'm drawing arrows on a chart based on a couple of if statements, from there I want to drawn an angle trend line from arrow to arrow to arrow continously.

Any help/suggestions appreciated.

 

Have a look this function:

ObjectCreate( .. ,OBJ_TREND, ..)

Reason: