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);

...