candlestick border in an indicator

Questions about MultiCharts and user contributed studies.
lisa
Posts: 7
Joined: 14 Aug 2012
Been thanked: 1 time

candlestick border in an indicator

Postby lisa » 14 Aug 2012

I managed to construct a candle stick chart as an indicator
however as far as I understood it is not possible to address the candlestick border.
would be nice to make the 3rd chart complete.

example: divide symbol 1 by symbol 2, like gold divided by eurusd (close/close open/open etc) in an indicator giving the 3rd TA chart in candlesticks of gold price in euro


Lisa
Attachments
gold in euro.jpg
(234.01 KiB) Downloaded 694 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: candlestick border in an indicator

Postby TJ » 14 Aug 2012

I managed to construct a candle stick chart as an indicator
however as far as I understood it is not possible to address the candlestick border.
would be nice to make the 3rd chart complete.

example: divide symbol 1 by symbol 2, like gold divided by eurusd (close/close open/open etc) in an indicator giving the 3rd TA chart in candlesticks of gold price in euro


Lisa
There is a built-in indicator called Spread-Diff.
You can easily modify it to meet your need.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: candlestick border in an indicator

Postby TJ » 14 Aug 2012


lisa
Posts: 7
Joined: 14 Aug 2012
Been thanked: 1 time

Re: candlestick border in an indicator

Postby lisa » 15 Aug 2012

thank you for your input TJ,
I constructed about the same code, as a ratio instead of a difference.
as you can see on the bottom it also produces a candle chart.
("my" chart #3, "yours" #4)

However, I want a candlestick with black border like the other 2 top charts.
As far as I know this is not possible - yet?- in MC.

this was my code:
******

Code: Select all

inputs:
mult1(10), mult2(10); //eg GLD is 1/10 of gold-> mult=10

vars:
Hr(0),Lr(0), Opr(0), Cr(0), MA(0);

Hr = mult1*High data1 /mult2* High data2;
Lr = mult1*Low data1 /mult2* Low data2;
Opr = mult1*Open data1 /mult2* Open data2;
Cr = mult1*Close data1 /mult2* Close data2;

if Opr<Cr then SetPlotColor(3,Green)
else SetPlotColor(4,Red);
PlotPaintBar( Hr,Lr,Opr,Cr," 1/2 "+GetSymbolName);
********
BTW, you last line has a little glitch: spread.0 (->spread.o)
Attachments
ratio 2 symbols pic2.jpg
(158.25 KiB) Downloaded 688 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: candlestick border in an indicator

Postby TJ » 15 Aug 2012

...BTW, you last line has a little glitch: spread.0 (->spread.o)
Thanks for the heads up. Corrected now.

User avatar
Roman MultiCharts
Posts: 50
Joined: 28 Nov 2011
Has thanked: 21 times
Been thanked: 67 times

Re: candlestick border in an indicator

Postby Roman MultiCharts » 15 Aug 2012

Hello lisa,

Please find the paintbar border sample configuration attached.
Attachments
paintbar and border.zip
studies + workspace + screenshot
(34.1 KiB) Downloaded 165 times

lisa
Posts: 7
Joined: 14 Aug 2012
Been thanked: 1 time

Re: candlestick border in an indicator

Postby lisa » 15 Aug 2012

hi Roman,
your picture is indeed what I am looking for.
However, I cannot get the same picture.
either the bars are all black or the candles have no border.
Is their a special order or format to achieve this?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: candlestick border in an indicator

Postby Andrew MultiCharts » 16 Aug 2012

hi Roman,
your picture is indeed what I am looking for.
However, I cannot get the same picture.
either the bars are all black or the candles have no border.
Is their a special order or format to achieve this?
Hello Lisa,

Please make a right click on the chart -> Format Indicators... -> Select "Paintbar" -> Format -> Properties -> Subchart: Subchart # 2

lisa
Posts: 7
Joined: 14 Aug 2012
Been thanked: 1 time

Re: candlestick border in an indicator

Postby lisa » 16 Aug 2012

thank you for your effort Roman,

whatever I try I cannot get it right.
either I have black candles or I get the picture I included:
"border is in effect" as the wicks look like a double black line
(thick black line with a green or red wick in the middle?)
but the bodies have no border.

So I give up for now.
Maybe a point for the list of new standard features

FYI:a green body means Close>Open, not Close>close[1].
I don't expect that difference affects the outcome

thanks again
Lisa
Attachments
paintbar+border.jpg
(145.85 KiB) Downloaded 683 times


Return to “MultiCharts”