Page 1 of 1

StockSeriesData

Posted: Tue Nov 17, 2020 8:16 pm
by michel
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?

Re: StockSeriesData

Posted: Wed Nov 18, 2020 7:34 am
by Arction_LasseP
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