Download MetaTrader 5
To add comments, please log in or register
Do you keep a blog? Place a link to MQL5.community there and make money!
HarriMQL5
285
HarriMQL5 2014.09.05 07:07 

Hello

Is there a way to label an indicator line (ex. a Moving Average) in the same way that graphical objects placed on a chart can be labelled? What I want to do is detect if an object/indicator with a specific label exists on the chart and read its value programmatically. I can already do this with objects. Id like to do it also with indicators placed on main chart window.

Any ideas? Thanks

qjol
3243
qjol 2014.09.05 07:35  
HarriMQL5
285
HarriMQL5 2014.09.05 07:40  
qjol:
iCustom
No. You've misunderstood my question.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.09.05 08:20  
Just add some codes in the indicator. It can be done and many have done it.
Keith Watford
Moderator
7892
Keith Watford 2014.09.05 12:18  
qjol:
iCustom

HarriMQL4:
No. You've misunderstood my question.


I think that gjol gave you the exact answer, buffers are labelled and you can access those buffers with iCustom.
whroeder1
13602
whroeder1 2014.09.05 13:39  
HarriMQL4: 

Is there a way to label an indicator line (ex. a Moving Average) in the same way that graphical objects placed on a chart can be labelled?

What I want to do is detect if an object/indicator with a specific label exists on the chart and read its value programmatically.

  1. Yes, have the indicator label its buffers. 
  2. A object is not a buffer. A buffer is not an object. You use iCustom for buffers.
  3. You need to make up your mind if you are reading an indicator's buffer, or want to read values from objects.
/
To add comments, please log in or register