Results 1 to 3 of 3
  1. #1
    crunchor is offline Member
    Join Date
    Jun 2013
    Posts
    12
    Rep Power
    0

    Default which data structure should I use for trading system?

    I have finished my studying of a basic trading system structure and going to build one now. I am going to put a table of historical data (having columns of day high, day low...etcs of days of many years) into an array or other kind of data structure, then use the date to do analysis, and some analysis would need to put the result into another array (or another data structure).

    So basically it would be few "tables" with each having around 6 columns and around 2000-5000 rows. I would do calculations within these tables and then store the result to another similar size table.

    Array is good enough? Or I should choose another data structure like linked list?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default Re: which data structure should I use for trading system?

    It all depends what you want to do with that data.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: which data structure should I use for trading system?

    Data structures differ in their performance for operations like insert, delete, iterating over all elements, locating a particular element, etc. You haven't told us anything about the ways you're using the data that would allow us to even begin to answer your question.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Replies: 1
    Last Post: 06-29-2013, 07:06 PM
  2. Query about data structure
    By chkontog in forum New To Java
    Replies: 1
    Last Post: 11-15-2012, 07:26 PM
  3. Which data structure to use?
    By malaguena in forum New To Java
    Replies: 4
    Last Post: 04-05-2011, 04:41 PM
  4. data structure and data base??
    By ahmed13 in forum Advanced Java
    Replies: 8
    Last Post: 03-27-2009, 05:48 AM
  5. Queue data structure
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •