I'd like to know how you convert these data series Data, Time, and Price to OHLC or Open, High, Low, Close.
I am working on a bitcoin project and would like to see these data as a candlestick chart. I have seen some threads here in stockoverflow regarding the computation but I don't understand the script they were using "create an OHLC series from ticker data using R" I am referring to "Kevin"'s answer
Providing a partial data here
Date, strTime, dblTime, Price, Volume,SideVolume
2014-06-04,17:00:00.027,0.708333645833333,192575,1,1
2014-06-04,17:00:00.090,0.708334375,192575,1,1
2014-06-04,17:00:00.178,0.708335393518519,192550,1,-1
2014-06-04,17:00:01.019,0.708345127314815,192575,1,1
2014-06-04,17:00:01.021,0.708345150462963,192575,1,1
2014-06-04,17:00:01.037,0.708345335648148,192575,3,3
2014-06-04,17:00:01.037,0.708345335648148,192575,3,3
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.038,0.708345347222222,192575,10,10
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.038,0.708345347222222,192575,10,10
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.038,0.708345347222222,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192575,2,2
2014-06-04,17:00:01.039,0.708345358796296,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192575,1,1
2014-06-04,17:00:01.039,0.708345358796296,192600,15,15
how do you compute these data for OHLC using C#? I am using SciChart by the way for candlestick chart.
regards .