This database access module enable you to work with a full directory of text files.
Most configuration items have default values, to alter these defaults you must indicate the configuration item and its value in your $HOME/.gt/options file.
Informs gt you are using the Text.pm module. This configuration item is always required in your $HOME/.gt/options file.
where files are stored. This configuration item is always required in your $HOME/.gt/options file.
Delimits fields in each row of the data file. The marker defaults to the tab character '\t'.
The number of header lines in your data file that are to be skipped during processing. Lines with the either the comment symbol '#' or the less than symbol '<' as the first character do not need to be included in this value.. The header_lines default value is 0.
To be appended to the code file name when searching the data file. For instance, if the data file is called EURUSD.csv this variable would have the value '.csv' (without the quotes).
The default file_extension is '.txt'.
if you have data in different timeframes, for instance, EURUSD_hour.csv and EURUSD_day.csv, use the following value for this directive:
Column index where to find the period datetime field. Indexes are 0 based. For the particular case of datetime, can contain multiple indexes, useful when date and time are separate columns in the data file. The date time format is anything that can be understood by Date::Manip. A typical example would be YYYY-MM-DD HH:NN:SS. The default datetime index is 5.
Column index where to find the period open field. Indexes are 0 based. The default open index is 0.
Column index where to find the period low field. Indexes are 0 based. The default low index is 2.
Column index where to find the period high field. Indexes are 0 based. The default high index is 1.
Column index where to find the period close field. Indexes are 0 based. The default close index is 3.
Column index where to find the period volume field. Indexes are 0 based. The default volume index is 4.
Create a new DB object used to retrieve quotes from a directory full of text files containing prices.
Disconnects from the database.
Indicate the directory containing all the text files.
Returns a Finance::GeniusTrader::Prices object containing all known prices for the symbol $code.
Returns a Finance::GeniusTrader::Prices object containing the $limit last known prices for the symbol $code.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
To install Finance::GeniusTrader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::GeniusTrader
CPAN shell
perl -MCPAN -e shell install Finance::GeniusTrader
For more information on module installation, please visit the detailed CPAN module installation guide.