Indicators: DRAW_COLOR_CANDLES

 

DRAW_COLOR_CANDLES:

The DRAW_COLOR_CANDLES style (as DRAW_CANDLES) draws candlesticks based on values of four indicator buffers, containing Open, High, Low and Close prices. In additions it allows you to specify color for each candlestick from a given set.

The color of candlesticks changes randomly every N ticks. The N parameter of indicator is made as external so that you can adjust it manually (the Inputs tab of indicator properties dialog box). Note, that initially there are 8 colors set for the plot1 graphical plotting using the #property compiler directive. Then, in the OnCalculate() function the color is chosen at random from predefined list.

See also The Drawing Styles in MQL5 article.

DRAW_COLOR_CANDLES

Author: MetaQuotes


 
How to achieve complete identity with the price chart - black border not black candles?
 
Not foreseen
 
Then it is reasonable to frame all DRAW_COLOR_CANDLES with a colour like window 0 candles and adjust only the colour of the candle body, not the whole candle as it is now.
 
threat:

Then it is reasonable to border all DRAW_COLOR_CANDLES with a colour like window 0 candles and adjust only the colour of the candle body, not the whole one as now.
Relevant! For example, I want to have an indicator that switches bars from flipper to bid or ask. To do this, I wipe out completely the standard bars (under the background colour). And I draw DRAW_COLOR_CANDLES. And, like, everything should look as if nothing happened. But the lack of a border gives away the setup.
 

What's the point of DRAW_CANDLES for candles of the same colour? To distinguish between bullish and bearish candles, you need to use DRAW_COLOR_CANDLES, which is obviously unnecessary for such a task, with a primitive colour condition. Why are DRAW_CANDLES so offended? Some kind of inconsideration.