Jump to content
Software FX Community

Candlestick charts with volume


dotnetclassic
 Share

Recommended Posts

 when i am using following code which is showing gr8 results.

  Chart1.Gallery = Gallery.Candlestick   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Date", FieldUsage.XValue)) 

  Chart1.DataSourceSettings.Fields.Add(New FieldMap("Low", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Open", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Close", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("High", FieldUsage.Value)) But i want to show Volume also please suggest me to show volume i am trying with following way but no result

  Chart1.Gallery = Gallery.Candlestick   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Date", FieldUsage.XValue)) 

  Chart1.DataSourceSettings.Fields.Add(New FieldMap("Low", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Open", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Close", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("High", FieldUsage.Value))

  Chart1.DataSourceSettings.Fields.Add(New FieldMap("Volume", FieldUsage.Value))

Link to comment
Share on other sites

You need to create a combination chart as follows:

Chart1.AllSeries.Gallery = Gallery.HiLowClose;

Chart1.Series[4].Gallery = Gallery.Lines;

Chart1.DataSourceSettings.Fields.Clear();

  Chart1.DataSourceSettings.Fields.Add(New FieldMap("Low", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Open", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("Close", FieldUsage.Value))   Chart1.DataSourceSettings.Fields.Add(New FieldMap("High", FieldUsage.Value))

  Chart1.DataSourceSettings.Fields.Add(New FieldMap("Volume", FieldUsage.Value))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...