Download MetaTrader 5

How to change colors of bar and candle in chart object

To add comments, please log in or register
stitchtrader
136
stitchtrader  
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
7056
Alexander Piechotta  

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
136
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)?

Alain Verleyen
Moderator
32828
Alain Verleyen  
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
136
stitchtrader  
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
32828
Alain Verleyen  
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