strangespider wrote:
Hi, I observed a problem with the extension in the module Text.pm =item DB::text::file_extension string 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'. You can find this setting here: Finance::GeniusTrader::Conf::default('DB::Text::file_extension', '.txt'); I can set the extension in the ~/.gt/options file, e.g you have csv-files: DB::text::file_extension .csv But how can I unset any extensions? My files are just the symbol name with no extension. IBM QQQQ ...At the moment I edited Finance::GeniusTrader::Conf::default('DB::Text::file_extension', '.txt');in the Text.pm file to Finance::GeniusTrader::Conf::default('DB::Text::file_extension', ''); Am I doing something wrong with the options file? Best regards
aloha strangespider
the default extension is '.txt' and there is no way (that i've been able to
find) to set it to be a null (empty) string.
so you have two (at least) choices:
1) change your text database files to comply
or
2) use your changed version of GT/DB/Text.pm
note that with the change to GT/DB/Text.pm many of the examples that use
the sample database 13000 will fail unless you explicitly define the .txt
extension, or change the sample database file naming and remove the extension.
but since you seem to be referencing the cpaned gt these pod examples are
likely not working anyway.
maybe there's enough interest to find a way to allow the user to set the
file extension to include the empty string, but it shouldn't override the
current default .txt extension ...
would something like
$self->{'extension'} = "GT::Conf::get('DB::Text::file_extension')";
work? or does GT::Conf::get need to be changed to return an empty string
if the keys' value is the empty string?
ras