price color for a trendline

 

Hi all, I plotted an horizontal line as Object with an indicator, but I would like to change the level color, from black to white, for better viewing.

trendline

Is there an option under ObjectSet functions to do this?

Thank you!

 
No, there is not! Select a colour that has better contrast with a black background, and henceforth better contrast with the text for the quote price tag.
 

⚠️Your topic has been moved to the section: Technical Indicators

Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

 
Alberto Tortella:

Hi all, I plotted an horizontal line as Object with an indicator, but I would like to change the level color, from black to white, for better viewing.

Is there an option under ObjectSet functions to do this?

Thank you!

 ObjectSetInteger(0, obj_name, OBJPROP_COLOR, clrWhite);

Please use the reference, you don't need to ask these questions.

It's all here:

https://www.mql5.com/en/docs/objects/objectsetinteger

https://www.mql5.com/en/docs/constants/objectconstants/enum_object_property#enum_object_property_integer

The direct reference to the horizontal line shows you directly in the code snippet which ObjectSet functions are applicable for that object

https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_hline

Documentation on MQL5: Object Functions / ObjectSetInteger
Documentation on MQL5: Object Functions / ObjectSetInteger
  • www.mql5.com
The function sets the value of the corresponding object property. The object property must be of the datetime, int, color, bool ...
 
@Conor Mcnamara #:

Please use the reference, you don't need to ask these questions.

It's all here:

https://www.mql5.com/en/docs/objects/objectsetinteger

https://www.mql5.com/en/docs/constants/objectconstants/enum_object_property#enum_object_property_integer

The direct reference to the horizontal line shows you directly in the code snippet which ObjectSet functions are applicable for that object

https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_hline


Maybe I misunderstood the OP's question, but it seems that the OP wants to change the colour of the text in the "price tag" and not the colour of the horizontal line itself. And if that is the case, then that cannot be done.