How to iterate through all objects in another chart ? - page 2

 
Perhaps it is still worth updating the MQL4 documentation. It wouldn't take a lot of effort.
 

Does this not work?

long id=ChartNext(ChartID());
 string txt="";
 for(int i=0;i<ObjectsTotal(id,0);i++)
  txt=txt+ObjectName(id,i)+"\n";
  
 Comment(txt);