Hi, I want to program an indicator just like the candlesticks style in main chart. So, how to use
ColorCandleBull() to define the color of a candlestick?
add: can find the mt5's *.mq5 of candlesticks indicator?
- 2009.11.23
- Андрей
- www.mql5.com
alexvd:
Look at custom indicator ColorCandlesDaily in standard delivery. It might be helpfull.
thanks.
In mq5's doc, it says
"
ColorCandleBull (Set Method)
Sets new value for "ColorBarBull" property.
bool ColorCandleBull(
color new_color // new color for bull candle body
)
Parameters
new_color
[in] New color of the bull candle body.
Returned value
true if successful, false if color hasn't changed.
"
but in the MetaEditor, "ColorCandleBull" does not change color, it seems this function don't exist?
Hi, I want to program an indicator just like the candlesticks style in main chart. So, how to use
ColorCandleBull() to define the color of a candlestick?
Hi itibet,
Beside what Alexvd point at, here's several sample of candles with color thing :
1. https://www.mql5.com/en/docs/customind/indicators_examples/draw_candles
2. https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_candles
3. Heikin Ashi in MetaEditor is probably what you need to get started. ;)
Have fun :)
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I want to program an indicator just like the candlesticks style in main chart. So, how to use
ColorCandleBull() to define the color of a candlestick?