[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GT] was posted at [system-traders] Some database questions



Ok,

Thank you very much for your answer.
I just want to know how to use the metastock database perl module. 
In file MetaStock.pm
In line 40 there can be specified where to search for the
DB::metastock::program. 
Therefore i have been searching for a program to use with that script
and than i found a entry in the systemstrader mailinglist which can be
found here
http://www.geniustrader.org/lists/system-traders/msg00099.html
Therefore i thought that program has to be compiled before i can use the
Metastock perl script. So i compiled it and it leads to errors, when i
use it with the metastock.pm script.
Maybe that was a workaround which is now out of date because that post
was from 2003

To my Metastock data i use the MLdownloader
http://www.trading-tools.com/mldownloader-historical-stock-quotes-data.htm
which uses yahoo data to generate a Metastock database. 

My options file is attached to that mail.

When i use the options file with changed comments for the
metastock::program directory i get less errors which says the following

Use of uninitialized value in concatenation (.) or string
at ../GT/Conf.pm line 87, <FILE> line 1.
Use of uninitialized value in concatenation (.) or string
at ../GT/Conf.pm line 87, <FILE> line 1.
Can't exec "/home/simulation/Perl/GT/DB/MetaStockReader.pm": Permission
denied at ../GT/DB/MetaStock.pm line 86.
Can't use an undefined value as an ARRAY reference at ../GT/BackTest.pm
line 122.

The other question was about text database handling with GT.

That was a part of your answer to my text database question
>  * the text db uses 1 file per security and timebase
This is what i would like to avoid because the mentioned 
http://ratedata.gaincapital.com/ Gives tickdata which is stored for
every
week in one file. So thats a great amount of data. I dont want to use
tickdata for system development. But i would like to use that tick data
to generate maybe a 5 second timeframe data which lasts over 6 months.
So it would be great for usability if i could say please take file
week-1.csv and week-2.csv and so on, to read the tick data into
Geniustrader. If you know a program which can do that it would be great.
Otherwise i must try to convert it by hand which means a lot of work for
me because i yet dont know so much about perl.

Regards

DB::module MetaStock
DB::metastock::directory /home/simulation/MetaStock/Germany/TecDAX/
DB::metastock::program /home/simulation/Perl/GT/MetaStockReader
#DB::metastock::program /home/simulation/Perl/GT/DB/MetaStockReader.pm
DB::timeframes_available day

#DB::module Text
#DB::text::directory /home/simulation/Perl/data
#DB::text::options ( "	" , 0 , ".txt" , ("date" => 5, "open" => 0, "high" => 1, "low" => 2, "close" => 3, "volume" => 4, "Adj. Close*" => 3) )

Brokers::module SelfTrade

Path::Font::Arial /usr/X11R6/lib/X11/fonts/TrueType/arial.ttf
Path::Font::Courier /usr/X11R6/lib/X11/fonts/TrueType/couri.ttf
Path::Font::Times /usr/X11R6/lib/X11/fonts/TrueType/times.ttf

Analysis::ReferenceTimeFrame year

#Graphic::BackgroundColor black
#Graphic::ForegroundColor white

Aliases::Global::TFS    SY:TFS 50 10|CS:SY:TFS
Aliases::Global::TFS[]  SY:TFS #1 #2|CS:SY:TFS #1|CS:Stop:Fixed #3