Please, PB to change font size

 

Hi,

Please, could you help me ?


I can't change color, font size and font name label of my Hline by this way :


ObjectCreate("Plus Bas Jour",OBJ_HLINE,0,0,iLow(NULL,PERIOD_D1,0));

ObjectSetText("Plus Bas Jour","Plus Bas Jour",8,"Arial",indicator_color4);


Is it the good function ?

 
HLine and Label are 2 different objects and can't have the same name ---> ("Plus Bas Jour")
 
Thanks for your answer but changing name doesn't solve my problem.
 
qjol:
HLine and Label are 2 different objects and can't have the same name ---> ("Plus Bas Jour")

The OP is not creating a label object, he/she is adding the text that will show when the cursor is placed on the line.
 
ObjectCreate("Plus Bas Jour",OBJ_HLINE,0,0,iLow(NULL,PERIOD_D1,0));

ObjectSetText("Plus Bas Jour","Plus Bas Jour",8,"Arial",indicator_color4);
You actually don't create enough object properties. You need to learn more about object creation.
 
can you please attach the image to show exactly what you are trying to accomplish
[Deleted]  

He is asking how to change the font of the object description for a horizontal line.

And the answer is: You can't change it.

 

Yes, i wanted to increase font label description of a Hline.

Thanks a lot for all your answers, i hope one day i'll be able to help you as you do.

Have a good day and sorry for my english, i'm french.

 
06710671f:

Yes, i wanted to increase font label description of a Hline.

Thanks a lot for all your answers, i hope one day i'll be able to help you as you do.

Have a good day and sorry for my english, i'm french.

You can add a description to an HLine, but you can't change his font, color and size.

What you can do is to use 2 objects, one HLine and one Label, and associate this label with your HLine. The font, color and size of a label can be changed.

 

Thanks a lot, it woks.


Bye.