Paintbar studies with candlesticks

Questions about MultiCharts and user contributed studies.
juliaj
Posts: 4
Joined: 26 Oct 2008

Paintbar studies with candlesticks

Postby juliaj » 07 Dec 2008

Are we able to use paintbar studies with candlesticks?

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 07 Dec 2008

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.

juliaj
Posts: 4
Joined: 26 Oct 2008

Postby juliaj » 08 Dec 2008

Thanks for taking the time to answer. I'm curious as to why you would say their not "designed" for candles.

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 09 Dec 2008

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.

juliaj
Posts: 4
Joined: 26 Oct 2008

Postby juliaj » 09 Dec 2008

Thanks for your reply. Can they be painted in Multicharts?

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 10 Dec 2008

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;
Attachments
Candlesticks painted.png
(37.4 KiB) Downloaded 407 times

juliaj
Posts: 4
Joined: 26 Oct 2008

Postby juliaj » 11 Dec 2008

Thank you Steven. My TS paintbar studies do not currently work so I will dig into to see why. Thanks again for your time.


Return to “MultiCharts”