Chart.FindAllObjects Not working since update

Created at 29 Jul 2022, 08:30
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!
K1

K100

Joined 04.11.2018

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;            
           
        }

 


@K100
Replies

JosephTradingbot
31 Jul 2022, 10:25

++

same problem in cTrader 4.2.16


@JosephTradingbot

sauliu5
10 Aug 2022, 18:34

Any updates on this problem? V4.2.19, Chart.FindAllObjects is still not working, and it breaks many things apart.


@sauliu5

PanagiotisCharalampous
11 Aug 2022, 09:56

Hi sauliu5,

A fix will be released soon.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous