iCustom issue in mt5 indicators

 
Does anybody know how to work with iCustom when the mt5 indicator only has one buffer but it plots multiple colors ?
like the braintrend indicator , it only has one buffer but it plots candles with two different colors 
 

Enter in the search field "DRAW_COLOR_LINE" and click on it until you reach a detailed description incl. examples.

From this it is easy to understand to request the buffer for the colors and if you request it you will get the color index according to the color on the chart: 0.0, 1.0., 2.0, ... (buffers can only be of type double!)

 
Carl Schreiber:

Enter in the search field "DRAW_COLOR_LINE" and click on it until you reach a detailed description incl. examples.

From this it is easy to understand to request the buffer for the colors and if you request it you will get the color index according to the color on the chart: 0.0, 1.0., 2.0, ... (buffers can only be of type double!)

thanks for your reply Carl but the indicator that i mentioned uses the DRAW_COLOR_CANDLES instead of draw_color_line and i tried the search field but couldnt find anything 

 

Check:

  1. if the indicator has a separate buffer for the color
  2. try to access it
  3. see what are its values.
 
Carl Schreiber:

Check:

  1. if the indicator has a separate buffer for the color
  2. try to access it
  3. see what are its values.

Just figured it out , thanks for the point "3.see what are its values."