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

    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
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

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

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

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

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

    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