Good morning everyone,
I want my code to read the text in a label on other charts in the same workspace. I read this document:
https://docs.mql4.com/objects/objectgetstring and I used this line of code:
string BiasTextEURAUD = ObjectGetString("EURAUD", "Label_Bias", OBJPROP_TEXT, 0);
I expect the code to return the text in the label called Label_Bias, but on compile I get the following warning:
implicit conversion from 'string' to 'number'
As a result the code does not work.
Can anyone please tell me what I should do differently to get the code to return the text in the label?
long chart_id, // chart identifier
string object_name, // object name
int prop_id, // property identifier
int prop_modifier=0 // property modifier, if required
You used the chart symbol but you need to use the ChartIdentified, that is a totally different thing.
Please, read better the documentaton.