EquiVolume conversion

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

EquiVolume conversion

Post by Quant » Tue Mar 29, 2016 10:45 am

I am converting existing candle series to EquiVolume and adding volumes from existing volume series.
Conversion is successful but EquiVolume series is not visible when I check data of it volume values are zero values.
My existing candle series and volume series both are having data.
I am using following code

Code: Select all

                        Series candleSeries = tChart1.Series[0];
                        Series.ChangeType(ref candleSeries, typeof(Steema.TeeChart.Styles.EquiVolume));
                        EquiVolume eqVol = (EquiVolume)candleSeries;
                        eqVol.VolumeValues = volumeSeries.YValues;

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: EquiVolume conversion

Post by Quant » Tue Mar 29, 2016 11:14 am

I didn't find any code related to EquiVolume in TeeChart Samples.
But my problem is solved with

Code: Select all

    eqVol.VolumeValues.Value = volumeSeries.YValues.Value; 


New problem arises after conversion of series to EquiVolume. Chart Control slows down after conversion of candle to EquiVolume.

Christopher
Guru
Posts: 1229
Joined: Fri Nov 15, 2002 12:00 am

Re: EquiVolume conversion

Post by Christopher » Wed Mar 30, 2016 12:02 pm

Quant wrote:New problem arises after conversion of series to EquiVolume. Chart Control slows down after conversion of candle to EquiVolume.
Using test code similar to the following:

Code: Select all

    TChart tChart1;
    private void InitializeChart()
    {
      Utils.CalcFramesPerSecond = true;
      tChart1 = new TChart();
      tChart1.Dock = DockStyle.Fill;
      tChart1.Aspect.View3D = false;
      tChart1.Series.Add(typeof(EquiVolume)).FillSampleValues(50);
    }

    private void button4_Click(object sender, EventArgs e)
    {
      timer.Interval = 10;
      timer.Tick += Timer_Tick;
      timer.Start();
    }

    private void Timer_Tick(object sender, EventArgs e)
    {
      tChart1[0].FillSampleValues(50);
      this.Text = Utils.FramesPerSecond.ToString();
    }
no significant difference in FPS can be detected between Candle and EquiVolume series. Can you please send us some code which clearly shows the slowing down you speak of?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply