new($data_directory);update_index()get_alias_name($sysname)sync()list_available_data([$set]);
This modules provides some functions to manage a backtest directory.
new($data_directory);Create and initialize a BackTest::Spool object with a specific directory, where backtest data are stored.
Tell if data are cached before being written. Default to 1. In that case you have to call $spool->sync from time to time to write data on the disk.
update_index()Force an update of the index data. Use that if a long time has elapsed since the read and the index may have been updated.
This function will link an alias and a system name.
get_alias_name($sysname)Return the alias name of the system if it exists.
This function will add new data or update old ones in the spooler.
sync()Write the cache on disk.
list_available_data([$set]);This function will return a list of systems/codes available. $hash->{$sysname} = [ list of codes ];
This function will return all stats available for a given $sysname and $code.
This function will return a portfolio for a given $sysname and $code.