Quote from vicirek:
It must be j2ee because only him would create 5 arrays instead of one multidimensional array since he is indexing bars.
.
Hi vicirek,
Be very careful about the assumptions on the structure of the data in a data engine.
When I built my trading platform I spent a lot of time exploring different data structures and architectures. My primary concern was speed and flexibility, processing tick data for a large number of symbols in real-time, not back-testing or processing bar-data (I build bars in real-time from tick data). I am closer to the "multiple arrays" camp, and it is much better for what I value most. That said, the data structure I use is an implementation of an interface with methods like:
public void add(double dValue)
public double getPreviousValue(int nPrev)
Since it is an interface I can implement it any way I like.
On the other hand the OP did mention Open, High, Low, Close, so they are probably building something different than I built, so you may be right, just put it in a "Bar" data structure.
Take care,
-David
PS I do store historical tick and bar data in CSV files. One file for each symbol/timeframe.
[/B]