Cbot access the trendlines drawn on the chart

Created at 30 Aug 2024, 19:56
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!
KE

keerthankumarkateel

Joined 27.05.2024

Cbot access the trendlines drawn on the chart
30 Aug 2024, 19:56


Hi All,

 

Im trying to write a cbot, where im drawing the chart objects (like trendline) mannually on the chart, i want the algorithm to read it. Im using the below logic - 

foreach (var chartObject in Chart.Objects)

{

Print(chartObject.Name);

}

 

But in the console i see the Names as - 

is there any way i could give a proper name on the chart-trendline while drawing?I dont see anywhere i can give names. or i can read comments on the algorithm?

 

thanks


@keerthankumarkateel