StockSeriesData

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

michel
Posts: 9
Joined: Wed Jun 29, 2016 3:34 pm

StockSeriesData

Post by michel » Tue Nov 17, 2020 8:16 pm

I have a requirement to display OHLC data every minute. When creating StockSeriesData I can only specify the Date. Is it possible to display multiple StockSeriesData points per day?

Arction_LasseP
Posts: 105
Joined: Wed Mar 27, 2019 1:05 pm

Re: StockSeriesData

Post by Arction_LasseP » Wed Nov 18, 2020 7:34 am

Hello Michel,

Yes, it is possible to show stock data every minute. StockSeriesData structure also accepts DateTime objects, allowing you to set hours, minutes and seconds as well. For example:

Code: Select all

            StockSeriesData[] data = new StockSeriesData[] { 
                new StockSeriesData(new DateTime(2010, 09, 01, 10, 0, 0), 24.35, 24.76, 24.81, 23.82, 269210, 6610451.55),
                new StockSeriesData(new DateTime(2010, 09, 01, 10, 30, 0), 24.85, 24.66, 24.85, 24.53, 216395, 5356858.225),
                new StockSeriesData(new DateTime(2010, 09, 01, 11, 0, 0), 24.80, 24.84, 25.07, 24.60, 164583, 4084950.06),
                new StockSeriesData(new DateTime(2010, 09, 01, 11, 30, 0), 24.85, 25.01, 25.12, 24.84, 118367, 2950889.31)
                            };
Hope this helps.
Best regards,
Lasse