string ObjectGetString( 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.
Thanks Fabio, I understand the term Chart Identifier was not clear to me.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?
Robert