Calculating intraday candlesticks by time intervals

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-05-18T19:31:13Z Indexed on 2010/05/30 7:52 UTC
Read the original article Hit count: 252

This maybe an over asked question, but my mind draws blank at this moment. I know what a candlestick chart is and how to draw it daily. But how to draw it intraday at asked time periods. I have this server, written in Java, that gives me trade depth (each trade done since the start of the day). Its just a stream of raw data: price, shares, timestamp.

How does one go about calculating candlestick data from that? Lets say, they want to have 5 min candlestick or 1min candlestick. Or is there a library that will do that for me if I feed it data?

Any help is appreciated!

© Stack Overflow or respective owner

Related posts about java

Related posts about math