Does it possible to create candlestick chart from the code??
I want to use True or False to make the chart between candlestick chart or Heikin-Ashi chart?
If I set the chart type in candlestick chart, once I switch to Heikin-Ashi which the chart will shows 2 of layer of that charts at the same time. How could I achieve it??
Candlestick chart in PowerLanuage code
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
To make candle bar:Does it possible to create candlestick chart from the code??
I want to use True or False to make the chart between candlestick chart or Heikin-Ashi chart?
If I set the chart type in candlestick chart, once I switch to Heikin-Ashi which the chart will shows 2 of layer of that charts at the same time. How could I achieve it??
plot your High, Low, Open, Close,
set your plot in the following ways:
High = bar high, weight = thin
Low = bar low, weight = thin
Open = bar high, weight = thick
Close = bar low, weight = thick
Re: Candlestick chart in PowerLanuage code
Hi, TJ
Much thanks for your teach.
I already code for candle in: PlotPaintBar( H, L, O, C, "", color );
But I don't know how to make: Open = bar high, weight = thick ??
Could you kindly list the code how to use your teaching method?
Much thanks!!
Much thanks for your teach.
I already code for candle in: PlotPaintBar( H, L, O, C, "", color );
But I don't know how to make: Open = bar high, weight = thick ??
Could you kindly list the code how to use your teaching method?
Much thanks!!
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
don't use PlotPaintBar.Hi, TJ
Much thanks for your teach.
I already code for candle in: PlotPaintBar( H, L, O, C, "", color );
But I don't know how to make: Open = bar high, weight = thick ??
Could you kindly list the code how to use your teaching method?
Much thanks!!
plot each data point individually.
Plot10( high, "H");
Plot11( low, "L");
Plot12( open, "O");
Plot13( close, "C");
Re: Candlestick chart in PowerLanuage code
Hi, TJ
Thanks again. But I have no idea about the below code:
High = bar high, weight = thin;
Low = bar low, weight = thin;
Open = bar high, weight = thick;
Close = bar low, weight = thick;
How I can make it work in MC? Sorry about my stupid...
Thanks again. But I have no idea about the below code:
High = bar high, weight = thin;
Low = bar low, weight = thin;
Open = bar high, weight = thick;
Close = bar low, weight = thick;
How I can make it work in MC? Sorry about my stupid...
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
no problem...Hi, TJ
Thanks again. But I have no idea about the below code:
High = bar high, weight = thin;
Low = bar low, weight = thin;
Open = bar high, weight = thick;
Close = bar low, weight = thick;
How I can make it work in MC? Sorry about my stupid...
after you have applied the indicator to the chart,
right click on the chart.
Select Format Indicators,
choose your indicator,
the Format Study window will pop up,
click on the Style tab,
you will see the options to manage your plot.
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
You are welcome.Hi, TJ
Achieved my wanted charts effect. Much thanks!!
Re: Candlestick chart in PowerLanuage code
Hi, TJ
I also have some questions. I knows I can adjust 'Status line' to show what data on top of chart. But I use over 6+ indicators in one chart.
And I only want to show a parts of my indictors' return value on chart. Don't need to shows all inputs & study value.
So, for the latest MultiCharts v7, does it can achieve the below effect:
1) Could I disable the 'Status line' to clear the top of chart, and code my designed 'Title' on the top of chart?
2) Some indicators I want to make the area-formed bars to list on the bottom of chart.
Example:
e1=XAverage(c,10);
e2=XAverage(c,20);
e3=e1-e2;
e4=e1>e2;
1) How to list below info onto the left top coner?
if c>c[1] AND c[1]>c[2] then
Title = Today, O,H,L,C, e3, message in "Buy trend"
2) How to plot area-formed bars in green/redon the bottom of chart
if e4 then
in Green square on the bottom of chart
else
in red square on the bottom of chart
Could you kindly list some example code for me to get more brain storm? And I can get it to use it for my other indicators. Sorry about my newbie.
Attached the example formed chart image.
I also have some questions. I knows I can adjust 'Status line' to show what data on top of chart. But I use over 6+ indicators in one chart.
And I only want to show a parts of my indictors' return value on chart. Don't need to shows all inputs & study value.
So, for the latest MultiCharts v7, does it can achieve the below effect:
1) Could I disable the 'Status line' to clear the top of chart, and code my designed 'Title' on the top of chart?
2) Some indicators I want to make the area-formed bars to list on the bottom of chart.
Example:
e1=XAverage(c,10);
e2=XAverage(c,20);
e3=e1-e2;
e4=e1>e2;
1) How to list below info onto the left top coner?
if c>c[1] AND c[1]>c[2] then
Title = Today, O,H,L,C, e3, message in "Buy trend"
2) How to plot area-formed bars in green/redon the bottom of chart
if e4 then
in Green square on the bottom of chart
else
in red square on the bottom of chart
Could you kindly list some example code for me to get more brain storm? And I can get it to use it for my other indicators. Sorry about my newbie.
Attached the example formed chart image.
- Attachments
-
- screen.jpg
- (143.73 KiB) Downloaded 888 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
Right click on the chart...Hi, TJ
I also have some questions. I knows I can adjust 'Status line' to show what data on top of chart. But I use over 6+ indicators in one chart.
And I only want to show a parts of my indictors' return value on chart. Don't need to shows all inputs & study value.
So, for the latest MultiCharts v7, does it can achieve the below effect:
1) Could I disable the 'Status line' to clear the top of chart, and code my designed 'Title' on the top of chart?
2) Some indicators I want to make the area-formed bars to list on the bottom of chart.
Example:
e1=XAverage(c,10);
e2=XAverage(c,20);
e3=e1-e2;
e4=e1>e2;
select Format Window
under the Status Line tab, you can choose various display options.
check here:1) How to list below info onto the left top coner?
if c>c[1] AND c[1]>c[2] then
Title = Today, O,H,L,C, e3, message in "Buy trend"
http://www.tradersxchange.com/viewforum ... 19f3747292
look for an indicator called "Masthead".
it should get you some ideas.
not sure what you mean.2) How to plot area-formed bars in green/redon the bottom of chart
if e4 then
in Green square on the bottom of chart
else
in red square on the bottom of chart
Could you kindly list some example code for me to get more brain storm? And I can get it to use it for my other indicators. Sorry about my newbie.
Attached the example formed chart image.
Re: Candlestick chart in PowerLanuage code
Hi, TJ
Thanks for your info. I think that I can get idea from there. Thanks a lot!
By the way, attached a chart that I highlight its' bottom bars. You can see it is plotted green or red square-area.
Also, there are 5 plotted bars on the bottom of chart which base on my 5 indicators' results to plot it.
Does MulitCharts can plot to this similiar bars on the bottom position of chart? How & What MC code can achieve it?
Thanks for your info. I think that I can get idea from there. Thanks a lot!
By the way, attached a chart that I highlight its' bottom bars. You can see it is plotted green or red square-area.
Also, there are 5 plotted bars on the bottom of chart which base on my 5 indicators' results to plot it.
Does MulitCharts can plot to this similiar bars on the bottom position of chart? How & What MC code can achieve it?
- Attachments
-
- screen-2.jpg
- (50.51 KiB) Downloaded 881 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
There is no special coding required for those displays.Hi, TJ
Thanks for your info. I think that I can get idea from there. Thanks a lot!
By the way, attached a chart that I highlight its' bottom bars. You can see it is plotted green or red square-area.
Also, there are 5 plotted bars on the bottom of chart which base on my 5 indicators' results to plot it.
Does MulitCharts can plot to this similiar bars on the bottom position of chart? How & What MC code can achieve it?
You just have to experiment with the plot style to come up the desired effect.
What you are looking at there could be 5 straight line plots, each set to a thick weight.
Re: Candlestick chart in PowerLanuage code
Hi, TJ
OK, then I only focus in PLOT command to plot the bottom bar.
But if use 'plot' command, e.g. is used on DJI:
The straight bar is located on the bottom of chart. But the main chart will shrink to so short candle bars & lines.
If I set to Plot3(8000,"",macolor), then once I drag back to its past, and the Plot3 will be raised up onto the middle of chart. Also, it cannot be used for others due to set in '8000'.
So, does MultiCharts have not any method which can maintain the straight bar onto the bottom position??
OK, then I only focus in PLOT command to plot the bottom bar.
But if use 'plot' command, e.g. is used on DJI:
Code: Select all
ma1=ma2>=ma3;
If ma1 then
macolor=green
else
macolor=red;
Plot3(0,"",macolor);
If I set to Plot3(8000,"",macolor), then once I drag back to its past, and the Plot3 will be raised up onto the middle of chart. Also, it cannot be used for others due to set in '8000'.
So, does MultiCharts have not any method which can maintain the straight bar onto the bottom position??
- Attachments
-
- screen-3.jpg
- (115.15 KiB) Downloaded 893 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
Please use code tag when posting codes. It makes reading easier.Hi, TJ
OK, then I only focus in PLOT command to plot the bottom bar.
But if use 'plot' command, e.g. is used on DJI:
ma1=ma2>=ma3;
If ma1 then
macolor=green
else
macolor=red;
Plot3(0,"",macolor);
The straight bar is located on the bottom of chart. But the main chart will shrink to so short candle bars & lines.
If I set to Plot3(8000,"",macolor), then once I drag back to its past, and the Plot3 will be raised up onto the middle of chart. Also, it cannot be used for others due to set in '8000'.
So, does MultiCharts have not any method which can maintain the straight bar onto the bottom position??
(I have done it for you this time.)
You have to set the indicator as a subchart.
Format Study > Properties > Subchart
Re: Candlestick chart in PowerLanuage code
Hi, TJ
Thanks a lot to put it onto code tag.
And my attached chart was already made fm sub-chart.
Could u kindly give me more hint how made it? Thanks!
Thanks a lot to put it onto code tag.
And my attached chart was already made fm sub-chart.
Could u kindly give me more hint how made it? Thanks!
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
You should set the study property:Hi, TJ
Thanks a lot to put it onto code tag.
And my attached chart was already made fm sub-chart.
Could u kindly give me more hint how made it? Thanks!
Format Study > Properties > Subchart
the chart should show a separator between the main chart and the subchart.
The main chart and the subcharts have independent scales.
- Attachments
-
- 2011-11-28 22.2405.gif
- (15.83 KiB) Downloaded 1004 times
-
- 2011-11-28 22.2506.gif
- (18.28 KiB) Downloaded 1006 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
you are welcome.Hi, TJ
I got it. Much thanks for your teaching.
Re: Candlestick chart in PowerLanuage code
Hi, TJ
I want to make my designed header and you had refered the below link for get ideas:
http://www.tradersxchange.com/viewtopic ... 38dfa4ca5f
However, I tried many times but fail to get its login account activate email, and I cannot contact its administrator too.
Could you kindly help where I can view that code for learn about it? Or any other referral links that I can view the similar function code?
Much thanks for your help.
I want to make my designed header and you had refered the below link for get ideas:
http://www.tradersxchange.com/viewtopic ... 38dfa4ca5f
However, I tried many times but fail to get its login account activate email, and I cannot contact its administrator too.
Could you kindly help where I can view that code for learn about it? Or any other referral links that I can view the similar function code?
Much thanks for your help.
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
check your spam box... it is probably there.Hi, TJ
I want to make my designed header and you had refered the below link for get ideas:
http://www.tradersxchange.com/viewtopic ... 38dfa4ca5f
However, I tried many times but fail to get its login account activate email, and I cannot contact its administrator too.
Could you kindly help where I can view that code for learn about it? Or any other referral links that I can view the similar function code?
Much thanks for your help.
Re: Candlestick chart in PowerLanuage code
Hi, TJ
I already checked it before from my gmail. And just tested to re-send the activate email again but still fail...
You are experience expert, any refer links that can let me to learn it.
I already checked it before from my gmail. And just tested to re-send the activate email again but still fail...
You are experience expert, any refer links that can let me to learn it.
Re: Candlestick chart in PowerLanuage code
Hi, TJ
Any update how make the header on the top of chart...
Any update how make the header on the top of chart...
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
Just try to log in... some forums authenticate new accounts without sending notifications.Hi, TJ
Any update how make the header on the top of chart...
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Candlestick chart in PowerLanuage code
the code is posted in the thread.Hi, TJ
Then, how I can get the code for learning?