INDICATOR_LEVELCOLOR macht Probleme auf Level NULL

 

MT5 build 1745

Die Farbe der Indikator-Ebene NULL lässt sich nicht einstellen.
Erst bei einer INDICATOR_LEVELWIDTH > 1 funktioniert es.
Ist das ein Bug oder mach ich schon wieder was falsch ?

#property indicator_separate_window
#property indicator_plots 0

#define LEVELS 7

int OnInit()
{
   IndicatorSetInteger(INDICATOR_LEVELS,LEVELS); 

   IndicatorSetDouble (INDICATOR_MINIMUM,-3.1); 
   IndicatorSetDouble (INDICATOR_MAXIMUM,+3.1); 

   int levels[LEVELS]={-3,-2,-1,0,1,2,3};             
   for(int i=0; i<LEVELS; i++)
      {
         IndicatorSetDouble (INDICATOR_LEVELVALUE, i, levels[i]);
         IndicatorSetString (INDICATOR_LEVELTEXT , i, IntegerToString(levels[i]));
         //IndicatorSetInteger(INDICATOR_LEVELWIDTH, i, 2);
         IndicatorSetInteger(INDICATOR_LEVELCOLOR, i, clrRed);
      }
   return(INIT_SUCCEEDED);
}

int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double& price[])
{
   return(rates_total);
}
Dateien:
LevelColor.JPG  146 kb
 

ich tippe auf einen Bug.


Gruß Uwe

 
Uwe Goetzke:

ich tippe auf einen Bug.

Gruß Uwe

Ich denk es eigentlich auch und hab es dem ServiceDesk mitgeteilt.

Grüße Otto

Grund der Beschwerde: