⚠️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
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
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
- www.mql5.com
Please use the reference, you don't need to ask these questions.
It's all here:
https://www.mql5.com/en/docs/objects/objectsetinteger
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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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!