Download MetaTrader 5
To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
svengralla
116
svengralla 2014.10.02 17:27 

CHART_COLOR_VOLUME - color of volumes and position opening levels


How can I set different colors for volume and opening level?


Thx, Sven

Rodrigo Malacarne
Moderator
9854
Rodrigo Malacarne 2014.10.03 15:25  
svengralla:

CHART_COLOR_VOLUME - color of volumes and position opening levels


How can I set different colors for volume and opening level?


Thx, Sven

Hello svengralla,

did you try anything so far? Please show us a little effort, so we can help you with your questions.

Regards,
Malacarne 

svengralla
116
svengralla 2014.10.03 15:54  
Malacarne:

Hello svengralla,

did you try anything so far? Please show us a little effort, so we can help you with your questions.

Regards,
Malacarne 

Hi Malcarne,

I don't even know where to look for.

Can't find something in ENUM_CHART_PROPERTY_INTEGER.

This doesnt answer the question:

//| Sets the color of volumes and market entry levels                |
//+------------------------------------------------------------------+
bool ChartVolumeColorSet(const color clr,const long chart_ID=0)
  {
//--- reset the error value
   ResetLastError();
//--- set color of volumes and market entry levels
   if(!ChartSetInteger(chart_ID,CHART_COLOR_VOLUME,clr))
     {
      //--- display the error message in Experts journal
      Print(__FUNCTION__+", Error Code = ",GetLastError());
      return(false);
     }
//--- successful execution
   return(true);
  }


And changing 'Volumes' color in the chart 'Properties' dialog also changes the color of the 'Opening level'.

Google doesnt help. Now what?!


Regards, Sven


Alain Verleyen
Moderator
30323
Alain Verleyen 2014.10.03 16:08  
svengralla:

Hi Malcarne,

I don't even know where to look for.

Can't find something in ENUM_CHART_PROPERTY_INTEGER.

This doesnt answer the question:

//| Sets the color of volumes and market entry levels                |
//+------------------------------------------------------------------+
bool ChartVolumeColorSet(const color clr,const long chart_ID=0)
  {
//--- reset the error value
   ResetLastError();
//--- set color of volumes and market entry levels
   if(!ChartSetInteger(chart_ID,CHART_COLOR_VOLUME,clr))
     {
      //--- display the error message in Experts journal
      Print(__FUNCTION__+", Error Code = ",GetLastError());
      return(false);
     }
//--- successful execution
   return(true);
  }


And changing 'Volumes' color in the chart 'Properties' dialog also changes the color of the 'Opening level'.

Google doesnt help. Now what?!


Regards, Sven


You can't.

CHART_COLOR_VOLUME

Color of volumes and position opening levels

color

svengralla
116
svengralla 2014.10.03 16:22  
angevoyageur:

You can't.

CHART_COLOR_VOLUME

Color of volumes and position opening levels

color


A clean and simple answer. Thanks.

/
To add comments, please log in or register