Download MetaTrader 5

Why does ObjectDescription only require one parameter?

To add comments, please log in or register
No time for trading? Subscribe to signals!
1mathboy1
118
1mathboy1 2015.02.14 04:21 
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
1401
SYED NAUFAL GADDAFI 2015.02.14 04:34  
Same name but distinguishable. Example: obj1, obj2 and so on.
Keith Watford
Moderator
9626
Keith Watford 2015.02.14 04:54  
ObjectDescription will return the description text from the chart that the expert is attached to
Alain Verleyen
Moderator
30731
Alain Verleyen 2015.02.14 15:35  
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 2015.02.14 17:40  
angevoyageur:

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