Color of indicators cannot be changed - page 2

 

Hello all,

I hope that my comment is in the right place and it is not too late.

I have tested a custom indicator with the following parameters:

1. custom indicator built in wine/linux installation. Tested with MT5 running in wine/linux environment.

Unable to change the colour of the individual line plots for the custom indicator.

2. same indicator built with wine/linux installation. File moved to a Windows 10 environment.

Was able to change the colour of the individual line plots for the custom indicator.

3. same indicator code, compiled and built in Windows 10 environment. File moved to wine/linux environment

Unable to change the colour of the individual line plots for the custom indicator.

 
Meng Zi:

Hey guys,

I have the following problem and it seem I am not the only one.

I cannot change the colors of indicators. I can change text in a text field,

but if I double click the color fields, nothing changes. No menu appears.

It is with all indicators.

What is the solution?

Thanks


I tried to reproduce this problem. It seems that this problem arises when "PlotIndexSetInteger(*)" is used.
1. There is no problem with the code below, and I can change the indicator's color after plotting it using "Colors" tab:

#property copyright ""
#property link      ""
#property version   "1.00"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_plots 1
#property indicator_color1 clrRoyalBlue

...

2. However, when I set the color using the code below, I can't change the color using "Colors" tab:

...

   SetIndexBuffer(1, RSI, INDICATOR_DATA);
   PlotIndexSetString(k, PLOT_LABEL, "RSI");
   PlotIndexSetInteger(k, PLOT_DRAW_TYPE, DRAW_LINE);
   PlotIndexSetInteger(k, PLOT_LINE_COLOR, clrRoyalBlue);
   PlotIndexSetInteger(k, PLOT_DRAW_BEGIN, iRSIPeriod);

...
 
Aindriu Mac Giolla Eoin #:
I had the same issue with macOS... I thought I would leave a reply in case anyone had the same issue...

First you need to double click on the colour you are trying to change then you need to press F4 or try ALT F4 or CTRL F4,

this will bring up the colour palette which you can choose to change the colour.

I'm running MT5 through Wine on macOS. This solution didn't work.

Tried all the F# keys, with Ctrl, Option/Alt combos.

version 5, build 4774

EDIT: link to the solution / work-around: https://www.mql5.com/en/forum/455387#comment_53621370
Unable to change colors in every indicators
Unable to change colors in every indicators
  • 2023.10.08
  • Wilfried Pelletier
  • www.mql5.com
Hi In all indicators, I'm unable to change colors that can normally be changed. I can change other parameters, but not the colors...
 
same issue for me on my macbook. can change everything but not able to change colors on all indicator or EA. i tryed all the recommendation all buttons combo. nothing works. I wish some serious developer from meta trader or Apple will solved this issue to use mac and MT. 
 
Eric Shemtov #:
same issue for me on my macbook. can change everything but not able to change colors on all indicator or EA. i tryed all the recommendation all buttons combo. nothing works. I wish some serious developer from meta trader or Apple will solved this issue to use mac and MT. 

The solution is in the link just above your post.

Forum on trading, automated trading systems and testing trading strategies

Unable to change colors in every indicators

Andre Babiak, 2024.06.07 17:31

I actually just found how to change the colors.
Double click on the color field. Then hold <command> key and press <arrow up>. This will open the color palette to choose a color.

 
Mohammad Sh #:


I tried to reproduce this problem. It seems that this problem arises when "PlotIndexSetInteger(*)" is used.
1. There is no problem with the code below, and I can change the indicator's color after plotting it using "Colors" tab:

2. However, when I set the color using the code below, I can't change the color using "Colors" tab:

Thank you