How to draw trendline object to indicator window?

Created at 16 Jun 2023, 16:13
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BE

BenjaminR

Joined 12.06.2019

How to draw trendline object to indicator window?
16 Jun 2023, 16:13


Hi Everyone,

I would like to draw 2 different trendlines to the chart.

First goes to Main Chart.

And the second goes to indicator window but I do not know how.

Here is an example (RSI divergence):

 

Red trendline made by Sample indicator by the following code:

Chart.DrawTrendLine("TrendLine1",time1, price1, time2, price2,Color.Red);

But I do not know how to draw the pink trendline to indicator window.

Thank You


@BenjaminR
Replies

firemyst
16 Jun 2023, 19:57

IndicatorArea.DrawTrendLine()


@firemyst