Depends on how you want to select that object - by name or by type. If it's by type, then something like this: https://fxdreema.com/shared/NoypePCLd
There is a little problem here, if you set "Text color" of block 3 to "No change", it actually changes it's code to None. I'm not sure when this bug appeared, because I think it worked when I was building this block, but in the new MT4 color constants are now different so I must fix them anyway. Better set the color to something. And notice that there are some labels generated by the EA itself.
By name... it seems that I didn't created a block to select an object by name 🙂 Here is what I can suggest now - MQL code:
string label_name="mylabel";
string label_text="New Text";
if(ObjectFind(0,label_name)==0)
{
ObjectSetString(0,label_name,(ENUM_OBJECT_PROPERTY_STRING)OBJPROP_TEXT,label_text);
ChartRedraw(0);
}
The (ENUM_OBJECT_PROPERTY_STRING) is not mandatory, but I found that sometimes it reports weird error message if it's not there.