Chart.FindAllObjects Not working since update
Chart.FindAllObjects Not working since update
29 Jul 2022, 08:30
Hi,
Since the update yesterday 29/07/22 to 4.2.16
I had the following code and its stopped working and am confused why.
It appears nothing is being added into the FindAllObjects.
Thanks in advance.
private double GetLine(string lineName)
{
symDigits = this.Symbol.Digits;
double stopLine = 0;
var lines = Chart.FindAllObjects<ChartHorizontalLine>();
foreach (var line in lines)
{
if (line.Comment == lineName)
{
stopLine = Math.Round(line.Y, symDigits);
}
}
return stopLine;
}
Replies
PanagiotisCharalampous
11 Aug 2022, 09:56
Hi sauliu5,
A fix will be released soon.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
JosephTradingbot
31 Jul 2022, 10:25
++
same problem in cTrader 4.2.16
@JosephTradingbot