Adding trend lines

It is possible to add trend lines to the chart with the help of the TrendLines collection.

For this, it is necessary to create a TrendLine object, specifying the initial bar number, the initial point price, the final bar number and the final point price. The isRay flag could also be set to convert a trend line into a half-line.

After creating an object, it should be just added to the TrendLines collection.