Download MetaTrader 5

How to change colors of bar and candle in chart object

To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
stitchtrader
133
stitchtrader 2013.08.06 11:06 
Hi Guys

I'm now learning about creating objects.

How can I change colors of bar and candle in chart objects( OBJ_CHART ) ?
I also wanted to know how to hide OHLC values in the upper left corner.

Thanks

Alexander Piechotta
6954
Alexander Piechotta 2013.08.06 23:12  

How can I change colors of bar and candle in chart objects( OBJ_CHART ) ?

I also wanted to know how to hide OHLC values in the upper left corner.

  look here  

   https://www.mql5.com/en/docs/constants/chartconstants/enum_chart_propert  

 

 

  

stitchtrader
133
stitchtrader 2013.08.07 14:56  

Thank you Alexander!

 

CHART_SHOW_OHLC, CHART_COLOR_CHART_UP,  CHART_COLOR_CHART_DOWN (etcetera)

I think these are for main chart (non Chart object)

Is there any way to specify the color different from main chart(non Chart object)

for OBJ_CHART (Chart object)?

Alain Verleyen
Moderator
30743
Alain Verleyen 2013.08.07 16:50  
stitchtrader:

Thank you Alexander!

 

CHART_SHOW_OHLC, CHART_COLOR_CHART_UP,  CHART_COLOR_CHART_DOWN (etcetera)

I think these are for main chart (non Chart object)

Is there any way to specify the color different from main chart(non Chart object)

for OBJ_CHART (Chart object)?

Search for OBJPROP_CHART_ID.

ID of the "Chart" object (OBJ_CHART). It allows working with the properties of this object like with a normal chart using the functions described in Chart Operations, but there some exceptions.

stitchtrader
133
stitchtrader 2013.08.08 15:29  
angevoyageur:

Search for OBJPROP_CHART_ID.

Thank you so much, Alain!

It is now working.
You're a fantastic person.
All the best wishes :)

Alain Verleyen
Moderator
30743
Alain Verleyen 2013.08.08 16:12  
stitchtrader:
Thank you so much, Alain!

It is now working.
You're a fantastic person.
All the best wishes :)

You are welcome.
To add comments, please log in or register