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.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article