Download MetaTrader 5
To add comments, please log in or register
Do you have questions on how to turn your idea into reality? Ask them on the Forum!
franc
12
franc 2013.01.11 18:35 

Hello folks,

 

I want to be able to control line description field via MQL code.

As you know when double clicking on line in MT4 you get a message where you can fill in two fields with text - 'label' and 'description'. I can set a lable name but could not find any reference how to change description.

label: SetIndexLabel(0,"labeltext");//label 

description: ??? 

Can someone please help! 

Cheers,

Simon Gniadkowski
Moderator
17962
Simon Gniadkowski 2013.01.11 18:44  
leseuf:

Hello folks,

 

I want to be able to control line description field via MQL code.

As you know when double clicking on line in MT4 you get a message where you can fill in two fields with text - 'label' and 'description'. I can set a lable name but could not find any reference how to change description.

label: SetIndexLabel(0,"labeltext");//label 

description: ??? 

Are you talking about line type Objects or Indicator lines ? 

If you are talking about line Objects:  Please read the documentation:  ObjectSetText()

franc
12
franc 2013.01.13 18:46  

Hi Raptor,

I am a beginner in MQL. It is a line I am talking about.

I could not attach image but it is a dialogue box that normally appears after doublick on line> 'horisontal line properties'.

On common tab there is 'name' which is controlled via SetIndexLabel(0,"labeltext"), I believe.

Also 'Description' field that I have no idea how to set via coding. 

What I want code to do is draw a line that would have required description text.

I guess it is something simple but I have no idea how it is done.

Thanks,

L

Simon Gniadkowski
Moderator
17962
Simon Gniadkowski 2013.01.13 19:00  
leseuf:

Hi Raptor,

I am a beginner in MQL. It is a line I am talking about.

I could not attach image but it is a dialogue box that normally appears after doublick on line> 'horisontal line properties'.

On common tab there is 'name' which is controlled via SetIndexLabel(0,"labeltext"), I believe.

Also 'Description' field that I have no idea how to set via coding. 

What I want code to do is draw a line that would have required description text.

I guess it is something simple but I have no idea how it is done.

OK,  so you are talking about a line Object . .   so you need to read the documentation:  ObjectSetText().   <----- click this link.

"Changes the object description."
franc
12
franc 2013.01.15 22:22  

Raptor,

Thanks - your reference has answered my question!

aminlv
91
aminlv 2016.08.11 08:32  
RaptorUK:
OK,  so you are talking about a line Object . .   so you need to read the documentation:  ObjectSetText().   <----- click this link.

"Changes the object description."
thanks man worked like a charm
/
To add comments, please log in or register