Problem With Read Object Description
-
hi, i have a currency power indicator but it isnt any buffer , i want read currency power number from indicator objects but EA not working . what is problem?
any such thing is possible?
i want read gold color number . this object have name and description.

i write this EA .

i tested this value text but not working...


-
First make sure that you can really get the value, let's say in Comment block. If yes, then maybe the problem is that it is a string value, it is a text, which also contains "." and this probably makes it impossible to compare it with a numeric value. Comparing it with another text will not work for sure. But since there is no direct way to convert it to numeric, I will suggest plain MQL4 code. Something like this:

I used these functions:
https://www.mql5.com/en/docs/objects/objectgetstring
https://www.mql5.com/en/docs/convert/stringtodoubleThis is the code:
StringToDouble(ObjectGetString(0, "object_name", OBJPROP_TEXT)) > 5.0This is obviously the second Condition block, but the normal one can also be used.
I didn't checked the code! I only assume that it will work, but I could be wrong.
-
select atttribute set 1 (numberic)