Custom Color

 

Hi all,

I want to ask how to get the custom color for an indicator. We always use the color available e.g : Gold, Blue, Red etc.. but how to put custom color code such as "23,67,48" etc in the indicator color property?

I tried it this way

#property indicator_color1 "25,25,25"

or

#property indicator_color1 "FFFFFF"

but it's not working. It turn to be black but not the color that I put in. I tried the mql4 site but doesn't found anything that can help me.

 
ahmad.ariffin:
Hi all,

I want to ask how to get the custom color for an indicator. We always use the color available e.g : Gold, Blue, Red etc.. but how to put custom color code such as "23,67,48" etc in the indicator color property?

I tried it this way

#property indicator_color1 "25,25,25"

or

#property indicator_color1 "FFFFFF"

but it's not working. It turn to be black but not the color that I put in. I tried the mql4 site but doesn't found anything that can help me.

Try this #property indicator_color1 C'25,25,25'

 

thanks cja.. it's working.. i found somewhere in the mql4 site but don't know the correct way how to apply it..

again, thanks..

Reason: