Download MetaTrader 5
To add comments, please log in or register
Download MQL5 library codes via MetaTrader. It is convenient!
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
7886
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
28522
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