Download MetaTrader 5

Why does ObjectDescription only require one parameter?

To add comments, please log in or register
1mathboy1
118
1mathboy1  
ObjectDescription takes one input-the name of an object. What if I have multiple objects, each on different charts, with the same name? How do I distinguish them?
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
Same name but distinguishable. Example: obj1, obj2 and so on.
Keith Watford
Moderator
10614
Keith Watford  
ObjectDescription will return the description text from the chart that the expert is attached to
Alain Verleyen
Moderator
33491
Alain Verleyen  
1mathboy1:
ObjectDescription takes one input-the name of an object. What if I have multiple objects, each on different charts, with the same name? How do I distinguish them?
string description=ObjectGetString(chartID,objname,OBJ_TEXT);
1mathboy1
118
1mathboy1  
angevoyageur:

Thanks! didn't know that function existed haha
To add comments, please log in or register