Making a drawed line interactive

Created at 22 Apr 2019, 04:48
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!
A.

a.fernandez.martinez

Joined 02.03.2019

Making a drawed line interactive
22 Apr 2019, 04:48


Hello,

 

Is there a way to make an object (in my case an horizontal line) which is drawn by a bot, interactive ?

I see in the API an isInteractive property but I didn't find a way to change it after using Chart.DrawHorizontalLine.

 

Thanks.


@a.fernandez.martinez
Replies

bart1
22 Apr 2019, 09:10

Hi,

var line = Chart.DrawHorizontalLine("my line", Symbol.Bid, Color.Red);
line.IsInteractive = true;

@bart1

a.fernandez.martinez
22 Apr 2019, 19:11

Thanks Bart works perfect!


@a.fernandez.martinez