fidoandfido / blackswan

Blackswan Stock Game
Other
2 stars 0 forks source link

Generating historical data #7

Closed fidoandfido closed 13 years ago

fidoandfido commented 13 years ago

It would probably be neat if we could arc up a new stock exchange, and then generate past data for it.

This would include company / stock exchange periods being generated for the past; as well as some share trading during the period. Significant refactoring required for this as it is a 'late' requirement, i.e. something I just thought of.

fidoandfido commented 13 years ago

Have created a first cut of this, by some refactoring of AI package, however it does take quite a while to generate the historical trades (since it is not at all optimised for this).

This may also need revisiting when we look at the idea of 'closed' trading periods. In the mean time, with some tweaks, I think this will be good enough for the moment to generate 'historical' data.

Note - for expediency, I will tweak the A.I. Runner to select fewer A.I.s and run every 2 or 5 minutes; this should be enough to produce some meaningful trades but not take too long.