is possible to draw with an indicator, candles with more than one color?
Is so, any piece of sample code?
Thank you !!
Yes! Just plot two standard mono-colour histograms normally, one over the other. It would be two normal standard plots (buffers). Choose the order according to which one is always smaller so that it draws the smaller one over the larger one.
Use two styles:
And is possible do it with candles? The candles, I'm seeing that need 4 buffers of data.
Then, how can I draw 2 series or more of candles?
For color candles you can use "Draw Color Candles", but those actually need 5 buffers (Open, High, Low, Close AND Color)
This is for one series only:
#property indicator_buffers 5
#property indicator_plots 1
#property indicator_label1 "Open;High;Low;Close"
#property indicator_type1 DRAW_COLOR_CANDLES
#property indicator_color1 clrGray, clrLime, clrRed //indexes in buffer = 0, 1, 2
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
//--- Indicator buffers
For one more series, you would need to set 10 buffers and 2 plots, and set their label, type, color, etc. I'll leave that for you to work a bit heheh, but it's definitely possible
good !! I'll try
Because I'm thinking on color the candles of a chart, over the real candles
Please enable the necessary setting in your browser, otherwise you will not be able to log in.