Adding trend lines

Modified on Fri, 04 Aug 2023 at 01:28 PM

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

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article