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
candlestick border in an indicator
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: candlestick border in an indicator
There is a built-in indicator called Spread-Diff.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
You can easily modify it to meet your need.
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: candlestick border in an indicator
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:
******
********
BTW, you last line has a little glitch: spread.0 (->spread.o)
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
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: candlestick border in an indicator
Thanks for the heads up. Corrected now....BTW, you last line has a little glitch: spread.0 (->spread.o)
- Roman MultiCharts
- Posts: 50
- Joined: 28 Nov 2011
- Has thanked: 21 times
- Been thanked: 67 times
Re: candlestick border in an indicator
Hello lisa,
Please find the paintbar border sample configuration attached.
Please find the paintbar border sample configuration attached.
- Attachments
-
- paintbar and border.zip
- studies + workspace + screenshot
- (34.1 KiB) Downloaded 165 times
Re: candlestick border in an indicator
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?
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?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: candlestick border in an indicator
Hello Lisa,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?
Please make a right click on the chart -> Format Indicators... -> Select "Paintbar" -> Format -> Properties -> Subchart: Subchart # 2
Re: candlestick border in an indicator
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
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