praemium Posted June 10, 2009 Report Share Posted June 10, 2009 Hi, I have a chart which has data (high, low, open and close) displayed as candlestick. I am wondering whether it is possible to add an extra series on the same chart. What I am doing is to compare the price of a stock with the other one. Regards, Simon Quote Link to comment Share on other sites More sharing options...
AndreG Posted June 10, 2009 Report Share Posted June 10, 2009 Yes. All you need to do is add 4 more series to the chart. Quote Link to comment Share on other sites More sharing options...
praemium Posted June 10, 2009 Author Report Share Posted June 10, 2009 Thanks for the reply. When I have one candlestick, I do something like this: chart1.DataSourceSettings.Fields.Add(new FieldMap("Date", FieldUsage.XValue)); chart1.DataSourceSettings.Fields.Add( new FieldMap("Open", FieldUsage.Value));chart1.DataSourceSettings.Fields.Add(new FieldMap("High", FieldUsage.Value)); chart1.DataSourceSettings.Fields.Add( new FieldMap("Low", FieldUsage.Value));chart1.DataSourceSettings.Fields.Add( new FieldMap("Close", FieldUsage.Value));financial1.DataBindingSettings.OpenSeries = 0; financial1.DataBindingSettings.HighSeries = 1; financial1.DataBindingSettings.LowSeries = 2; financial1.DataBindingSettings.CloseSeries = 3; financial1.Gallery.Analytical.PriceDisplay = (( PriceDisplay)Enum.Parse(typeof(PriceDisplay), "CandleStick")); When I add 4 more series to the chart, how do I set the financial DataBindingSettings? Thanks! chart1.DataSourceSettings.Fields.Add(new FieldMap("Open1", FieldUsage.Value)); chart1.DataSourceSettings.Fields.Add( new FieldMap("High1", FieldUsage.Value));chart1.DataSourceSettings.Fields.Add(new FieldMap("Low1", FieldUsage.Value)); chart1.DataSourceSettings.Fields.Add( new FieldMap("Close1", FieldUsage.Value)); Quote Link to comment Share on other sites More sharing options...
praemium Posted June 10, 2009 Author Report Share Posted June 10, 2009 After I add 4 more series to the chart, the chart does not display any data except the message "The current chart gallery settings is inconsistent with the number of series in your data. Some gallery types require a specific number of series." Should I set financial DataBindingSettings to match the number of series I have? I could not find any place to set the extra series I added. Quote Link to comment Share on other sites More sharing options...
praemium Posted June 11, 2009 Author Report Share Posted June 11, 2009 I am using ChartFX financial rather than normal ChartFX. Thanks! Quote Link to comment Share on other sites More sharing options...
praemium Posted June 11, 2009 Author Report Share Posted June 11, 2009 I found an example from the forum to have two candlesticks on the same chart, but it uses the normal ChartFX. In my case, I need to have all the financial functions, so ChartFX Financial extension must be used. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
praemium Posted June 15, 2009 Author Report Share Posted June 15, 2009 Is it posssible to add an extra candlestick for another stock as a study? Please help me! Quote Link to comment Share on other sites More sharing options...
AndreG Posted June 15, 2009 Report Share Posted June 15, 2009 Its a little different on the financial extension, but I got something working. Attached. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.