how to do Chart.DrawRay ?

Created at 11 Aug 2019, 16:02
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!
VI

Vitali Gajdabrus

Joined 20.08.2015

how to do Chart.DrawRay ?
11 Aug 2019, 16:02


how to do Chart.DrawRay ?


@Vitali Gajdabrus
Replies

PanagiotisCharalampous
12 Aug 2019, 09:41

Hi Vitaly,

You can draw a trendline and extend it to infinity. See below

            var trendLine = Chart.DrawTrendLine("TrendLine", dateTime1, y1, dateTime2, y2, Color.Red);
            trendLine.ExtendToInfinity = true;

Best Regards,

Panagiotis


@PanagiotisCharalampous

Vitali Gajdabrus
12 Aug 2019, 09:44

RE:

Panagiotis Charalampous said:

thank...


@Vitali Gajdabrus