Download MetaTrader 5

Label indicator like an object?

To add comments, please log in or register
HarriMQL5
349
HarriMQL5  

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  
HarriMQL5
349
HarriMQL5  
qjol:
iCustom
No. You've misunderstood my question.
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
Just add some codes in the indicator. It can be done and many have done it.
Keith Watford
Moderator
10637
Keith Watford  
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
15719
whroeder1  
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