Page 1 of 1

Paintbar studies with candlesticks

Posted: Dec 07 2008
by juliaj
Are we able to use paintbar studies with candlesticks?

Posted: Dec 07 2008
by brodnicki steven
I haven't tried it because they are not designed to be used on candlesticks but if you can set the candlestick colors to white(or clear), you may be able to paint them.
When using candlesticks, I usually plot a dot above or below the candlestick highs or lows instead of painting them, to indicate trend etc.

Posted: Dec 08 2008
by juliaj
Thanks for taking the time to answer. I'm curious as to why you would say their not "designed" for candles.

Posted: Dec 09 2008
by brodnicki steven
Thanks for taking the time to answer. I'm curious as to why you would say their not "designed" for candles.
* I say candlesticks aren't "designed" to be paintbars because they have a separate color scheme (format candlesticks) and they are not bars, they are candles. I'm not saying it can't be done, just that they aren't designed to be paintbars.
Candles have colors for a reason, to determine where the close is, within the range of the candle.

Posted: Dec 09 2008
by juliaj
Thanks for your reply. Can they be painted in Multicharts?

Posted: Dec 10 2008
by brodnicki steven
Thanks for your reply. Can they be painted in Multicharts?
Yes, I tried it. Simple code below.- Set candlestick default colors to white first. (format symbol, style,candlestick)

vars:avg(0);

avg = average(c,10);

if c > avg then PlotPaintBar(H,L,O,C, "C > Avg",green )
else begin
if c < avg then PlotPaintBar(H,L,O,C, "C < Avg",red );
end;

Posted: Dec 11 2008
by juliaj
Thank you Steven. My TS paintbar studies do not currently work so I will dig into to see why. Thanks again for your time.