Download MetaTrader 5

Panel color

To add comments, please log in or register
Erman Ardianto
1141
Erman Ardianto  
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you
Anthony88
3
Anthony88  
As I know it`s not possible
Erman Ardianto
1141
Erman Ardianto  
Really? I saw some comercial panel with custom color.
Are they doing it differently?
Keith Watford
Moderator
10569
Keith Watford  
devilian1899:
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you

What is the MT4 default simple panel?

You can use a rectangle label and set the background colour

rod178
272
rod178  
devilian1899:
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you
bool ChartBackColorSet(const color clr,const long chart_ID=0)
{
//--- reset the error value
   ResetLastError();
//--- set the chart background color
   if(!ChartSetInteger(chart_ID,CHART_COLOR_BACKGROUND,clr))
     {
      //--- display the error message in Experts journal
      Print(__FUNCTION__+", Error Code = ",GetLastError());
      return(false);
     }
//--- successful execution
   return(true);
}
Erman Ardianto
1141
Erman Ardianto  
rod178:

Hello,

Thank you.
But actually it's not what I was after.

You can see the simple panel by go to "indicators" -> "examples" -> "simple panel" on your MT4
peter.MT4Web
157
peter.MT4Web  

Hi!

You can change the color in the class libraries. But your changes might be overwritten by an update. So you also have to change the filenames and the include statements. and check if there are bug-fixes with the updates und you have to include this fixes manually.

Or you change the color of each object just after you created them.

The best way is to write you own classes based on the library to do your changes, but you have to be scilled in OOP.

Erman Ardianto
1141
Erman Ardianto  
eddie:

Hi!

You can change the color in the class libraries. But your changes might be overwritten by an update. So you also have to change the filenames and the include statements. and check if there are bug-fixes with the updates und you have to include this fixes manually.

Or you change the color of each object just after you created them.

The best way is to write you own classes based on the library to do your changes, but you have to be scilled in OOP.



Hi Eddie,

Yes, thank you for the advice.
To add comments, please log in or register